Class CfnRepository.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepository>
- Enclosing class:
CfnRepository
CfnRepository
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
code
(IResolvable code) Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.static CfnRepository.Builder
The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.repositoryDescription
(String repositoryDescription) A comment or description about the new repository.repositoryName
(String repositoryName) The name of the new repository to be created.One or more tag key-value pairs to use when tagging this repository.The JSON block of configuration information for each trigger.triggers
(IResolvable triggers) The JSON block of configuration information for each trigger.
-
Method Details
-
create
@Stability(Stable) public static CfnRepository.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnRepository.Builder
.
-
repositoryName
The name of the new repository to be created.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.
- Parameters:
repositoryName
- The name of the new repository to be created. This parameter is required.- Returns:
this
- See Also:
-
code
Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.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.
- Parameters:
code
- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. This parameter is required.- Returns:
this
- See Also:
-
code
Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.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.
- Parameters:
code
- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. This parameter is required.- Returns:
this
- See Also:
-
kmsKeyId
The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.The input can be the full ARN, the key ID, or the key alias. For more information, see Finding the key ID and key ARN .
- Parameters:
kmsKeyId
- The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository. This parameter is required.- Returns:
this
- See Also:
-
repositoryDescription
A comment or description about the new repository.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.
- Parameters:
repositoryDescription
- A comment or description about the new repository. This parameter is required.- Returns:
this
- See Also:
-
tags
One or more tag key-value pairs to use when tagging this repository.- Parameters:
tags
- One or more tag key-value pairs to use when tagging this repository. This parameter is required.- Returns:
this
- See Also:
-
triggers
The JSON block of configuration information for each trigger.- Parameters:
triggers
- The JSON block of configuration information for each trigger. This parameter is required.- Returns:
this
- See Also:
-
triggers
The JSON block of configuration information for each trigger.- Parameters:
triggers
- The JSON block of configuration information for each trigger. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRepository>
- Returns:
- a newly built instance of
CfnRepository
.
-