# CredentialSpecConfig

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

Returned by: [CredentialSpec.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CredentialSpec.html#bind)

- Source: [`aws-ecs/lib/credential-spec.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecs/lib/credential-spec.ts#L121)
- Type last changed: v2.129.0 · 21 Feb 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `location`: string (required) — Location of the CredSpec file.

- `typePrefix`: string (required) — Prefix used for the CredSpec string.
