Class CfnPackageGroup
Creates a package group.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeArtifact
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPackageGroup : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnPackageGroup
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
For more information about creating package groups, including example CLI commands, see Create a package group in the CodeArtifact User Guide .
CloudformationResource: AWS::CodeArtifact::PackageGroup
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeArtifact;
var cfnPackageGroup = new CfnPackageGroup(this, "MyCfnPackageGroup", new CfnPackageGroupProps {
DomainName = "domainName",
Pattern = "pattern",
// the properties below are optional
ContactInfo = "contactInfo",
Description = "description",
DomainOwner = "domainOwner",
OriginConfiguration = new OriginConfigurationProperty {
Restrictions = new RestrictionsProperty {
ExternalUpstream = new RestrictionTypeProperty {
RestrictionMode = "restrictionMode",
// the properties below are optional
Repositories = new [] { "repositories" }
},
InternalUpstream = new RestrictionTypeProperty {
RestrictionMode = "restrictionMode",
// the properties below are optional
Repositories = new [] { "repositories" }
},
Publish = new RestrictionTypeProperty {
RestrictionMode = "restrictionMode",
// the properties below are optional
Repositories = new [] { "repositories" }
}
}
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnPackageGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPackageGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPackageGroup(Construct, String, ICfnPackageGroupProps) |
Properties
AttrArn | When you pass the logical ID of this resource, the function returns the Amazon Resource Name (ARN) of the package group. |
CdkTagManager | Tag Manager which manages the tags for this resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ContactInfo | The contact information of the package group. |
Description | The description of the package group. |
DomainName | The domain that contains the package group. |
DomainOwner | The 12-digit account number of the AWS account that owns the domain. |
OriginConfiguration | Details about the package origin configuration of a package group. |
Pattern | The pattern of the package group. |
Tags | A list of tags to be applied to the package group. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPackageGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPackageGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPackageGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPackageGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnPackageGroup(Construct, String, ICfnPackageGroupProps)
public CfnPackageGroup(Construct scope, string id, ICfnPackageGroupProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPackageGroupProps
Resource properties.
Properties
AttrArn
When you pass the logical ID of this resource, the function returns the Amazon Resource Name (ARN) of the package group.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ContactInfo
The contact information of the package group.
public virtual string ContactInfo { get; set; }
Property Value
System.String
Description
The description of the package group.
public virtual string Description { get; set; }
Property Value
System.String
DomainName
The domain that contains the package group.
public virtual string DomainName { get; set; }
Property Value
System.String
DomainOwner
The 12-digit account number of the AWS account that owns the domain.
public virtual string DomainOwner { get; set; }
Property Value
System.String
OriginConfiguration
Details about the package origin configuration of a package group.
public virtual object OriginConfiguration { get; set; }
Property Value
System.Object
Pattern
The pattern of the package group.
public virtual string Pattern { get; set; }
Property Value
System.String
Tags
A list of tags to be applied to the package group.
public virtual ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>