ContainerConfigProperty Struct
The configuration used to run the application image container.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const containerConfigProperty: sagemaker.CfnAppImageConfig.ContainerConfigProperty = {
containerArguments: ['containerArguments'],
containerEntrypoint: ['containerEntrypoint'],
containerEnvironmentVariables: [{
key: 'key',
value: 'value',
}],
};
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_sagemaker as sagemaker
container_config_property = sagemaker.CfnAppImageConfig.ContainerConfigProperty(
container_arguments=["containerArguments"],
container_entrypoint=["containerEntrypoint"],
container_environment_variables=[sagemaker.CfnAppImageConfig.CustomImageContainerEnvironmentVariableProperty(
key="key",
value="value"
)]
)
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.sagemaker.*;
ContainerConfigProperty containerConfigProperty = ContainerConfigProperty.builder()
.containerArguments(List.of("containerArguments"))
.containerEntrypoint(List.of("containerEntrypoint"))
.containerEnvironmentVariables(List.of(CustomImageContainerEnvironmentVariableProperty.builder()
.key("key")
.value("value")
.build()))
.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.Sagemaker;
var containerConfigProperty = new ContainerConfigProperty {
ContainerArguments = new [] { "containerArguments" },
ContainerEntrypoint = new [] { "containerEntrypoint" },
ContainerEnvironmentVariables = new [] { new CustomImageContainerEnvironmentVariableProperty {
Key = "key",
Value = "value"
} }
};
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"
containerConfigProperty := &ContainerConfigProperty{
ContainerArguments: []*string{
jsii.String("containerArguments"),
},
ContainerEntrypoint: []*string{
jsii.String("containerEntrypoint"),
},
ContainerEnvironmentVariables: []interface{}{
&CustomImageContainerEnvironmentVariableProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
containerArgumentsoptionalstring[]container_argumentsoptionaltyping.List[str]containerArgumentsoptionalList<String>ContainerArgumentsoptionalstring[]ContainerArgumentsoptional*[]*string #The arguments for the container when you're running the application.
containerEntrypointoptionalstring[]container_entrypointoptionaltyping.List[str]containerEntrypointoptionalList<String>ContainerEntrypointoptionalstring[]ContainerEntrypointoptional*[]*string #The entrypoint used to run the application in the container.
containerEnvironmentVariablesoptionalIResolvable | IResolvable | CfnAppImageConfig.container_environment_variablesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomImageContainerEnvironmentVariableProperty]]]containerEnvironmentVariablesoptionalIResolvableContainerEnvironmentVariablesoptionalIResolvableContainerEnvironmentVariablesoptionalinterface{} #The environment variables to set in the container.