@Stability(value=Stable)
public static interface CfnProject.RegistryCredentialProperty
extends software.amazon.jsii.JsiiSerializable
imagePullCredentialsType must be set to SERVICE_ROLE .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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnProject.RegistryCredentialProperty.Builder
A builder for
CfnProject.RegistryCredentialProperty |
static class |
CfnProject.RegistryCredentialProperty.Jsii$Proxy
An implementation for
CfnProject.RegistryCredentialProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnProject.RegistryCredentialProperty.Builder |
builder() |
String |
getCredential()
The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager .
|
String |
getCredentialProvider()
The service that created the credentials to access a private Docker registry.
|
@Stability(value=Stable) @NotNull String getCredential()
The
credentialcan use the name of the credentials only if they exist in your current AWS Region .
@Stability(value=Stable) @NotNull String getCredentialProvider()
The valid value, SECRETS_MANAGER, is for AWS Secrets Manager .
@Stability(value=Stable) static CfnProject.RegistryCredentialProperty.Builder builder()
Copyright © 2022. All rights reserved.