GetComputeEnvironment
The Batch Compute Environment data source allows access to details of a specific compute environment within AWS Batch.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var batch_mongo = Output.Create(Aws.Batch.GetComputeEnvironment.InvokeAsync(new Aws.Batch.GetComputeEnvironmentArgs
{
ComputeEnvironmentName = "batch-mongo-production",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/batch"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := batch.LookupComputeEnvironment(ctx, &batch.LookupComputeEnvironmentArgs{
ComputeEnvironmentName: "batch-mongo-production",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
batch_mongo = aws.batch.get_compute_environment(compute_environment_name="batch-mongo-production")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const batch_mongo = pulumi.output(aws.batch.getComputeEnvironment({
computeEnvironmentName: "batch-mongo-production",
}, { async: true }));Using GetComputeEnvironment
function getComputeEnvironment(args: GetComputeEnvironmentArgs, opts?: InvokeOptions): Promise<GetComputeEnvironmentResult>function get_compute_environment(compute_environment_name=None, opts=None)func LookupComputeEnvironment(ctx *Context, args *LookupComputeEnvironmentArgs, opts ...InvokeOption) (*LookupComputeEnvironmentResult, error)Note: This function is named
LookupComputeEnvironmentin the Go SDK.
public static class GetComputeEnvironment {
public static Task<GetComputeEnvironmentResult> InvokeAsync(GetComputeEnvironmentArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Compute
Environment stringName The name of the Batch Compute Environment
- Compute
Environment stringName The name of the Batch Compute Environment
- compute
Environment stringName The name of the Batch Compute Environment
- compute_
environment_ strname The name of the Batch Compute Environment
GetComputeEnvironment Result
The following output properties are available:
- Arn string
The ARN of the compute environment.
- Compute
Environment stringName - Ecs
Cluster stringArn The ARN of the underlying Amazon ECS cluster used by the compute environment.
- Id string
The provider-assigned unique ID for this managed resource.
- Service
Role string The ARN of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
- State string
The state of the compute environment (for example,
ENABLEDorDISABLED). If the state isENABLED, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.- Status string
The current status of the compute environment (for example,
CREATINGorVALID).- Status
Reason string A short, human-readable string to provide additional details about the current status of the compute environment.
- Type string
The type of the compute environment (for example,
MANAGEDorUNMANAGED).
- Arn string
The ARN of the compute environment.
- Compute
Environment stringName - Ecs
Cluster stringArn The ARN of the underlying Amazon ECS cluster used by the compute environment.
- Id string
The provider-assigned unique ID for this managed resource.
- Service
Role string The ARN of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
- State string
The state of the compute environment (for example,
ENABLEDorDISABLED). If the state isENABLED, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.- Status string
The current status of the compute environment (for example,
CREATINGorVALID).- Status
Reason string A short, human-readable string to provide additional details about the current status of the compute environment.
- Type string
The type of the compute environment (for example,
MANAGEDorUNMANAGED).
- arn string
The ARN of the compute environment.
- compute
Environment stringName - ecs
Cluster stringArn The ARN of the underlying Amazon ECS cluster used by the compute environment.
- id string
The provider-assigned unique ID for this managed resource.
- service
Role string The ARN of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
- state string
The state of the compute environment (for example,
ENABLEDorDISABLED). If the state isENABLED, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.- status string
The current status of the compute environment (for example,
CREATINGorVALID).- status
Reason string A short, human-readable string to provide additional details about the current status of the compute environment.
- type string
The type of the compute environment (for example,
MANAGEDorUNMANAGED).
- arn str
The ARN of the compute environment.
- compute_
environment_ strname - ecs_
cluster_ strarn The ARN of the underlying Amazon ECS cluster used by the compute environment.
- id str
The provider-assigned unique ID for this managed resource.
- service_
role str The ARN of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
- state str
The state of the compute environment (for example,
ENABLEDorDISABLED). If the state isENABLED, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.- status str
The current status of the compute environment (for example,
CREATINGorVALID).- status_
reason str A short, human-readable string to provide additional details about the current status of the compute environment.
- type str
The type of the compute environment (for example,
MANAGEDorUNMANAGED).
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.