AWS Native is in preview. AWS Classic is fully supported.
aws-native.batch.ComputeEnvironment
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::Batch::ComputeEnvironment
Create ComputeEnvironment Resource
new ComputeEnvironment(name: string, args: ComputeEnvironmentArgs, opts?: CustomResourceOptions);
@overload
def ComputeEnvironment(resource_name: str,
opts: Optional[ResourceOptions] = 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[Any] = None,
type: Optional[str] = None,
unmanagedv_cpus: Optional[int] = None,
update_policy: Optional[ComputeEnvironmentUpdatePolicyArgs] = None)
@overload
def ComputeEnvironment(resource_name: str,
args: ComputeEnvironmentArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Type string
- Compute
Environment stringName - Compute
Resources Pulumi.Aws Native. Batch. Inputs. Compute Environment Compute Resources - Eks
Configuration Pulumi.Aws Native. Batch. Inputs. Compute Environment Eks Configuration - Replace
Compute boolEnvironment - Service
Role string - State string
- object
A key-value pair to associate with a resource.
- Unmanagedv
Cpus int - Update
Policy Pulumi.Aws Native. Batch. Inputs. Compute Environment Update Policy
- Type string
- Compute
Environment stringName - Compute
Resources ComputeEnvironment Compute Resources Args - Eks
Configuration ComputeEnvironment Eks Configuration Args - Replace
Compute boolEnvironment - Service
Role string - State string
- interface{}
A key-value pair to associate with a resource.
- Unmanagedv
Cpus int - Update
Policy ComputeEnvironment Update Policy Args
- type String
- compute
Environment StringName - compute
Resources ComputeEnvironment Compute Resources - eks
Configuration ComputeEnvironment Eks Configuration - replace
Compute BooleanEnvironment - service
Role String - state String
- Object
A key-value pair to associate with a resource.
- unmanagedv
Cpus Integer - update
Policy ComputeEnvironment Update Policy
- type string
- compute
Environment stringName - compute
Resources ComputeEnvironment Compute Resources - eks
Configuration ComputeEnvironment Eks Configuration - replace
Compute booleanEnvironment - service
Role string - state string
- any
A key-value pair to associate with a resource.
- unmanagedv
Cpus number - update
Policy ComputeEnvironment Update Policy
- type str
- compute_
environment_ strname - compute_
resources ComputeEnvironment Compute Resources Args - eks_
configuration ComputeEnvironment Eks Configuration Args - replace_
compute_ boolenvironment - service_
role str - state str
- Any
A key-value pair to associate with a resource.
- unmanagedv_
cpus int - update_
policy ComputeEnvironment Update Policy Args
- type String
- compute
Environment StringName - compute
Resources Property Map - eks
Configuration Property Map - replace
Compute BooleanEnvironment - service
Role String - state String
- Any
A key-value pair to associate with a resource.
- unmanagedv
Cpus Number - update
Policy Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeEnvironment resource produces the following output properties:
- Compute
Environment stringArn - Id string
The provider-assigned unique ID for this managed resource.
- Compute
Environment stringArn - Id string
The provider-assigned unique ID for this managed resource.
- compute
Environment StringArn - id String
The provider-assigned unique ID for this managed resource.
- compute
Environment stringArn - id string
The provider-assigned unique ID for this managed resource.
- compute_
environment_ strarn - id str
The provider-assigned unique ID for this managed resource.
- compute
Environment StringArn - id String
The provider-assigned unique ID for this managed resource.
Supporting Types
ComputeEnvironmentComputeResources, ComputeEnvironmentComputeResourcesArgs
- Maxv
Cpus int - Subnets List<string>
- Type string
- Allocation
Strategy string - Bid
Percentage int - Desiredv
Cpus int - Ec2Configuration
List<Pulumi.
Aws Native. Batch. Inputs. Compute Environment Ec2Configuration Object> - Ec2Key
Pair string - Image
Id string - Instance
Role string - Instance
Types List<string> - Launch
Template Pulumi.Aws Native. Batch. Inputs. Compute Environment Launch Template Specification - Minv
Cpus int - Placement
Group string - Security
Group List<string>Ids - Spot
Iam stringFleet Role - object
A key-value pair to associate with a resource.
- Update
To boolLatest Image Version
- Maxv
Cpus int - Subnets []string
- Type string
- Allocation
Strategy string - Bid
Percentage int - Desiredv
Cpus int - Ec2Configuration
[]Compute
Environment Ec2Configuration Object - Ec2Key
Pair string - Image
Id string - Instance
Role string - Instance
Types []string - Launch
Template ComputeEnvironment Launch Template Specification - Minv
Cpus int - Placement
Group string - Security
Group []stringIds - Spot
Iam stringFleet Role - interface{}
A key-value pair to associate with a resource.
- Update
To boolLatest Image Version
- maxv
Cpus Integer - subnets List<String>
- type String
- allocation
Strategy String - bid
Percentage Integer - desiredv
Cpus Integer - ec2Configuration
List<Compute
Environment Ec2Configuration Object> - ec2Key
Pair String - image
Id String - instance
Role String - instance
Types List<String> - launch
Template ComputeEnvironment Launch Template Specification - minv
Cpus Integer - placement
Group String - security
Group List<String>Ids - spot
Iam StringFleet Role - Object
A key-value pair to associate with a resource.
- update
To BooleanLatest Image Version
- maxv
Cpus number - subnets string[]
- type string
- allocation
Strategy string - bid
Percentage number - desiredv
Cpus number - ec2Configuration
Compute
Environment Ec2Configuration Object[] - ec2Key
Pair string - image
Id string - instance
Role string - instance
Types string[] - launch
Template ComputeEnvironment Launch Template Specification - minv
Cpus number - placement
Group string - security
Group string[]Ids - spot
Iam stringFleet Role - any
A key-value pair to associate with a resource.
- update
To booleanLatest Image Version
- maxv_
cpus int - subnets Sequence[str]
- type str
- allocation_
strategy str - bid_
percentage int - desiredv_
cpus int - ec2_
configuration Sequence[ComputeEnvironment Ec2Configuration Object] - ec2_
key_ strpair - image_
id str - instance_
role str - instance_
types Sequence[str] - launch_
template ComputeEnvironment Launch Template Specification - minv_
cpus int - placement_
group str - security_
group_ Sequence[str]ids - spot_
iam_ strfleet_ role - Any
A key-value pair to associate with a resource.
- update_
to_ boollatest_ image_ version
- maxv
Cpus Number - subnets List<String>
- type String
- allocation
Strategy String - bid
Percentage Number - desiredv
Cpus Number - ec2Configuration List<Property Map>
- ec2Key
Pair String - image
Id String - instance
Role String - instance
Types List<String> - launch
Template Property Map - minv
Cpus Number - placement
Group String - security
Group List<String>Ids - spot
Iam StringFleet Role - Any
A key-value pair to associate with a resource.
- update
To BooleanLatest Image Version
ComputeEnvironmentEc2ConfigurationObject, ComputeEnvironmentEc2ConfigurationObjectArgs
- Image
Type string - Image
Id stringOverride - Image
Kubernetes stringVersion
- Image
Type string - Image
Id stringOverride - Image
Kubernetes stringVersion
- image
Type String - image
Id StringOverride - image
Kubernetes StringVersion
- image
Type string - image
Id stringOverride - image
Kubernetes stringVersion
- image
Type String - image
Id StringOverride - image
Kubernetes StringVersion
ComputeEnvironmentEksConfiguration, ComputeEnvironmentEksConfigurationArgs
- Eks
Cluster stringArn - Kubernetes
Namespace string
- Eks
Cluster stringArn - Kubernetes
Namespace string
- eks
Cluster StringArn - kubernetes
Namespace String
- eks
Cluster stringArn - kubernetes
Namespace string
- eks
Cluster StringArn - kubernetes
Namespace String
ComputeEnvironmentLaunchTemplateSpecification, ComputeEnvironmentLaunchTemplateSpecificationArgs
- Launch
Template stringId - Launch
Template stringName - Version string
- Launch
Template stringId - Launch
Template stringName - Version string
- launch
Template StringId - launch
Template StringName - version String
- launch
Template stringId - launch
Template stringName - version string
- launch_
template_ strid - launch_
template_ strname - version str
- launch
Template StringId - launch
Template StringName - version String
ComputeEnvironmentUpdatePolicy, ComputeEnvironmentUpdatePolicyArgs
- job
Execution IntegerTimeout Minutes - terminate
Jobs BooleanOn Update
- job
Execution numberTimeout Minutes - terminate
Jobs booleanOn Update
- job
Execution NumberTimeout Minutes - terminate
Jobs BooleanOn Update
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.