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 LookupComputeEnvironment in the Go SDK.

public static class GetComputeEnvironment {
    public static Task<GetComputeEnvironmentResult> InvokeAsync(GetComputeEnvironmentArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ComputeEnvironmentName string

The name of the Batch Compute Environment

ComputeEnvironmentName string

The name of the Batch Compute Environment

computeEnvironmentName string

The name of the Batch Compute Environment

compute_environment_name str

The name of the Batch Compute Environment

GetComputeEnvironment Result

The following output properties are available:

Arn string

The ARN of the compute environment.

ComputeEnvironmentName string
EcsClusterArn string

The ARN of the underlying Amazon ECS cluster used by the compute environment.

Id string

The provider-assigned unique ID for this managed resource.

ServiceRole 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, ENABLED or DISABLED). If the state is ENABLED, 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, CREATING or VALID).

StatusReason 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, MANAGED or UNMANAGED).

Arn string

The ARN of the compute environment.

ComputeEnvironmentName string
EcsClusterArn string

The ARN of the underlying Amazon ECS cluster used by the compute environment.

Id string

The provider-assigned unique ID for this managed resource.

ServiceRole 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, ENABLED or DISABLED). If the state is ENABLED, 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, CREATING or VALID).

StatusReason 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, MANAGED or UNMANAGED).

arn string

The ARN of the compute environment.

computeEnvironmentName string
ecsClusterArn string

The ARN of the underlying Amazon ECS cluster used by the compute environment.

id string

The provider-assigned unique ID for this managed resource.

serviceRole 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, ENABLED or DISABLED). If the state is ENABLED, 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, CREATING or VALID).

statusReason 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, MANAGED or UNMANAGED).

arn str

The ARN of the compute environment.

compute_environment_name str
ecs_cluster_arn str

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, ENABLED or DISABLED). If the state is ENABLED, 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, CREATING or VALID).

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, MANAGED or UNMANAGED).

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.