Data Source: awsBatchComputeEnvironment
The Batch Compute Environment data source allows access to details of a specific compute environment within AWS Batch.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsBatchComputeEnvironment.DataAwsBatchComputeEnvironment(
this,
"batch-mongo",
{
computeEnvironmentName: "batch-mongo-production",
}
);
Argument Reference
The following arguments are supported:
computeEnvironmentName
- (Required) Name of the Batch Compute Environment
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- ARN of the compute environment.ecsClusterArn
- ARN of the underlying Amazon ECS cluster used by the compute environment.serviceRole
- ARN of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.type
- Type of the compute environment (for example,managed
orunmanaged
).status
- Current status of the compute environment (for example,creating
orvalid
).statusReason
- Short, human-readable string to provide additional details about the current status of the compute environment.state
- State of the compute environment (for example,enabled
ordisabled
). If the state isenabled
, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.tags
- Key-value map of resource tags