Skip to content
v2.277.0

RepositoryCredentialsProperty Struct ​

The repository credentials for private registry authentication.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const repositoryCredentialsProperty: batch.CfnJobDefinition.RepositoryCredentialsProperty = {
  credentialsParameter: 'credentialsParameter',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

repository_credentials_property = batch.CfnJobDefinition.RepositoryCredentialsProperty(
    credentials_parameter="credentialsParameter"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

RepositoryCredentialsProperty repositoryCredentialsProperty = RepositoryCredentialsProperty.builder()
        .credentialsParameter("credentialsParameter")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;

var repositoryCredentialsProperty = new RepositoryCredentialsProperty {
    CredentialsParameter = "credentialsParameter"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

repositoryCredentialsProperty := &RepositoryCredentialsProperty{
	CredentialsParameter: jsii.String("credentialsParameter"),
}

Properties ​

credentialsParameterstringcredentials_parameterstrcredentialsParameterStringCredentialsParameterstringCredentialsParameter*stringrequired#
The Amazon Resource Name (ARN) of the secret containing the private repository credentials.