Interface CfnCodeRepository.GitConfigProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnCodeRepository.GitConfigProperty extends
Specifies configuration details for a Git repository in your AWS account.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 GitConfigProperty gitConfigProperty = GitConfigProperty.builder()
         // the properties below are optional
  • Method Details

    • getRepositoryUrl

      @Stability(Stable) @NotNull String getRepositoryUrl()
      The URL where the Git repository is located.
    • getBranch

      @Stability(Stable) @Nullable default String getBranch()
      The default branch for the Git repository.
    • getSecretArn

      @Stability(Stable) @Nullable default String getSecretArn()
      The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.

      The secret must have a staging label of AWSCURRENT and must be in the following format:

      {"username": *UserName* , "password": *Password* }

    • builder

      @Stability(Stable) static CfnCodeRepository.GitConfigProperty.Builder builder()
      a CfnCodeRepository.GitConfigProperty.Builder of CfnCodeRepository.GitConfigProperty