CredentialSpec Class
Base construct for a credential specification (CredSpec).
| Source | aws-ecs/lib/credential-spec.ts |
|---|---|
| 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_ecs as ecs } from 'aws-cdk-lib';
const credentialSpec = new ecs.CredentialSpec('prefixId', 'fileLocation');
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 = ecs.CredentialSpec("prefixId", "fileLocation")
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.*;
CredentialSpec credentialSpec = new CredentialSpec("prefixId", "fileLocation");
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 credentialSpec = new CredentialSpec("prefixId", "fileLocation");
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"
credentialSpec := awscdk.Aws_ecs.NewCredentialSpec(jsii.String("prefixId"), jsii.String("fileLocation"))
Initializer
ts
new CredentialSpec(prefixId: string, fileLocation: string)
python
CredentialSpec(prefix_id: str, file_location: str)
java
new CredentialSpec(String prefixId, String fileLocation)
csharp
new CredentialSpec(string prefixId, string fileLocation)
go
NewCredentialSpec(PrefixId *string, FileLocation *string)
Properties
Methods
bind(): CredentialSpecConfigdef bind(self, ) -> CredentialSpecConfigpublic CredentialSpecConfig bind()public CredentialSpecConfig Bind()func Bind() CredentialSpecConfig #Called when the container is initialized to allow this object to bind to the stack.