# ContainerImageConfig

The configuration for creating a container image.

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

- Source: [`aws-ecs/lib/container-image.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecs/lib/container-image.ts#L89)

## 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 containerImageConfig: ecs.ContainerImageConfig = {
  imageName: 'imageName',

  // the properties below are optional
  repositoryCredentials: {
    credentialsParameter: 'credentialsParameter',
  },
};
```

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

container_image_config = ecs.ContainerImageConfig(
    image_name="imageName",

    # the properties below are optional
    repository_credentials=ecs.CfnTaskDefinition.RepositoryCredentialsProperty(
        credentials_parameter="credentialsParameter"
    )
)
```

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.*;

ContainerImageConfig containerImageConfig = ContainerImageConfig.builder()
        .imageName("imageName")

        // the properties below are optional
        .repositoryCredentials(RepositoryCredentialsProperty.builder()
                .credentialsParameter("credentialsParameter")
                .build())
        .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 containerImageConfig = new ContainerImageConfig {
    ImageName = "imageName",

    // the properties below are optional
    RepositoryCredentials = new RepositoryCredentialsProperty {
        CredentialsParameter = "credentialsParameter"
    }
};
```

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"

containerImageConfig := &ContainerImageConfig{
	ImageName: jsii.String("imageName"),

	// the properties below are optional
	RepositoryCredentials: &RepositoryCredentialsProperty{
		CredentialsParameter: jsii.String("credentialsParameter"),
	},
}
```

## Properties

- `imageName`: string (required) — Specifies the name of the container image.

- `repositoryCredentials`: [CfnTaskDefinition.RepositoryCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskDefinition.RepositoryCredentialsProperty.html) — Specifies the credentials used to access the image repository.
