@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
118 lines (117 loc) • 3.52 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The ECS container definition data source allows access to details of
* a specific container within an AWS ECS service.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ecs_mongo = aws.ecs.getContainerDefinition({
* taskDefinition: mongo.id,
* containerName: "mongodb",
* });
* ```
*/
export declare function getContainerDefinition(args: GetContainerDefinitionArgs, opts?: pulumi.InvokeOptions): Promise<GetContainerDefinitionResult>;
/**
* A collection of arguments for invoking getContainerDefinition.
*/
export interface GetContainerDefinitionArgs {
/**
* Name of the container definition
*/
containerName: string;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
/**
* ARN of the task definition which contains the container
*/
taskDefinition: string;
}
/**
* A collection of values returned by getContainerDefinition.
*/
export interface GetContainerDefinitionResult {
readonly containerName: string;
/**
* CPU limit for this container definition
*/
readonly cpu: number;
/**
* Indicator if networking is disabled
*/
readonly disableNetworking: boolean;
/**
* Set docker labels
*/
readonly dockerLabels: {
[key: string]: string;
};
/**
* Environment in use
*/
readonly environment: {
[key: string]: string;
};
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Docker image in use, including the digest
*/
readonly image: string;
/**
* Digest of the docker image in use
*/
readonly imageDigest: string;
/**
* Memory limit for this container definition
*/
readonly memory: number;
/**
* Soft limit (in MiB) of memory to reserve for the container. When system memory is under contention, Docker attempts to keep the container memory to this soft limit
*/
readonly memoryReservation: number;
readonly region: string;
readonly taskDefinition: string;
}
/**
* The ECS container definition data source allows access to details of
* a specific container within an AWS ECS service.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ecs_mongo = aws.ecs.getContainerDefinition({
* taskDefinition: mongo.id,
* containerName: "mongodb",
* });
* ```
*/
export declare function getContainerDefinitionOutput(args: GetContainerDefinitionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetContainerDefinitionResult>;
/**
* A collection of arguments for invoking getContainerDefinition.
*/
export interface GetContainerDefinitionOutputArgs {
/**
* Name of the container definition
*/
containerName: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* ARN of the task definition which contains the container
*/
taskDefinition: pulumi.Input<string>;
}