Skip to content
v2.278.0

EksSecretProperty Struct ​

Specifies the configuration of a Kubernetes secret volume.

For more information, see secret in the Kubernetes documentation .

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 eksSecretProperty: batch.CfnJobDefinition.EksSecretProperty = {
  secretName: 'secretName',

  // the properties below are optional
  optional: false,
};
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

eks_secret_property = batch.CfnJobDefinition.EksSecretProperty(
    secret_name="secretName",

    # the properties below are optional
    optional=False
)
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.*;

EksSecretProperty eksSecretProperty = EksSecretProperty.builder()
        .secretName("secretName")

        // the properties below are optional
        .optional(false)
        .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 eksSecretProperty = new EksSecretProperty {
    SecretName = "secretName",

    // the properties below are optional
    Optional = false
};
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"

eksSecretProperty := &EksSecretProperty{
	SecretName: jsii.String("secretName"),

	// the properties below are optional
	Optional: jsii.Boolean(false),
}

Properties ​

optionaloptionalboolean | IResolvableoptionaloptionaltyping.Union[bool, IResolvable]optionaloptionalBooleanOptionaloptionalboolOptionaloptionalinterface{} #
Specifies whether the secret or the secret's keys must be defined.
secretNamestringsecret_namestrsecretNameStringSecretNamestringSecretName*string required #
The name of the secret.
notes

The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .