1. Packages
  2. AWS Native
  3. API Docs
  4. batch
  5. ComputeEnvironment

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.batch.ComputeEnvironment

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    Resource Type definition for AWS::Batch::ComputeEnvironment

    Create ComputeEnvironment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ComputeEnvironment(name: string, args: ComputeEnvironmentArgs, opts?: CustomResourceOptions);
    @overload
    def ComputeEnvironment(resource_name: str,
                           args: ComputeEnvironmentArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeEnvironment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           type: Optional[str] = None,
                           compute_environment_name: Optional[str] = None,
                           compute_resources: Optional[ComputeEnvironmentComputeResourcesArgs] = None,
                           eks_configuration: Optional[ComputeEnvironmentEksConfigurationArgs] = None,
                           replace_compute_environment: Optional[bool] = None,
                           service_role: Optional[str] = None,
                           state: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None,
                           unmanagedv_cpus: Optional[int] = None,
                           update_policy: Optional[ComputeEnvironmentUpdatePolicyArgs] = None)
    func NewComputeEnvironment(ctx *Context, name string, args ComputeEnvironmentArgs, opts ...ResourceOption) (*ComputeEnvironment, error)
    public ComputeEnvironment(string name, ComputeEnvironmentArgs args, CustomResourceOptions? opts = null)
    public ComputeEnvironment(String name, ComputeEnvironmentArgs args)
    public ComputeEnvironment(String name, ComputeEnvironmentArgs args, CustomResourceOptions options)
    
    type: aws-native:batch:ComputeEnvironment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ComputeEnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ComputeEnvironmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ComputeEnvironmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeEnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeEnvironmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const computeEnvironmentResource = new aws_native.batch.ComputeEnvironment("computeEnvironmentResource", {
        type: "string",
        computeEnvironmentName: "string",
        computeResources: {
            maxvCpus: 0,
            type: "string",
            subnets: ["string"],
            launchTemplate: {
                launchTemplateId: "string",
                launchTemplateName: "string",
                version: "string",
            },
            minvCpus: 0,
            imageId: "string",
            instanceRole: "string",
            instanceTypes: ["string"],
            allocationStrategy: "string",
            ec2Configuration: [{
                imageType: "string",
                imageIdOverride: "string",
                imageKubernetesVersion: "string",
            }],
            ec2KeyPair: "string",
            placementGroup: "string",
            securityGroupIds: ["string"],
            spotIamFleetRole: "string",
            desiredvCpus: 0,
            tags: {
                string: "string",
            },
            bidPercentage: 0,
            updateToLatestImageVersion: false,
        },
        eksConfiguration: {
            eksClusterArn: "string",
            kubernetesNamespace: "string",
        },
        replaceComputeEnvironment: false,
        serviceRole: "string",
        state: "string",
        tags: {
            string: "string",
        },
        unmanagedvCpus: 0,
        updatePolicy: {
            jobExecutionTimeoutMinutes: 0,
            terminateJobsOnUpdate: false,
        },
    });
    
    Coming soon!
    

    ComputeEnvironment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ComputeEnvironment resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ComputeEnvironment resource produces the following output properties:

    ComputeEnvironmentArn string
    Id string
    The provider-assigned unique ID for this managed resource.
    ComputeEnvironmentArn string
    Id string
    The provider-assigned unique ID for this managed resource.
    computeEnvironmentArn String
    id String
    The provider-assigned unique ID for this managed resource.
    computeEnvironmentArn string
    id string
    The provider-assigned unique ID for this managed resource.
    compute_environment_arn str
    id str
    The provider-assigned unique ID for this managed resource.
    computeEnvironmentArn String
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    ComputeEnvironmentComputeResources, ComputeEnvironmentComputeResourcesArgs

    maxvCpus Number
    subnets List<String>
    type String
    allocationStrategy String
    bidPercentage Number
    desiredvCpus Number
    ec2Configuration List<Property Map>
    ec2KeyPair String
    imageId String
    instanceRole String
    instanceTypes List<String>
    launchTemplate Property Map
    minvCpus Number
    placementGroup String
    securityGroupIds List<String>
    spotIamFleetRole String
    tags Map<String>
    A key-value pair to associate with a resource.
    updateToLatestImageVersion Boolean

    ComputeEnvironmentEc2ConfigurationObject, ComputeEnvironmentEc2ConfigurationObjectArgs

    ComputeEnvironmentEksConfiguration, ComputeEnvironmentEksConfigurationArgs

    ComputeEnvironmentLaunchTemplateSpecification, ComputeEnvironmentLaunchTemplateSpecificationArgs

    ComputeEnvironmentUpdatePolicy, ComputeEnvironmentUpdatePolicyArgs

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi