@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.373Z") @Stability(value=Stable) public interface CfnRepositoryProps extends software.amazon.jsii.JsiiSerializable
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.codecommit.*;
CfnRepositoryProps cfnRepositoryProps = CfnRepositoryProps.builder()
.repositoryName("repositoryName")
// the properties below are optional
.code(CodeProperty.builder()
.s3(S3Property.builder()
.bucket("bucket")
.key("key")
// the properties below are optional
.objectVersion("objectVersion")
.build())
// the properties below are optional
.branchName("branchName")
.build())
.repositoryDescription("repositoryDescription")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.triggers(List.of(RepositoryTriggerProperty.builder()
.destinationArn("destinationArn")
.events(List.of("events"))
.name("name")
// the properties below are optional
.branches(List.of("branches"))
.customData("customData")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRepositoryProps.Builder
A builder for
CfnRepositoryProps |
static class |
CfnRepositoryProps.Jsii$Proxy
An implementation for
CfnRepositoryProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnRepositoryProps.Builder |
builder() |
default Object |
getCode()
Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.
|
default String |
getRepositoryDescription()
A comment or description about the new repository.
|
String |
getRepositoryName()
The name of the new repository to be created.
|
default List<CfnTag> |
getTags()
One or more tag key-value pairs to use when tagging this repository.
|
default Object |
getTriggers()
The JSON block of configuration information for each trigger.
|
@Stability(value=Stable) @NotNull String getRepositoryName()
The repository name must be unique across the calling AWS account . Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the AWS CodeCommit User Guide . The suffix .git is prohibited.
@Stability(value=Stable) @Nullable default Object getCode()
Information about code is only used in resource creation. Updates to a stack will not reflect changes made to code properties after initial resource creation.
You can only use this property to add code when creating a repository with a AWS CloudFormation template at creation time. This property cannot be used for updating code to an existing repository.
@Stability(value=Stable) @Nullable default String getRepositoryDescription()
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @Nullable default Object getTriggers()
@Stability(value=Stable) static CfnRepositoryProps.Builder builder()
CfnRepositoryProps.Builder of CfnRepositoryPropsCopyright © 2022. All rights reserved.