Skip to content
v2.278.0

CredentialSpecConfig Struct ​

Configuration for a credential specification (CredSpec) used for a ECS container.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const credentialSpecConfig: ecs.CredentialSpecConfig = {
  location: 'location',
  typePrefix: 'typePrefix',
};
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_ecs as ecs

credential_spec_config = ecs.CredentialSpecConfig(
    location="location",
    type_prefix="typePrefix"
)
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.ecs.*;

CredentialSpecConfig credentialSpecConfig = CredentialSpecConfig.builder()
        .location("location")
        .typePrefix("typePrefix")
        .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.ECS;

var credentialSpecConfig = new CredentialSpecConfig {
    Location = "location",
    TypePrefix = "typePrefix"
};
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"

credentialSpecConfig := &CredentialSpecConfig{
	Location: jsii.String("location"),
	TypePrefix: jsii.String("typePrefix"),
}

Properties ​

locationstringlocationstrlocationStringLocationstringLocation*string required #
Location of the CredSpec file.
typePrefixstringtype_prefixstrtypePrefixStringTypePrefixstringTypePrefix*string required #
Prefix used for the CredSpec string.