@Generated(value="jsii-pacmak/1.54.0 (build b1b977a)", date="2022-02-19T00:19:28.706Z") @Stability(value=Stable) public class CfnRepository extends CfnResource implements IInspectable
The AWS::CodeArtifact::Repository resource creates an AWS CodeArtifact repository. CodeArtifact repositories contain a set of package versions. For more information about repositories, see the Repository concepts information in the CodeArtifact User Guide . For more information about the CreateRepository API, see CreateRepository in the CodeArtifact API Reference .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codeartifact.*;
Object permissionsPolicyDocument;
CfnRepository cfnRepository = CfnRepository.Builder.create(this, "MyCfnRepository")
.domainName("domainName")
.repositoryName("repositoryName")
// the properties below are optional
.description("description")
.domainOwner("domainOwner")
.externalConnections(List.of("externalConnections"))
.permissionsPolicyDocument(permissionsPolicyDocument)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.upstreams(List.of("upstreams"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnRepository.Builder
A fluent builder for
CfnRepository. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnRepository(Construct scope,
String id,
CfnRepositoryProps props)
Create a new `AWS::CodeArtifact::Repository`.
|
protected |
CfnRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnRepository(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
When you pass the logical ID of this resource, the function returns the Amazon Resource Name (ARN) of the repository.
|
String |
getAttrDomainName()
When you pass the logical ID of this resource, the function returns the domain name that contains the repository.
|
String |
getAttrDomainOwner()
When you pass the logical ID of this resource, the function returns the 12-digit account number of the AWS account that owns the domain that contains the repository.
|
String |
getAttrName()
When you pass the logical ID of this resource, the function returns the name of the repository.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A text description of the repository.
|
String |
getDomainName()
The name of the domain that contains the repository.
|
String |
getDomainOwner()
The 12-digit account number of the AWS account that owns the domain that contains the repository.
|
List<String> |
getExternalConnections()
An array of external connections associated with the repository.
|
Object |
getPermissionsPolicyDocument()
The document that defines the resource policy that is set on a repository.
|
String |
getRepositoryName()
The name of an upstream repository.
|
TagManager |
getTags()
A list of tags to be applied to the repository.
|
List<String> |
getUpstreams()
A list of upstream repositories to associate with the repository.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A text description of the repository.
|
void |
setDomainName(String value)
The name of the domain that contains the repository.
|
void |
setDomainOwner(String value)
The 12-digit account number of the AWS account that owns the domain that contains the repository.
|
void |
setExternalConnections(List<String> value)
An array of external connections associated with the repository.
|
void |
setPermissionsPolicyDocument(Object value)
The document that defines the resource policy that is set on a repository.
|
void |
setRepositoryName(String value)
The name of an upstream repository.
|
void |
setUpstreams(List<String> value)
A list of upstream repositories to associate with the repository.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnRepository(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnRepository(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnRepositoryProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrDomainName()
@Stability(value=Stable) @NotNull public String getAttrDomainOwner()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getDomainName()
@Stability(value=Stable)
public void setDomainName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getPermissionsPolicyDocument()
@Stability(value=Stable)
public void setPermissionsPolicyDocument(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getRepositoryName()
@Stability(value=Stable)
public void setRepositoryName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDomainOwner()
It does not include dashes or spaces.
@Stability(value=Stable)
public void setDomainOwner(@Nullable
String value)
It does not include dashes or spaces.
@Stability(value=Stable) @Nullable public List<String> getExternalConnections()
@Stability(value=Stable)
public void setExternalConnections(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public List<String> getUpstreams()
The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
@Stability(value=Stable)
public void setUpstreams(@Nullable
List<String> value)
The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
Copyright © 2022. All rights reserved.