Interface CfnProject.RegistryCredentialProperty
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- CfnProject.RegistryCredentialProperty.Jsii$Proxy
- Enclosing class:
- CfnProject
@Stability(Stable)
public static interface CfnProject.RegistryCredentialProperty
extends software.amazon.jsii.JsiiSerializable
RegistryCredential is a property of the AWS CodeBuild Project Environment property type that specifies information about credentials that provide access to a private Docker registry. When this is set:.
 
- imagePullCredentialsTypemust be set to- SERVICE_ROLE.
- images cannot be curated or an Amazon ECR image.
For more information, see Private Registry with AWS Secrets Manager Sample for AWS CodeBuild .
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.codebuild.*;
 RegistryCredentialProperty registryCredentialProperty = RegistryCredentialProperty.builder()
         .credential("credential")
         .credentialProvider("credentialProvider")
         .build();
 - See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnProject.RegistryCredentialPropertystatic final classAn implementation forCfnProject.RegistryCredentialProperty
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager .The service that created the credentials to access a private Docker registry.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getCredentialThe Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager .The credentialcan use the name of the credentials only if they exist in your current AWS Region .- See Also:
 
- 
getCredentialProviderThe service that created the credentials to access a private Docker registry.The valid value, SECRETS_MANAGER, is for AWS Secrets Manager . - See Also:
 
- 
builder
 
-