awsbatch

package
v2.79.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

README

AWS Batch Construct Library

This module is part of the AWS Cloud Development Kit project.

import batch "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

An experimental construct library for this service is available in preview. Since it is not stable yet, it is distributed as a separate package so that you can pin its version independently of the rest of the CDK. See the package:

@aws-cdk/aws-batch-alpha

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::Batch.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnComputeEnvironment_CFN_RESOURCE_TYPE_NAME

func CfnComputeEnvironment_CFN_RESOURCE_TYPE_NAME() *string

func CfnComputeEnvironment_IsCfnElement

func CfnComputeEnvironment_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnComputeEnvironment_IsCfnResource

func CfnComputeEnvironment_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnComputeEnvironment_IsConstruct

func CfnComputeEnvironment_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnJobDefinition_CFN_RESOURCE_TYPE_NAME

func CfnJobDefinition_CFN_RESOURCE_TYPE_NAME() *string

func CfnJobDefinition_IsCfnElement

func CfnJobDefinition_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnJobDefinition_IsCfnResource

func CfnJobDefinition_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnJobDefinition_IsConstruct

func CfnJobDefinition_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnJobQueue_CFN_RESOURCE_TYPE_NAME

func CfnJobQueue_CFN_RESOURCE_TYPE_NAME() *string

func CfnJobQueue_IsCfnElement

func CfnJobQueue_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnJobQueue_IsCfnResource

func CfnJobQueue_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnJobQueue_IsConstruct

func CfnJobQueue_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnSchedulingPolicy_CFN_RESOURCE_TYPE_NAME

func CfnSchedulingPolicy_CFN_RESOURCE_TYPE_NAME() *string

func CfnSchedulingPolicy_IsCfnElement

func CfnSchedulingPolicy_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnSchedulingPolicy_IsCfnResource

func CfnSchedulingPolicy_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnSchedulingPolicy_IsConstruct

func CfnSchedulingPolicy_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func NewCfnComputeEnvironment_Override

func NewCfnComputeEnvironment_Override(c CfnComputeEnvironment, scope constructs.Construct, id *string, props *CfnComputeEnvironmentProps)

Create a new `AWS::Batch::ComputeEnvironment`.

func NewCfnJobDefinition_Override

func NewCfnJobDefinition_Override(c CfnJobDefinition, scope constructs.Construct, id *string, props *CfnJobDefinitionProps)

Create a new `AWS::Batch::JobDefinition`.

func NewCfnJobQueue_Override

func NewCfnJobQueue_Override(c CfnJobQueue, scope constructs.Construct, id *string, props *CfnJobQueueProps)

Create a new `AWS::Batch::JobQueue`.

func NewCfnSchedulingPolicy_Override

func NewCfnSchedulingPolicy_Override(c CfnSchedulingPolicy, scope constructs.Construct, id *string, props *CfnSchedulingPolicyProps)

Create a new `AWS::Batch::SchedulingPolicy`.

Types

type CfnComputeEnvironment

type CfnComputeEnvironment interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Returns the compute environment ARN, such as `batch: *us-east-1* : *111122223333* :compute-environment/ *ComputeEnvironmentName*` .
	AttrComputeEnvironmentArn() *string
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// The name for your compute environment.
	//
	// It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
	ComputeEnvironmentName() *string
	SetComputeEnvironmentName(val *string)
	// The ComputeResources property type specifies details of the compute resources managed by the compute environment.
	//
	// This parameter is required for managed compute environments. For more information, see [Compute Environments](https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the ** .
	ComputeResources() interface{}
	SetComputeResources(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// The details for the Amazon EKS cluster that supports the compute environment.
	EksConfiguration() interface{}
	SetEksConfiguration(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment.
	//
	// The default value is `true` . To enable more properties to be updated, set this property to `false` . When changing the value of this property to `false` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the `UPDATE_ROLLBACK_FAILED` state. You can't update a stack that is in the `UPDATE_ROLLBACK_FAILED` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see [Continue rolling back an update](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html) in the *AWS CloudFormation User Guide* .
	//
	// The properties that can't be changed without replacing the compute environment are in the [`ComputeResources`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html) property type: [`AllocationStrategy`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy) , [`BidPercentage`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage) , [`Ec2Configuration`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration) , [`Ec2KeyPair`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair) , [`Ec2KeyPair`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair) , [`ImageId`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid) , [`InstanceRole`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole) , [`InstanceTypes`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes) , [`LaunchTemplate`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate) , [`MaxvCpus`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus) , [`MinvCpus`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus) , [`PlacementGroup`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup) , [`SecurityGroupIds`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids) , [`Subnets`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets) , [Tags](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags) , [`Type`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type) , and [`UpdateToLatestImageVersion`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion) .
	ReplaceComputeEnvironment() interface{}
	SetReplaceComputeEnvironment(val interface{})
	// The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
	//
	// For more information, see [AWS Batch service IAM role](https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in the *AWS Batch User Guide* .
	//
	// > If your account already created the AWS Batch service-linked role, that role is used by default for your compute environment unless you specify a different role here. If the AWS Batch service-linked role doesn't exist in your account, and no role is specified here, the service attempts to create the AWS Batch service-linked role in your account.
	//
	// If your specified role has a path other than `/` , then you must specify either the full role ARN (recommended) or prefix the role name with the path. For example, if a role with the name `bar` has a path of `/foo/` , specify `/foo/bar` as the role name. For more information, see [Friendly names and paths](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) in the *IAM User Guide* .
	//
	// > Depending on how you created your AWS Batch service role, its ARN might contain the `service-role` path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the `service-role` path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
	ServiceRole() *string
	SetServiceRole(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// The state of the compute environment.
	//
	// If the state is `ENABLED` , then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
	//
	// If the state is `ENABLED` , then the AWS Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.
	//
	// If the state is `DISABLED` , then the AWS Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a `STARTING` or `RUNNING` state continue to progress normally. Managed compute environments in the `DISABLED` state don't scale out.
	//
	// > Compute environments in a `DISABLED` state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see [State](https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state) in the *AWS Batch User Guide* .
	//
	// When an instance is idle, the instance scales down to the `minvCpus` value. However, the instance size doesn't change. For example, consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and a `desiredvCpus` value of `36` . This instance doesn't scale down to a `c5.large` instance.
	State() *string
	SetState(val *string)
	// The tags applied to the compute environment.
	Tags() awscdk.TagManager
	// The type of the compute environment: `MANAGED` or `UNMANAGED` .
	//
	// For more information, see [Compute Environments](https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the *AWS Batch User Guide* .
	Type() *string
	SetType(val *string)
	// The maximum number of vCPUs for an unmanaged compute environment.
	//
	// This parameter is only used for fair share scheduling to reserve vCPU capacity for new share identifiers. If this parameter isn't provided for a fair share job queue, no vCPU capacity is reserved.
	//
	// > This parameter is only supported when the `type` parameter is set to `UNMANAGED` .
	UnmanagedvCpus() *float64
	SetUnmanagedvCpus(val *float64)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Specifies the infrastructure update policy for the compute environment.
	//
	// For more information about infrastructure updates, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	UpdatePolicy() interface{}
	SetUpdatePolicy(val interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Batch::ComputeEnvironment`.

The `AWS::Batch::ComputeEnvironment` resource defines your AWS Batch compute environment. You can define `MANAGED` or `UNMANAGED` compute environments. `MANAGED` compute environments can use Amazon EC2 or AWS Fargate resources. `UNMANAGED` compute environments can only use EC2 resources. For more information, see [Compute Environments](https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the ** .

In a managed compute environment, AWS Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the [launch template](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) that you specify when you create the compute environment. You can choose either to use EC2 On-Demand Instances and EC2 Spot Instances, or to use Fargate and Fargate Spot capacity in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is below a specified percentage of the On-Demand price.

> Multi-node parallel jobs are not supported on Spot Instances.

In an unmanaged compute environment, you can manage your own EC2 compute resources and have a lot of flexibility with how you configure your compute resources. For example, you can use custom AMI. However, you need to verify that your AMI meets the Amazon ECS container instance AMI specification. For more information, see [container instance AMIs](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html) in the *Amazon Elastic Container Service Developer Guide* . After you have created your unmanaged compute environment, you can use the [DescribeComputeEnvironments](https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeComputeEnvironments.html) operation to find the Amazon ECS cluster that is associated with it. Then, manually launch your container instances into that Amazon ECS cluster. For more information, see [Launching an Amazon ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html) in the *Amazon Elastic Container Service Developer Guide* .

> To create a compute environment that uses EKS resources, the caller must have permissions to call `eks:DescribeCluster` . > AWS Batch doesn't upgrade the AMIs in a compute environment after it's created except under specific conditions. For example, it doesn't automatically update the AMIs when a newer version of the Amazon ECS optimized AMI is available. Therefore, you're responsible for the management of the guest operating system (including updates and security patches) and any additional application software or utilities that you install on the compute resources. There are two ways to use a new AMI for your AWS Batch jobs. The original method is to complete these steps: > > - Create a new compute environment with the new AMI. > - Add the compute environment to an existing job queue. > - Remove the earlier compute environment from your job queue. > - Delete the earlier compute environment. > > In April 2022, AWS Batch added enhanced support for updating compute environments. For example, the `UpdateComputeEnvironent` API lets you use the `ReplaceComputeEnvironment` property to dynamically update compute environment parameters such as the launch template or instance type without replacement. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* . > > To use the enhanced updating of compute environments to update AMIs, follow these rules: > > - Either do not set the [ServiceRole](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-servicerole) property or set it to the *AWSServiceRoleForBatch* service-linked role. > - Set the [AllocationStrategy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy) property to `BEST_FIT_PROGRESSIVE` or `SPOT_CAPACITY_OPTIMIZED` . > - Set the [ReplaceComputeEnvironment](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-replacecomputeenvironment) property to `false` . > > > Set the `ReplaceComputeEnvironment` property to `false` if the compute environment uses the `BEST_FIT` allocation strategy. > If the `ReplaceComputeEnvironment` property is set to `false` , you might receive an error message when you update the CFN template for a compute environment. This issue occurs if the updated `desiredvcpus` value is less than the current `desiredvcpus` value. As a workaround, delete the `desiredvcpus` value from the updated template or use the `minvcpus` property to manage the number of vCPUs. For information, see [Error message when you update the `DesiredvCpus` setting](https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#error-desired-vcpus-update) . > - Set the [UpdateToLatestImageVersion](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion) property to `true` . This property is used when you update a compute environment. The [UpdateToLatestImageVersion](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion) property is ignored when you create a compute environment. > - Either do not specify an image ID in [ImageId](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid) or [ImageIdOverride](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-ec2configurationobject.html#cfn-batch-computeenvironment-ec2configurationobject-imageidoverride) properties, or in the launch template identified by the [Launch Template](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate) property. In that case AWS Batch will select the latest Amazon ECS optimized AMI supported by AWS Batch at the time the infrastructure update is initiated. Alternatively you can specify the AMI ID in the `ImageId` or `ImageIdOverride` properties, or the launch template identified by the `LaunchTemplate` properties. Changing any of these properties will trigger an infrastructure update. > > If these rules are followed, any update that triggers an infrastructure update will cause the AMI ID to be re-selected. If the [Version](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecification.html#cfn-batch-computeenvironment-launchtemplatespecification-version) property of the [LaunchTemplateSpecification](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecification.html) is set to `$Latest` or `$Default` , the latest or default version of the launch template will be evaluated up at the time of the infrastructure update, even if the `LaunchTemplateSpecification` was not updated.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnComputeEnvironment := awscdk.Aws_batch.NewCfnComputeEnvironment(this, jsii.String("MyCfnComputeEnvironment"), &CfnComputeEnvironmentProps{
	Type: jsii.String("type"),

	// the properties below are optional
	ComputeEnvironmentName: jsii.String("computeEnvironmentName"),
	ComputeResources: &ComputeResourcesProperty{
		MaxvCpus: jsii.Number(123),
		Subnets: []*string{
			jsii.String("subnets"),
		},
		Type: jsii.String("type"),

		// the properties below are optional
		AllocationStrategy: jsii.String("allocationStrategy"),
		BidPercentage: jsii.Number(123),
		DesiredvCpus: jsii.Number(123),
		Ec2Configuration: []interface{}{
			&Ec2ConfigurationObjectProperty{
				ImageType: jsii.String("imageType"),

				// the properties below are optional
				ImageIdOverride: jsii.String("imageIdOverride"),
				ImageKubernetesVersion: jsii.String("imageKubernetesVersion"),
			},
		},
		Ec2KeyPair: jsii.String("ec2KeyPair"),
		ImageId: jsii.String("imageId"),
		InstanceRole: jsii.String("instanceRole"),
		InstanceTypes: []*string{
			jsii.String("instanceTypes"),
		},
		LaunchTemplate: &LaunchTemplateSpecificationProperty{
			LaunchTemplateId: jsii.String("launchTemplateId"),
			LaunchTemplateName: jsii.String("launchTemplateName"),
			Version: jsii.String("version"),
		},
		MinvCpus: jsii.Number(123),
		PlacementGroup: jsii.String("placementGroup"),
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SpotIamFleetRole: jsii.String("spotIamFleetRole"),
		Tags: map[string]*string{
			"tagsKey": jsii.String("tags"),
		},
		UpdateToLatestImageVersion: jsii.Boolean(false),
	},
	EksConfiguration: &EksConfigurationProperty{
		EksClusterArn: jsii.String("eksClusterArn"),
		KubernetesNamespace: jsii.String("kubernetesNamespace"),
	},
	ReplaceComputeEnvironment: jsii.Boolean(false),
	ServiceRole: jsii.String("serviceRole"),
	State: jsii.String("state"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
	UnmanagedvCpus: jsii.Number(123),
	UpdatePolicy: &UpdatePolicyProperty{
		JobExecutionTimeoutMinutes: jsii.Number(123),
		TerminateJobsOnUpdate: jsii.Boolean(false),
	},
})

func NewCfnComputeEnvironment

func NewCfnComputeEnvironment(scope constructs.Construct, id *string, props *CfnComputeEnvironmentProps) CfnComputeEnvironment

Create a new `AWS::Batch::ComputeEnvironment`.

type CfnComputeEnvironmentProps

type CfnComputeEnvironmentProps struct {
	// The type of the compute environment: `MANAGED` or `UNMANAGED` .
	//
	// For more information, see [Compute Environments](https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the *AWS Batch User Guide* .
	Type *string `field:"required" json:"type" yaml:"type"`
	// The name for your compute environment.
	//
	// It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
	ComputeEnvironmentName *string `field:"optional" json:"computeEnvironmentName" yaml:"computeEnvironmentName"`
	// The ComputeResources property type specifies details of the compute resources managed by the compute environment.
	//
	// This parameter is required for managed compute environments. For more information, see [Compute Environments](https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the ** .
	ComputeResources interface{} `field:"optional" json:"computeResources" yaml:"computeResources"`
	// The details for the Amazon EKS cluster that supports the compute environment.
	EksConfiguration interface{} `field:"optional" json:"eksConfiguration" yaml:"eksConfiguration"`
	// Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment.
	//
	// The default value is `true` . To enable more properties to be updated, set this property to `false` . When changing the value of this property to `false` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the `UPDATE_ROLLBACK_FAILED` state. You can't update a stack that is in the `UPDATE_ROLLBACK_FAILED` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see [Continue rolling back an update](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html) in the *AWS CloudFormation User Guide* .
	//
	// The properties that can't be changed without replacing the compute environment are in the [`ComputeResources`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html) property type: [`AllocationStrategy`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy) , [`BidPercentage`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage) , [`Ec2Configuration`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration) , [`Ec2KeyPair`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair) , [`Ec2KeyPair`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair) , [`ImageId`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid) , [`InstanceRole`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole) , [`InstanceTypes`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes) , [`LaunchTemplate`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate) , [`MaxvCpus`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus) , [`MinvCpus`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus) , [`PlacementGroup`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup) , [`SecurityGroupIds`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids) , [`Subnets`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets) , [Tags](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags) , [`Type`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type) , and [`UpdateToLatestImageVersion`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion) .
	ReplaceComputeEnvironment interface{} `field:"optional" json:"replaceComputeEnvironment" yaml:"replaceComputeEnvironment"`
	// The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
	//
	// For more information, see [AWS Batch service IAM role](https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in the *AWS Batch User Guide* .
	//
	// > If your account already created the AWS Batch service-linked role, that role is used by default for your compute environment unless you specify a different role here. If the AWS Batch service-linked role doesn't exist in your account, and no role is specified here, the service attempts to create the AWS Batch service-linked role in your account.
	//
	// If your specified role has a path other than `/` , then you must specify either the full role ARN (recommended) or prefix the role name with the path. For example, if a role with the name `bar` has a path of `/foo/` , specify `/foo/bar` as the role name. For more information, see [Friendly names and paths](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) in the *IAM User Guide* .
	//
	// > Depending on how you created your AWS Batch service role, its ARN might contain the `service-role` path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the `service-role` path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
	ServiceRole *string `field:"optional" json:"serviceRole" yaml:"serviceRole"`
	// The state of the compute environment.
	//
	// If the state is `ENABLED` , then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
	//
	// If the state is `ENABLED` , then the AWS Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.
	//
	// If the state is `DISABLED` , then the AWS Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a `STARTING` or `RUNNING` state continue to progress normally. Managed compute environments in the `DISABLED` state don't scale out.
	//
	// > Compute environments in a `DISABLED` state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see [State](https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state) in the *AWS Batch User Guide* .
	//
	// When an instance is idle, the instance scales down to the `minvCpus` value. However, the instance size doesn't change. For example, consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and a `desiredvCpus` value of `36` . This instance doesn't scale down to a `c5.large` instance.
	State *string `field:"optional" json:"state" yaml:"state"`
	// The tags applied to the compute environment.
	Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
	// The maximum number of vCPUs for an unmanaged compute environment.
	//
	// This parameter is only used for fair share scheduling to reserve vCPU capacity for new share identifiers. If this parameter isn't provided for a fair share job queue, no vCPU capacity is reserved.
	//
	// > This parameter is only supported when the `type` parameter is set to `UNMANAGED` .
	UnmanagedvCpus *float64 `field:"optional" json:"unmanagedvCpus" yaml:"unmanagedvCpus"`
	// Specifies the infrastructure update policy for the compute environment.
	//
	// For more information about infrastructure updates, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	UpdatePolicy interface{} `field:"optional" json:"updatePolicy" yaml:"updatePolicy"`
}

Properties for defining a `CfnComputeEnvironment`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnComputeEnvironmentProps := &CfnComputeEnvironmentProps{
	Type: jsii.String("type"),

	// the properties below are optional
	ComputeEnvironmentName: jsii.String("computeEnvironmentName"),
	ComputeResources: &ComputeResourcesProperty{
		MaxvCpus: jsii.Number(123),
		Subnets: []*string{
			jsii.String("subnets"),
		},
		Type: jsii.String("type"),

		// the properties below are optional
		AllocationStrategy: jsii.String("allocationStrategy"),
		BidPercentage: jsii.Number(123),
		DesiredvCpus: jsii.Number(123),
		Ec2Configuration: []interface{}{
			&Ec2ConfigurationObjectProperty{
				ImageType: jsii.String("imageType"),

				// the properties below are optional
				ImageIdOverride: jsii.String("imageIdOverride"),
				ImageKubernetesVersion: jsii.String("imageKubernetesVersion"),
			},
		},
		Ec2KeyPair: jsii.String("ec2KeyPair"),
		ImageId: jsii.String("imageId"),
		InstanceRole: jsii.String("instanceRole"),
		InstanceTypes: []*string{
			jsii.String("instanceTypes"),
		},
		LaunchTemplate: &LaunchTemplateSpecificationProperty{
			LaunchTemplateId: jsii.String("launchTemplateId"),
			LaunchTemplateName: jsii.String("launchTemplateName"),
			Version: jsii.String("version"),
		},
		MinvCpus: jsii.Number(123),
		PlacementGroup: jsii.String("placementGroup"),
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SpotIamFleetRole: jsii.String("spotIamFleetRole"),
		Tags: map[string]*string{
			"tagsKey": jsii.String("tags"),
		},
		UpdateToLatestImageVersion: jsii.Boolean(false),
	},
	EksConfiguration: &EksConfigurationProperty{
		EksClusterArn: jsii.String("eksClusterArn"),
		KubernetesNamespace: jsii.String("kubernetesNamespace"),
	},
	ReplaceComputeEnvironment: jsii.Boolean(false),
	ServiceRole: jsii.String("serviceRole"),
	State: jsii.String("state"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
	UnmanagedvCpus: jsii.Number(123),
	UpdatePolicy: &UpdatePolicyProperty{
		JobExecutionTimeoutMinutes: jsii.Number(123),
		TerminateJobsOnUpdate: jsii.Boolean(false),
	},
}

type CfnComputeEnvironment_ComputeResourcesProperty

type CfnComputeEnvironment_ComputeResourcesProperty struct {
	// The maximum number of Amazon EC2 vCPUs that an environment can reach.
	//
	// > With both `BEST_FIT_PROGRESSIVE` and `SPOT_CAPACITY_OPTIMIZED` allocation strategies using On-Demand or Spot Instances, and the `BEST_FIT` strategy using Spot Instances, AWS Batch might need to exceed `maxvCpus` to meet your capacity requirements. In this event, AWS Batch never exceeds `maxvCpus` by more than a single instance. That is, no more than a single instance from among those specified in your compute environment.
	MaxvCpus *float64 `field:"required" json:"maxvCpus" yaml:"maxvCpus"`
	// The VPC subnets where the compute resources are launched.
	//
	// Fargate compute resources can contain up to 16 subnets. For Fargate compute resources, providing an empty list will be handled as if this parameter wasn't specified and no change is made. For EC2 compute resources, providing an empty list removes the VPC subnets from the compute resource. For more information, see [VPCs and subnets](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the *Amazon VPC User Guide* .
	//
	// When updating a compute environment, changing the VPC subnets requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > AWS Batch on Amazon EC2 and AWS Batch on Amazon EKS support Local Zones. For more information, see [Local Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-local-zones) in the *Amazon EC2 User Guide for Linux Instances* , [Amazon EKS and AWS Local Zones](https://docs.aws.amazon.com/eks/latest/userguide/local-zones.html) in the *Amazon EKS User Guide* and [Amazon ECS clusters in Local Zones, Wavelength Zones, and AWS Outposts](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-regions-zones.html#clusters-local-zones) in the *Amazon ECS Developer Guide* .
	// >
	// > AWS Batch on Fargate doesn't currently support Local Zones.
	Subnets *[]*string `field:"required" json:"subnets" yaml:"subnets"`
	// The type of compute environment: `EC2` , `SPOT` , `FARGATE` , or `FARGATE_SPOT` .
	//
	// For more information, see [Compute environments](https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the *AWS Batch User Guide* .
	//
	// If you choose `SPOT` , you must also specify an Amazon EC2 Spot Fleet role with the `spotIamFleetRole` parameter. For more information, see [Amazon EC2 spot fleet role](https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) in the *AWS Batch User Guide* .
	//
	// When updating compute environment, changing the type of a compute environment requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// When updating the type of a compute environment, changing between `EC2` and `SPOT` or between `FARGATE` and `FARGATE_SPOT` will initiate an infrastructure update, but if you switch between `EC2` and `FARGATE` , AWS CloudFormation will create a new compute environment.
	Type *string `field:"required" json:"type" yaml:"type"`
	// The allocation strategy to use for the compute resource if not enough instances of the best fitting instance type can be allocated.
	//
	// This might be because of availability of the instance type in the Region or [Amazon EC2 service limits](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) . For more information, see [Allocation strategies](https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html) in the *AWS Batch User Guide* .
	//
	// When updating a compute environment, changing the allocation strategy requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* . `BEST_FIT` is not supported when updating a compute environment.
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.
	//
	// - **BEST_FIT (default)** - AWS Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, AWS Batch waits for the additional instances to be available. If there aren't enough instances available, or if the user is reaching [Amazon EC2 service limits](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) then additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps costs lower but can limit scaling. If you are using Spot Fleets with `BEST_FIT` then the Spot Fleet IAM role must be specified.
	// - **BEST_FIT_PROGRESSIVE** - AWS Batch will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the previously selected instance types aren't available, AWS Batch will select new instance types.
	// - **SPOT_CAPACITY_OPTIMIZED** - AWS Batch will select one or more instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources.
	//
	// With both `BEST_FIT_PROGRESSIVE` and `SPOT_CAPACITY_OPTIMIZED` allocation strategies using On-Demand or Spot Instances, and the `BEST_FIT` strategy using Spot Instances, AWS Batch might need to go above `maxvCpus` to meet your capacity requirements. In this event, AWS Batch never exceeds `maxvCpus` by more than a single instance.
	AllocationStrategy *string `field:"optional" json:"allocationStrategy" yaml:"allocationStrategy"`
	// The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched.
	//
	// For example, if your maximum percentage is 20%, the Spot price must be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. For most use cases, we recommend leaving this field empty.
	//
	// When updating a compute environment, changing the bid percentage requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
	BidPercentage *float64 `field:"optional" json:"bidPercentage" yaml:"bidPercentage"`
	// The desired number of Amazon EC2 vCPUS in the compute environment.
	//
	// AWS Batch modifies this value between the minimum and maximum values based on job queue demand.
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. > AWS Batch doesn't support changing the desired number of vCPUs of an existing compute environment. Don't specify this parameter for compute environments using Amazon EKS clusters. > When you update the `desiredvCpus` setting, the value must be between the `minvCpus` and `maxvCpus` values.
	// >
	// > Additionally, the updated `desiredvCpus` value must be greater than or equal to the current `desiredvCpus` value. For more information, see [Troubleshooting AWS Batch](https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#error-desired-vcpus-update) in the *AWS Batch User Guide* .
	DesiredvCpus *float64 `field:"optional" json:"desiredvCpus" yaml:"desiredvCpus"`
	// Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment.
	//
	// If `Ec2Configuration` isn't specified, the default is `ECS_AL2` .
	//
	// When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* . To remove the EC2 configuration and any custom AMI ID specified in `imageIdOverride` , set this value to an empty string.
	//
	// One or two values can be provided.
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
	Ec2Configuration interface{} `field:"optional" json:"ec2Configuration" yaml:"ec2Configuration"`
	// The Amazon EC2 key pair that's used for instances launched in the compute environment.
	//
	// You can use this key pair to log in to your instances with SSH. To remove the Amazon EC2 key pair, set this value to an empty string.
	//
	// When updating a compute environment, changing the EC2 key pair requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
	Ec2KeyPair *string `field:"optional" json:"ec2KeyPair" yaml:"ec2KeyPair"`
	// The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
	//
	// This parameter is overridden by the `imageIdOverride` member of the `Ec2Configuration` structure. To remove the custom AMI ID and use the default AMI ID, set this value to an empty string.
	//
	// When updating a compute environment, changing the AMI ID requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. > The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see [Amazon ECS-optimized Amazon Linux 2 AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html) in the *Amazon Elastic Container Service Developer Guide* .
	ImageId *string `field:"optional" json:"imageId" yaml:"imageId"`
	// The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment.
	//
	// You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, `*ecsInstanceRole*` or `arn:aws:iam:: *<aws_account_id>* :instance-profile/ *ecsInstanceRole*` . For more information, see [Amazon ECS instance role](https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html) in the *AWS Batch User Guide* .
	//
	// When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
	InstanceRole *string `field:"optional" json:"instanceRole" yaml:"instanceRole"`
	// The instances types that can be launched.
	//
	// You can specify instance families to launch any instance type within those families (for example, `c5` or `p3` ), or you can specify specific sizes within a family (such as `c5.8xlarge` ). You can also choose `optimal` to select instance types (from the C4, M4, and R4 instance families) that match the demand of your job queues.
	//
	// When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. > When you create a compute environment, the instance types that you select for the compute environment must share the same architecture. For example, you can't mix x86 and ARM instances in the same compute environment. > Currently, `optimal` uses instance types from the C4, M4, and R4 instance families. In Regions that don't have instance types from those instance families, instance types from the C5, M5, and R5 instance families are used.
	InstanceTypes *[]*string `field:"optional" json:"instanceTypes" yaml:"instanceTypes"`
	// The launch template to use for your compute resources.
	//
	// Any other compute resource parameters that you specify in a [CreateComputeEnvironment](https://docs.aws.amazon.com/batch/latest/APIReference/API_CreateComputeEnvironment.html) API operation override the same parameters in the launch template. You must specify either the launch template ID or launch template name in the request, but not both. For more information, see [Launch Template Support](https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html) in the ** . Removing the launch template from a compute environment will not remove the AMI specified in the launch template. In order to update the AMI specified in a launch template, the `updateToLatestImageVersion` parameter must be set to `true` .
	//
	// When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the ** .
	//
	// > This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
	LaunchTemplate interface{} `field:"optional" json:"launchTemplate" yaml:"launchTemplate"`
	// The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is `DISABLED` ).
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
	MinvCpus *float64 `field:"optional" json:"minvCpus" yaml:"minvCpus"`
	// The Amazon EC2 placement group to associate with your compute resources.
	//
	// If you intend to submit multi-node parallel jobs to your compute environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential. For more information, see [Placement groups](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the *Amazon EC2 User Guide for Linux Instances* .
	//
	// When updating a compute environment, changing the placement group requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
	PlacementGroup *string `field:"optional" json:"placementGroup" yaml:"placementGroup"`
	// The Amazon EC2 security groups that are associated with instances launched in the compute environment.
	//
	// This parameter is required for Fargate compute resources, where it can contain up to 5 security groups. For Fargate compute resources, providing an empty list is handled as if this parameter wasn't specified and no change is made. For EC2 compute resources, providing an empty list removes the security groups from the compute resource.
	//
	// When updating a compute environment, changing the EC2 security groups requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	SecurityGroupIds *[]*string `field:"optional" json:"securityGroupIds" yaml:"securityGroupIds"`
	// The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a `SPOT` compute environment.
	//
	// This role is required if the allocation strategy set to `BEST_FIT` or if the allocation strategy isn't specified. For more information, see [Amazon EC2 spot fleet role](https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. > To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must use the newer *AmazonEC2SpotFleetTaggingRole* managed policy. The previously recommended *AmazonEC2SpotFleetRole* managed policy doesn't have the required permissions to tag Spot Instances. For more information, see [Spot instances not tagged on creation](https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#spot-instance-no-tag) in the *AWS Batch User Guide* .
	SpotIamFleetRole *string `field:"optional" json:"spotIamFleetRole" yaml:"spotIamFleetRole"`
	// Key-value pair tags to be applied to EC2 resources that are launched in the compute environment.
	//
	// For AWS Batch , these take the form of `"String1": "String2"` , where `String1` is the tag key and `String2` is the tag value-for example, `{ "Name": "Batch Instance - C4OnDemand" }` . This is helpful for recognizing your AWS Batch instances in the Amazon EC2 console. These tags aren't seen when using the AWS Batch `ListTagsForResource` API operation.
	//
	// When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
	Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
	// Specifies whether the AMI ID is updated to the latest one that's supported by AWS Batch when the compute environment has an infrastructure update.
	//
	// The default value is `false` .
	//
	// > An AMI ID can either be specified in the `imageId` or `imageIdOverride` parameters or be determined by the launch template that's specified in the `launchTemplate` parameter. If an AMI ID is specified any of these ways, this parameter is ignored. For more information about to update AMI IDs during an infrastructure update, see [Updating the AMI ID](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html#updating-compute-environments-ami) in the *AWS Batch User Guide* .
	//
	// When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	UpdateToLatestImageVersion interface{} `field:"optional" json:"updateToLatestImageVersion" yaml:"updateToLatestImageVersion"`
}

Details about the compute resources managed by the compute environment.

This parameter is required for managed compute environments. For more information, see [Compute Environments](https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the *AWS Batch User Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

computeResourcesProperty := &ComputeResourcesProperty{
	MaxvCpus: jsii.Number(123),
	Subnets: []*string{
		jsii.String("subnets"),
	},
	Type: jsii.String("type"),

	// the properties below are optional
	AllocationStrategy: jsii.String("allocationStrategy"),
	BidPercentage: jsii.Number(123),
	DesiredvCpus: jsii.Number(123),
	Ec2Configuration: []interface{}{
		&Ec2ConfigurationObjectProperty{
			ImageType: jsii.String("imageType"),

			// the properties below are optional
			ImageIdOverride: jsii.String("imageIdOverride"),
			ImageKubernetesVersion: jsii.String("imageKubernetesVersion"),
		},
	},
	Ec2KeyPair: jsii.String("ec2KeyPair"),
	ImageId: jsii.String("imageId"),
	InstanceRole: jsii.String("instanceRole"),
	InstanceTypes: []*string{
		jsii.String("instanceTypes"),
	},
	LaunchTemplate: &LaunchTemplateSpecificationProperty{
		LaunchTemplateId: jsii.String("launchTemplateId"),
		LaunchTemplateName: jsii.String("launchTemplateName"),
		Version: jsii.String("version"),
	},
	MinvCpus: jsii.Number(123),
	PlacementGroup: jsii.String("placementGroup"),
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SpotIamFleetRole: jsii.String("spotIamFleetRole"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
	UpdateToLatestImageVersion: jsii.Boolean(false),
}

type CfnComputeEnvironment_Ec2ConfigurationObjectProperty

type CfnComputeEnvironment_Ec2ConfigurationObjectProperty struct {
	// The image type to match with the instance type to select an AMI.
	//
	// The supported values are different for `ECS` and `EKS` resources.
	//
	// - **ECS** - If the `imageIdOverride` parameter isn't specified, then a recent [Amazon ECS-optimized Amazon Linux 2 AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami) ( `ECS_AL2` ) is used. If a new image type is specified in an update, but neither an `imageId` nor a `imageIdOverride` parameter is specified, then the latest Amazon ECS optimized AMI for that image type that's supported by AWS Batch is used.
	//
	// - **ECS_AL2** - [Amazon Linux 2](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami) : Default for all non-GPU instance families.
	// - **ECS_AL2_NVIDIA** - [Amazon Linux 2 (GPU)](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami) : Default for all GPU instance families (for example `P4` and `G4` ) and can be used for all non AWS Graviton-based instance types.
	// - **ECS_AL1** - [Amazon Linux](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami) . Amazon Linux has reached the end-of-life of standard support. For more information, see [Amazon Linux AMI](https://docs.aws.amazon.com/amazon-linux-ami/) .
	// - **EKS** - If the `imageIdOverride` parameter isn't specified, then a recent [Amazon EKS-optimized Amazon Linux AMI](https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html) ( `EKS_AL2` ) is used. If a new image type is specified in an update, but neither an `imageId` nor a `imageIdOverride` parameter is specified, then the latest Amazon EKS optimized AMI for that image type that AWS Batch supports is used.
	//
	// - **EKS_AL2** - [Amazon Linux 2](https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html) : Default for all non-GPU instance families.
	// - **EKS_AL2_NVIDIA** - [Amazon Linux 2 (accelerated)](https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html) : Default for all GPU instance families (for example, `P4` and `G4` ) and can be used for all non AWS Graviton-based instance types.
	ImageType *string `field:"required" json:"imageType" yaml:"imageType"`
	// The AMI ID used for instances launched in the compute environment that match the image type.
	//
	// This setting overrides the `imageId` set in the `computeResource` object.
	//
	// > The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see [Amazon ECS-optimized Amazon Linux 2 AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html) in the *Amazon Elastic Container Service Developer Guide* .
	ImageIdOverride *string `field:"optional" json:"imageIdOverride" yaml:"imageIdOverride"`
	// The Kubernetes version for the compute environment.
	//
	// If you don't specify a value, the latest version that AWS Batch supports is used.
	ImageKubernetesVersion *string `field:"optional" json:"imageKubernetesVersion" yaml:"imageKubernetesVersion"`
}

Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment.

If `Ec2Configuration` isn't specified, the default is `ECS_AL2` ( [Amazon Linux 2](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami) ).

> This object isn't applicable to jobs that are running on Fargate resources.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ec2ConfigurationObjectProperty := &Ec2ConfigurationObjectProperty{
	ImageType: jsii.String("imageType"),

	// the properties below are optional
	ImageIdOverride: jsii.String("imageIdOverride"),
	ImageKubernetesVersion: jsii.String("imageKubernetesVersion"),
}

type CfnComputeEnvironment_EksConfigurationProperty added in v2.51.0

type CfnComputeEnvironment_EksConfigurationProperty struct {
	// The Amazon Resource Name (ARN) of the Amazon EKS cluster.
	//
	// An example is `arn: *aws* :eks: *us-east-1* : *123456789012* :cluster/ *ClusterForBatch*` .
	EksClusterArn *string `field:"required" json:"eksClusterArn" yaml:"eksClusterArn"`
	// The namespace of the Amazon EKS cluster.
	//
	// AWS Batch manages pods in this namespace. The value can't left empty or null. It must be fewer than 64 characters long, can't be set to `default` , can't start with " `kube-` ," and must match this regular expression: `^[a-z0-9]([-a-z0-9]*[a-z0-9])?$` . For more information, see [Namespaces](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/) in the Kubernetes documentation.
	KubernetesNamespace *string `field:"required" json:"kubernetesNamespace" yaml:"kubernetesNamespace"`
}

Configuration for the Amazon EKS cluster that supports the AWS Batch compute environment.

The cluster must exist before the compute environment can be created.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eksConfigurationProperty := &EksConfigurationProperty{
	EksClusterArn: jsii.String("eksClusterArn"),
	KubernetesNamespace: jsii.String("kubernetesNamespace"),
}

type CfnComputeEnvironment_LaunchTemplateSpecificationProperty

type CfnComputeEnvironment_LaunchTemplateSpecificationProperty struct {
	// The ID of the launch template.
	LaunchTemplateId *string `field:"optional" json:"launchTemplateId" yaml:"launchTemplateId"`
	// The name of the launch template.
	LaunchTemplateName *string `field:"optional" json:"launchTemplateName" yaml:"launchTemplateName"`
	// The version number of the launch template, `$Latest` , or `$Default` .
	//
	// If the value is `$Latest` , the latest version of the launch template is used. If the value is `$Default` , the default version of the launch template is used.
	//
	// > If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the `updateToLatestImageVersion` parameter for the compute environment is set to `true` . During an infrastructure update, if either `$Latest` or `$Default` is specified, AWS Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
	//
	// Default: `$Default` .
	Version *string `field:"optional" json:"version" yaml:"version"`
}

An object that represents a launch template that's associated with a compute resource.

You must specify either the launch template ID or launch template name in the request, but not both.

If security groups are specified using both the `securityGroupIds` parameter of `CreateComputeEnvironment` and the launch template, the values in the `securityGroupIds` parameter of `CreateComputeEnvironment` will be used.

> This object isn't applicable to jobs that are running on Fargate resources.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

launchTemplateSpecificationProperty := &LaunchTemplateSpecificationProperty{
	LaunchTemplateId: jsii.String("launchTemplateId"),
	LaunchTemplateName: jsii.String("launchTemplateName"),
	Version: jsii.String("version"),
}

type CfnComputeEnvironment_UpdatePolicyProperty added in v2.23.0

type CfnComputeEnvironment_UpdatePolicyProperty struct {
	// Specifies the job timeout (in minutes) when the compute environment infrastructure is updated.
	//
	// The default value is 30.
	JobExecutionTimeoutMinutes *float64 `field:"optional" json:"jobExecutionTimeoutMinutes" yaml:"jobExecutionTimeoutMinutes"`
	// Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated.
	//
	// The default value is `false` .
	TerminateJobsOnUpdate interface{} `field:"optional" json:"terminateJobsOnUpdate" yaml:"terminateJobsOnUpdate"`
}

Specifies the infrastructure update policy for the compute environment.

For more information about infrastructure updates, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

updatePolicyProperty := &UpdatePolicyProperty{
	JobExecutionTimeoutMinutes: jsii.Number(123),
	TerminateJobsOnUpdate: jsii.Boolean(false),
}

type CfnJobDefinition

type CfnJobDefinition interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// An object with various properties specific to Amazon ECS based jobs.
	//
	// Valid values are `containerProperties` , `eksProperties` , and `nodeProperties` . Only one can be specified.
	ContainerProperties() interface{}
	SetContainerProperties(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// An object with various properties that are specific to Amazon EKS based jobs.
	//
	// Valid values are `containerProperties` , `eksProperties` , and `nodeProperties` . Only one can be specified.
	EksProperties() interface{}
	SetEksProperties(val interface{})
	// The name of the job definition.
	JobDefinitionName() *string
	SetJobDefinitionName(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The tree node.
	Node() constructs.Node
	// An object with various properties that are specific to multi-node parallel jobs.
	//
	// Valid values are `containerProperties` , `eksProperties` , and `nodeProperties` . Only one can be specified.
	//
	// > If the job runs on Fargate resources, don't specify `nodeProperties` . Use `containerProperties` instead.
	NodeProperties() interface{}
	SetNodeProperties(val interface{})
	// Default parameters or parameter substitution placeholders that are set in the job definition.
	//
	// Parameters are specified as a key-value pair mapping. Parameters in a `SubmitJob` request override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see [Job definition parameters](https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html) in the *AWS Batch User Guide* .
	Parameters() interface{}
	SetParameters(val interface{})
	// The platform capabilities required by the job definition.
	//
	// If no value is specified, it defaults to `EC2` . Jobs run on Fargate resources specify `FARGATE` .
	PlatformCapabilities() *[]*string
	SetPlatformCapabilities(val *[]*string)
	// Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
	//
	// If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the `FAILED` state.
	PropagateTags() interface{}
	SetPropagateTags(val interface{})
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The retry strategy to use for failed jobs that are submitted with this job definition.
	RetryStrategy() interface{}
	SetRetryStrategy(val interface{})
	// The scheduling priority of the job definition.
	//
	// This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.
	SchedulingPriority() *float64
	SetSchedulingPriority(val *float64)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// The tags that are applied to the job definition.
	Tags() awscdk.TagManager
	// The timeout time for jobs that are submitted with this job definition.
	//
	// After the amount of time you specify passes, AWS Batch terminates your jobs if they aren't finished.
	Timeout() interface{}
	SetTimeout(val interface{})
	// The type of job definition.
	//
	// For more information about multi-node parallel jobs, see [Creating a multi-node parallel job definition](https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) in the *AWS Batch User Guide* .
	//
	// > If the job is run on Fargate resources, then `multinode` isn't supported.
	Type() *string
	SetType(val *string)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Batch::JobDefinition`.

The `AWS::Batch::JobDefinition` resource specifies the parameters for an AWS Batch job definition. For more information, see [Job Definitions](https://docs.aws.amazon.com/batch/latest/userguide/job_definitions.html) in the ** .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var labels interface{}
var limits interface{}
var options interface{}
var parameters interface{}
var requests interface{}
var tags interface{}

cfnJobDefinition := awscdk.Aws_batch.NewCfnJobDefinition(this, jsii.String("MyCfnJobDefinition"), &CfnJobDefinitionProps{
	Type: jsii.String("type"),

	// the properties below are optional
	ContainerProperties: &ContainerPropertiesProperty{
		Image: jsii.String("image"),

		// the properties below are optional
		Command: []*string{
			jsii.String("command"),
		},
		Environment: []interface{}{
			&EnvironmentProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
		EphemeralStorage: &EphemeralStorageProperty{
			SizeInGiB: jsii.Number(123),
		},
		ExecutionRoleArn: jsii.String("executionRoleArn"),
		FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
			PlatformVersion: jsii.String("platformVersion"),
		},
		InstanceType: jsii.String("instanceType"),
		JobRoleArn: jsii.String("jobRoleArn"),
		LinuxParameters: &LinuxParametersProperty{
			Devices: []interface{}{
				&DeviceProperty{
					ContainerPath: jsii.String("containerPath"),
					HostPath: jsii.String("hostPath"),
					Permissions: []*string{
						jsii.String("permissions"),
					},
				},
			},
			InitProcessEnabled: jsii.Boolean(false),
			MaxSwap: jsii.Number(123),
			SharedMemorySize: jsii.Number(123),
			Swappiness: jsii.Number(123),
			Tmpfs: []interface{}{
				&TmpfsProperty{
					ContainerPath: jsii.String("containerPath"),
					Size: jsii.Number(123),

					// the properties below are optional
					MountOptions: []*string{
						jsii.String("mountOptions"),
					},
				},
			},
		},
		LogConfiguration: &LogConfigurationProperty{
			LogDriver: jsii.String("logDriver"),

			// the properties below are optional
			Options: options,
			SecretOptions: []interface{}{
				&SecretProperty{
					Name: jsii.String("name"),
					ValueFrom: jsii.String("valueFrom"),
				},
			},
		},
		Memory: jsii.Number(123),
		MountPoints: []interface{}{
			&MountPointsProperty{
				ContainerPath: jsii.String("containerPath"),
				ReadOnly: jsii.Boolean(false),
				SourceVolume: jsii.String("sourceVolume"),
			},
		},
		NetworkConfiguration: &NetworkConfigurationProperty{
			AssignPublicIp: jsii.String("assignPublicIp"),
		},
		Privileged: jsii.Boolean(false),
		ReadonlyRootFilesystem: jsii.Boolean(false),
		ResourceRequirements: []interface{}{
			&ResourceRequirementProperty{
				Type: jsii.String("type"),
				Value: jsii.String("value"),
			},
		},
		Secrets: []interface{}{
			&SecretProperty{
				Name: jsii.String("name"),
				ValueFrom: jsii.String("valueFrom"),
			},
		},
		Ulimits: []interface{}{
			&UlimitProperty{
				HardLimit: jsii.Number(123),
				Name: jsii.String("name"),
				SoftLimit: jsii.Number(123),
			},
		},
		User: jsii.String("user"),
		Vcpus: jsii.Number(123),
		Volumes: []interface{}{
			&VolumesProperty{
				EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
					FileSystemId: jsii.String("fileSystemId"),

					// the properties below are optional
					AuthorizationConfig: &AuthorizationConfigProperty{
						AccessPointId: jsii.String("accessPointId"),
						Iam: jsii.String("iam"),
					},
					RootDirectory: jsii.String("rootDirectory"),
					TransitEncryption: jsii.String("transitEncryption"),
					TransitEncryptionPort: jsii.Number(123),
				},
				Host: &VolumesHostProperty{
					SourcePath: jsii.String("sourcePath"),
				},
				Name: jsii.String("name"),
			},
		},
	},
	EksProperties: &EksPropertiesProperty{
		PodProperties: &PodPropertiesProperty{
			Containers: []interface{}{
				&EksContainerProperty{
					Image: jsii.String("image"),

					// the properties below are optional
					Args: []*string{
						jsii.String("args"),
					},
					Command: []*string{
						jsii.String("command"),
					},
					Env: []interface{}{
						&EksContainerEnvironmentVariableProperty{
							Name: jsii.String("name"),

							// the properties below are optional
							Value: jsii.String("value"),
						},
					},
					ImagePullPolicy: jsii.String("imagePullPolicy"),
					Name: jsii.String("name"),
					Resources: &ResourcesProperty{
						Limits: limits,
						Requests: requests,
					},
					SecurityContext: &SecurityContextProperty{
						Privileged: jsii.Boolean(false),
						ReadOnlyRootFilesystem: jsii.Boolean(false),
						RunAsGroup: jsii.Number(123),
						RunAsNonRoot: jsii.Boolean(false),
						RunAsUser: jsii.Number(123),
					},
					VolumeMounts: []interface{}{
						&EksContainerVolumeMountProperty{
							MountPath: jsii.String("mountPath"),
							Name: jsii.String("name"),
							ReadOnly: jsii.Boolean(false),
						},
					},
				},
			},
			DnsPolicy: jsii.String("dnsPolicy"),
			HostNetwork: jsii.Boolean(false),
			Metadata: &MetadataProperty{
				Labels: labels,
			},
			ServiceAccountName: jsii.String("serviceAccountName"),
			Volumes: []interface{}{
				&EksVolumeProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					EmptyDir: &EmptyDirProperty{
						Medium: jsii.String("medium"),
						SizeLimit: jsii.String("sizeLimit"),
					},
					HostPath: &HostPathProperty{
						Path: jsii.String("path"),
					},
					Secret: &EksSecretProperty{
						SecretName: jsii.String("secretName"),

						// the properties below are optional
						Optional: jsii.Boolean(false),
					},
				},
			},
		},
	},
	JobDefinitionName: jsii.String("jobDefinitionName"),
	NodeProperties: &NodePropertiesProperty{
		MainNode: jsii.Number(123),
		NodeRangeProperties: []interface{}{
			&NodeRangePropertyProperty{
				TargetNodes: jsii.String("targetNodes"),

				// the properties below are optional
				Container: &ContainerPropertiesProperty{
					Image: jsii.String("image"),

					// the properties below are optional
					Command: []*string{
						jsii.String("command"),
					},
					Environment: []interface{}{
						&EnvironmentProperty{
							Name: jsii.String("name"),
							Value: jsii.String("value"),
						},
					},
					EphemeralStorage: &EphemeralStorageProperty{
						SizeInGiB: jsii.Number(123),
					},
					ExecutionRoleArn: jsii.String("executionRoleArn"),
					FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
						PlatformVersion: jsii.String("platformVersion"),
					},
					InstanceType: jsii.String("instanceType"),
					JobRoleArn: jsii.String("jobRoleArn"),
					LinuxParameters: &LinuxParametersProperty{
						Devices: []interface{}{
							&DeviceProperty{
								ContainerPath: jsii.String("containerPath"),
								HostPath: jsii.String("hostPath"),
								Permissions: []*string{
									jsii.String("permissions"),
								},
							},
						},
						InitProcessEnabled: jsii.Boolean(false),
						MaxSwap: jsii.Number(123),
						SharedMemorySize: jsii.Number(123),
						Swappiness: jsii.Number(123),
						Tmpfs: []interface{}{
							&TmpfsProperty{
								ContainerPath: jsii.String("containerPath"),
								Size: jsii.Number(123),

								// the properties below are optional
								MountOptions: []*string{
									jsii.String("mountOptions"),
								},
							},
						},
					},
					LogConfiguration: &LogConfigurationProperty{
						LogDriver: jsii.String("logDriver"),

						// the properties below are optional
						Options: options,
						SecretOptions: []interface{}{
							&SecretProperty{
								Name: jsii.String("name"),
								ValueFrom: jsii.String("valueFrom"),
							},
						},
					},
					Memory: jsii.Number(123),
					MountPoints: []interface{}{
						&MountPointsProperty{
							ContainerPath: jsii.String("containerPath"),
							ReadOnly: jsii.Boolean(false),
							SourceVolume: jsii.String("sourceVolume"),
						},
					},
					NetworkConfiguration: &NetworkConfigurationProperty{
						AssignPublicIp: jsii.String("assignPublicIp"),
					},
					Privileged: jsii.Boolean(false),
					ReadonlyRootFilesystem: jsii.Boolean(false),
					ResourceRequirements: []interface{}{
						&ResourceRequirementProperty{
							Type: jsii.String("type"),
							Value: jsii.String("value"),
						},
					},
					Secrets: []interface{}{
						&SecretProperty{
							Name: jsii.String("name"),
							ValueFrom: jsii.String("valueFrom"),
						},
					},
					Ulimits: []interface{}{
						&UlimitProperty{
							HardLimit: jsii.Number(123),
							Name: jsii.String("name"),
							SoftLimit: jsii.Number(123),
						},
					},
					User: jsii.String("user"),
					Vcpus: jsii.Number(123),
					Volumes: []interface{}{
						&VolumesProperty{
							EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
								FileSystemId: jsii.String("fileSystemId"),

								// the properties below are optional
								AuthorizationConfig: &AuthorizationConfigProperty{
									AccessPointId: jsii.String("accessPointId"),
									Iam: jsii.String("iam"),
								},
								RootDirectory: jsii.String("rootDirectory"),
								TransitEncryption: jsii.String("transitEncryption"),
								TransitEncryptionPort: jsii.Number(123),
							},
							Host: &VolumesHostProperty{
								SourcePath: jsii.String("sourcePath"),
							},
							Name: jsii.String("name"),
						},
					},
				},
			},
		},
		NumNodes: jsii.Number(123),
	},
	Parameters: parameters,
	PlatformCapabilities: []*string{
		jsii.String("platformCapabilities"),
	},
	PropagateTags: jsii.Boolean(false),
	RetryStrategy: &RetryStrategyProperty{
		Attempts: jsii.Number(123),
		EvaluateOnExit: []interface{}{
			&EvaluateOnExitProperty{
				Action: jsii.String("action"),

				// the properties below are optional
				OnExitCode: jsii.String("onExitCode"),
				OnReason: jsii.String("onReason"),
				OnStatusReason: jsii.String("onStatusReason"),
			},
		},
	},
	SchedulingPriority: jsii.Number(123),
	Tags: tags,
	Timeout: &TimeoutProperty{
		AttemptDurationSeconds: jsii.Number(123),
	},
})

func NewCfnJobDefinition

func NewCfnJobDefinition(scope constructs.Construct, id *string, props *CfnJobDefinitionProps) CfnJobDefinition

Create a new `AWS::Batch::JobDefinition`.

type CfnJobDefinitionProps

type CfnJobDefinitionProps struct {
	// The type of job definition.
	//
	// For more information about multi-node parallel jobs, see [Creating a multi-node parallel job definition](https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) in the *AWS Batch User Guide* .
	//
	// > If the job is run on Fargate resources, then `multinode` isn't supported.
	Type *string `field:"required" json:"type" yaml:"type"`
	// An object with various properties specific to Amazon ECS based jobs.
	//
	// Valid values are `containerProperties` , `eksProperties` , and `nodeProperties` . Only one can be specified.
	ContainerProperties interface{} `field:"optional" json:"containerProperties" yaml:"containerProperties"`
	// An object with various properties that are specific to Amazon EKS based jobs.
	//
	// Valid values are `containerProperties` , `eksProperties` , and `nodeProperties` . Only one can be specified.
	EksProperties interface{} `field:"optional" json:"eksProperties" yaml:"eksProperties"`
	// The name of the job definition.
	JobDefinitionName *string `field:"optional" json:"jobDefinitionName" yaml:"jobDefinitionName"`
	// An object with various properties that are specific to multi-node parallel jobs.
	//
	// Valid values are `containerProperties` , `eksProperties` , and `nodeProperties` . Only one can be specified.
	//
	// > If the job runs on Fargate resources, don't specify `nodeProperties` . Use `containerProperties` instead.
	NodeProperties interface{} `field:"optional" json:"nodeProperties" yaml:"nodeProperties"`
	// Default parameters or parameter substitution placeholders that are set in the job definition.
	//
	// Parameters are specified as a key-value pair mapping. Parameters in a `SubmitJob` request override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see [Job definition parameters](https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html) in the *AWS Batch User Guide* .
	Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"`
	// The platform capabilities required by the job definition.
	//
	// If no value is specified, it defaults to `EC2` . Jobs run on Fargate resources specify `FARGATE` .
	PlatformCapabilities *[]*string `field:"optional" json:"platformCapabilities" yaml:"platformCapabilities"`
	// Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
	//
	// If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the `FAILED` state.
	PropagateTags interface{} `field:"optional" json:"propagateTags" yaml:"propagateTags"`
	// The retry strategy to use for failed jobs that are submitted with this job definition.
	RetryStrategy interface{} `field:"optional" json:"retryStrategy" yaml:"retryStrategy"`
	// The scheduling priority of the job definition.
	//
	// This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.
	SchedulingPriority *float64 `field:"optional" json:"schedulingPriority" yaml:"schedulingPriority"`
	// The tags that are applied to the job definition.
	Tags interface{} `field:"optional" json:"tags" yaml:"tags"`
	// The timeout time for jobs that are submitted with this job definition.
	//
	// After the amount of time you specify passes, AWS Batch terminates your jobs if they aren't finished.
	Timeout interface{} `field:"optional" json:"timeout" yaml:"timeout"`
}

Properties for defining a `CfnJobDefinition`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var labels interface{}
var limits interface{}
var options interface{}
var parameters interface{}
var requests interface{}
var tags interface{}

cfnJobDefinitionProps := &CfnJobDefinitionProps{
	Type: jsii.String("type"),

	// the properties below are optional
	ContainerProperties: &ContainerPropertiesProperty{
		Image: jsii.String("image"),

		// the properties below are optional
		Command: []*string{
			jsii.String("command"),
		},
		Environment: []interface{}{
			&EnvironmentProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
		EphemeralStorage: &EphemeralStorageProperty{
			SizeInGiB: jsii.Number(123),
		},
		ExecutionRoleArn: jsii.String("executionRoleArn"),
		FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
			PlatformVersion: jsii.String("platformVersion"),
		},
		InstanceType: jsii.String("instanceType"),
		JobRoleArn: jsii.String("jobRoleArn"),
		LinuxParameters: &LinuxParametersProperty{
			Devices: []interface{}{
				&DeviceProperty{
					ContainerPath: jsii.String("containerPath"),
					HostPath: jsii.String("hostPath"),
					Permissions: []*string{
						jsii.String("permissions"),
					},
				},
			},
			InitProcessEnabled: jsii.Boolean(false),
			MaxSwap: jsii.Number(123),
			SharedMemorySize: jsii.Number(123),
			Swappiness: jsii.Number(123),
			Tmpfs: []interface{}{
				&TmpfsProperty{
					ContainerPath: jsii.String("containerPath"),
					Size: jsii.Number(123),

					// the properties below are optional
					MountOptions: []*string{
						jsii.String("mountOptions"),
					},
				},
			},
		},
		LogConfiguration: &LogConfigurationProperty{
			LogDriver: jsii.String("logDriver"),

			// the properties below are optional
			Options: options,
			SecretOptions: []interface{}{
				&SecretProperty{
					Name: jsii.String("name"),
					ValueFrom: jsii.String("valueFrom"),
				},
			},
		},
		Memory: jsii.Number(123),
		MountPoints: []interface{}{
			&MountPointsProperty{
				ContainerPath: jsii.String("containerPath"),
				ReadOnly: jsii.Boolean(false),
				SourceVolume: jsii.String("sourceVolume"),
			},
		},
		NetworkConfiguration: &NetworkConfigurationProperty{
			AssignPublicIp: jsii.String("assignPublicIp"),
		},
		Privileged: jsii.Boolean(false),
		ReadonlyRootFilesystem: jsii.Boolean(false),
		ResourceRequirements: []interface{}{
			&ResourceRequirementProperty{
				Type: jsii.String("type"),
				Value: jsii.String("value"),
			},
		},
		Secrets: []interface{}{
			&SecretProperty{
				Name: jsii.String("name"),
				ValueFrom: jsii.String("valueFrom"),
			},
		},
		Ulimits: []interface{}{
			&UlimitProperty{
				HardLimit: jsii.Number(123),
				Name: jsii.String("name"),
				SoftLimit: jsii.Number(123),
			},
		},
		User: jsii.String("user"),
		Vcpus: jsii.Number(123),
		Volumes: []interface{}{
			&VolumesProperty{
				EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
					FileSystemId: jsii.String("fileSystemId"),

					// the properties below are optional
					AuthorizationConfig: &AuthorizationConfigProperty{
						AccessPointId: jsii.String("accessPointId"),
						Iam: jsii.String("iam"),
					},
					RootDirectory: jsii.String("rootDirectory"),
					TransitEncryption: jsii.String("transitEncryption"),
					TransitEncryptionPort: jsii.Number(123),
				},
				Host: &VolumesHostProperty{
					SourcePath: jsii.String("sourcePath"),
				},
				Name: jsii.String("name"),
			},
		},
	},
	EksProperties: &EksPropertiesProperty{
		PodProperties: &PodPropertiesProperty{
			Containers: []interface{}{
				&EksContainerProperty{
					Image: jsii.String("image"),

					// the properties below are optional
					Args: []*string{
						jsii.String("args"),
					},
					Command: []*string{
						jsii.String("command"),
					},
					Env: []interface{}{
						&EksContainerEnvironmentVariableProperty{
							Name: jsii.String("name"),

							// the properties below are optional
							Value: jsii.String("value"),
						},
					},
					ImagePullPolicy: jsii.String("imagePullPolicy"),
					Name: jsii.String("name"),
					Resources: &ResourcesProperty{
						Limits: limits,
						Requests: requests,
					},
					SecurityContext: &SecurityContextProperty{
						Privileged: jsii.Boolean(false),
						ReadOnlyRootFilesystem: jsii.Boolean(false),
						RunAsGroup: jsii.Number(123),
						RunAsNonRoot: jsii.Boolean(false),
						RunAsUser: jsii.Number(123),
					},
					VolumeMounts: []interface{}{
						&EksContainerVolumeMountProperty{
							MountPath: jsii.String("mountPath"),
							Name: jsii.String("name"),
							ReadOnly: jsii.Boolean(false),
						},
					},
				},
			},
			DnsPolicy: jsii.String("dnsPolicy"),
			HostNetwork: jsii.Boolean(false),
			Metadata: &MetadataProperty{
				Labels: labels,
			},
			ServiceAccountName: jsii.String("serviceAccountName"),
			Volumes: []interface{}{
				&EksVolumeProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					EmptyDir: &EmptyDirProperty{
						Medium: jsii.String("medium"),
						SizeLimit: jsii.String("sizeLimit"),
					},
					HostPath: &HostPathProperty{
						Path: jsii.String("path"),
					},
					Secret: &EksSecretProperty{
						SecretName: jsii.String("secretName"),

						// the properties below are optional
						Optional: jsii.Boolean(false),
					},
				},
			},
		},
	},
	JobDefinitionName: jsii.String("jobDefinitionName"),
	NodeProperties: &NodePropertiesProperty{
		MainNode: jsii.Number(123),
		NodeRangeProperties: []interface{}{
			&NodeRangePropertyProperty{
				TargetNodes: jsii.String("targetNodes"),

				// the properties below are optional
				Container: &ContainerPropertiesProperty{
					Image: jsii.String("image"),

					// the properties below are optional
					Command: []*string{
						jsii.String("command"),
					},
					Environment: []interface{}{
						&EnvironmentProperty{
							Name: jsii.String("name"),
							Value: jsii.String("value"),
						},
					},
					EphemeralStorage: &EphemeralStorageProperty{
						SizeInGiB: jsii.Number(123),
					},
					ExecutionRoleArn: jsii.String("executionRoleArn"),
					FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
						PlatformVersion: jsii.String("platformVersion"),
					},
					InstanceType: jsii.String("instanceType"),
					JobRoleArn: jsii.String("jobRoleArn"),
					LinuxParameters: &LinuxParametersProperty{
						Devices: []interface{}{
							&DeviceProperty{
								ContainerPath: jsii.String("containerPath"),
								HostPath: jsii.String("hostPath"),
								Permissions: []*string{
									jsii.String("permissions"),
								},
							},
						},
						InitProcessEnabled: jsii.Boolean(false),
						MaxSwap: jsii.Number(123),
						SharedMemorySize: jsii.Number(123),
						Swappiness: jsii.Number(123),
						Tmpfs: []interface{}{
							&TmpfsProperty{
								ContainerPath: jsii.String("containerPath"),
								Size: jsii.Number(123),

								// the properties below are optional
								MountOptions: []*string{
									jsii.String("mountOptions"),
								},
							},
						},
					},
					LogConfiguration: &LogConfigurationProperty{
						LogDriver: jsii.String("logDriver"),

						// the properties below are optional
						Options: options,
						SecretOptions: []interface{}{
							&SecretProperty{
								Name: jsii.String("name"),
								ValueFrom: jsii.String("valueFrom"),
							},
						},
					},
					Memory: jsii.Number(123),
					MountPoints: []interface{}{
						&MountPointsProperty{
							ContainerPath: jsii.String("containerPath"),
							ReadOnly: jsii.Boolean(false),
							SourceVolume: jsii.String("sourceVolume"),
						},
					},
					NetworkConfiguration: &NetworkConfigurationProperty{
						AssignPublicIp: jsii.String("assignPublicIp"),
					},
					Privileged: jsii.Boolean(false),
					ReadonlyRootFilesystem: jsii.Boolean(false),
					ResourceRequirements: []interface{}{
						&ResourceRequirementProperty{
							Type: jsii.String("type"),
							Value: jsii.String("value"),
						},
					},
					Secrets: []interface{}{
						&SecretProperty{
							Name: jsii.String("name"),
							ValueFrom: jsii.String("valueFrom"),
						},
					},
					Ulimits: []interface{}{
						&UlimitProperty{
							HardLimit: jsii.Number(123),
							Name: jsii.String("name"),
							SoftLimit: jsii.Number(123),
						},
					},
					User: jsii.String("user"),
					Vcpus: jsii.Number(123),
					Volumes: []interface{}{
						&VolumesProperty{
							EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
								FileSystemId: jsii.String("fileSystemId"),

								// the properties below are optional
								AuthorizationConfig: &AuthorizationConfigProperty{
									AccessPointId: jsii.String("accessPointId"),
									Iam: jsii.String("iam"),
								},
								RootDirectory: jsii.String("rootDirectory"),
								TransitEncryption: jsii.String("transitEncryption"),
								TransitEncryptionPort: jsii.Number(123),
							},
							Host: &VolumesHostProperty{
								SourcePath: jsii.String("sourcePath"),
							},
							Name: jsii.String("name"),
						},
					},
				},
			},
		},
		NumNodes: jsii.Number(123),
	},
	Parameters: parameters,
	PlatformCapabilities: []*string{
		jsii.String("platformCapabilities"),
	},
	PropagateTags: jsii.Boolean(false),
	RetryStrategy: &RetryStrategyProperty{
		Attempts: jsii.Number(123),
		EvaluateOnExit: []interface{}{
			&EvaluateOnExitProperty{
				Action: jsii.String("action"),

				// the properties below are optional
				OnExitCode: jsii.String("onExitCode"),
				OnReason: jsii.String("onReason"),
				OnStatusReason: jsii.String("onStatusReason"),
			},
		},
	},
	SchedulingPriority: jsii.Number(123),
	Tags: tags,
	Timeout: &TimeoutProperty{
		AttemptDurationSeconds: jsii.Number(123),
	},
}

type CfnJobDefinition_AuthorizationConfigProperty

type CfnJobDefinition_AuthorizationConfigProperty struct {
	// The Amazon EFS access point ID to use.
	//
	// If an access point is specified, the root directory value specified in the `EFSVolumeConfiguration` must either be omitted or set to `/` which enforces the path set on the EFS access point. If an access point is used, transit encryption must be enabled in the `EFSVolumeConfiguration` . For more information, see [Working with Amazon EFS access points](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) in the *Amazon Elastic File System User Guide* .
	AccessPointId *string `field:"optional" json:"accessPointId" yaml:"accessPointId"`
	// Whether or not to use the AWS Batch job IAM role defined in a job definition when mounting the Amazon EFS file system.
	//
	// If enabled, transit encryption must be enabled in the `EFSVolumeConfiguration` . If this parameter is omitted, the default value of `DISABLED` is used. For more information, see [Using Amazon EFS access points](https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html#efs-volume-accesspoints) in the *AWS Batch User Guide* . EFS IAM authorization requires that `TransitEncryption` be `ENABLED` and that a `JobRoleArn` is specified.
	Iam *string `field:"optional" json:"iam" yaml:"iam"`
}

The authorization configuration details for the Amazon EFS file system.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

authorizationConfigProperty := &AuthorizationConfigProperty{
	AccessPointId: jsii.String("accessPointId"),
	Iam: jsii.String("iam"),
}

type CfnJobDefinition_ContainerPropertiesProperty

type CfnJobDefinition_ContainerPropertiesProperty struct {
	// The image used to start a container.
	//
	// This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with `*repository-url* / *image* : *tag*` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to `Image` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `IMAGE` parameter of [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// > Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources.
	//
	// - Images in Amazon ECR Public repositories use the full `registry/repository[:tag]` or `registry/repository[@digest]` naming conventions. For example, `public.ecr.aws/ *registry_alias* / *my-web-app* : *latest*` .
	// - Images in Amazon ECR repositories use the full registry and repository URI (for example, `123456789012.dkr.ecr.<region-name>.amazonaws.com/<repository-name>` ).
	// - Images in official repositories on Docker Hub use a single name (for example, `ubuntu` or `mongo` ).
	// - Images in other repositories on Docker Hub are qualified with an organization name (for example, `amazon/amazon-ecs-agent` ).
	// - Images in other online repositories are qualified further by a domain name (for example, `quay.io/assemblyline/ubuntu` ).
	Image *string `field:"required" json:"image" yaml:"image"`
	// The command that's passed to the container.
	//
	// This parameter maps to `Cmd` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `COMMAND` parameter to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . For more information, see [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) .
	Command *[]*string `field:"optional" json:"command" yaml:"command"`
	// The environment variables to pass to a container.
	//
	// This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
	Environment interface{} `field:"optional" json:"environment" yaml:"environment"`
	// `CfnJobDefinition.ContainerPropertiesProperty.EphemeralStorage`.
	EphemeralStorage interface{} `field:"optional" json:"ephemeralStorage" yaml:"ephemeralStorage"`
	// The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume.
	//
	// For jobs that run on Fargate resources, you must provide an execution role. For more information, see [AWS Batch execution IAM role](https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in the *AWS Batch User Guide* .
	ExecutionRoleArn *string `field:"optional" json:"executionRoleArn" yaml:"executionRoleArn"`
	// The platform configuration for jobs that are running on Fargate resources.
	//
	// Jobs that are running on EC2 resources must not specify this parameter.
	FargatePlatformConfiguration interface{} `field:"optional" json:"fargatePlatformConfiguration" yaml:"fargatePlatformConfiguration"`
	// The instance type to use for a multi-node parallel job.
	//
	// All node groups in a multi-node parallel job must use the same instance type.
	//
	// > This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
	InstanceType *string `field:"optional" json:"instanceType" yaml:"instanceType"`
	// The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions.
	//
	// For more information, see [IAM roles for tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) in the *Amazon Elastic Container Service Developer Guide* .
	JobRoleArn *string `field:"optional" json:"jobRoleArn" yaml:"jobRoleArn"`
	// Linux-specific modifications that are applied to the container, such as details for device mappings.
	LinuxParameters interface{} `field:"optional" json:"linuxParameters" yaml:"linuxParameters"`
	// The log configuration specification for the container.
	//
	// This parameter maps to `LogConfig` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--log-driver` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, containers use the same logging driver that the Docker daemon uses. However the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see [Configure logging drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in the Docker documentation.
	//
	// > AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the `LogConfiguration` data type).
	//
	// This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
	//
	// > The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before containers placed on that instance can use these log configuration options. For more information, see [Amazon ECS container agent configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the *Amazon Elastic Container Service Developer Guide* .
	LogConfiguration interface{} `field:"optional" json:"logConfiguration" yaml:"logConfiguration"`
	// This parameter is deprecated, use `resourceRequirements` to specify the memory requirements for the job definition.
	//
	// It's not supported for jobs running on Fargate resources. For jobs that run on EC2 resources, it specifies the memory hard limit (in MiB) for a container. If your container attempts to exceed the specified number, it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in several places. It must be specified for each node at least once.
	Memory *float64 `field:"optional" json:"memory" yaml:"memory"`
	// The mount points for data volumes in your container.
	//
	// This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	MountPoints interface{} `field:"optional" json:"mountPoints" yaml:"mountPoints"`
	// The network configuration for jobs that are running on Fargate resources.
	//
	// Jobs that are running on EC2 resources must not specify this parameter.
	NetworkConfiguration interface{} `field:"optional" json:"networkConfiguration" yaml:"networkConfiguration"`
	// When this parameter is true, the container is given elevated permissions on the host container instance (similar to the `root` user).
	//
	// This parameter maps to `Privileged` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--privileged` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The default value is false.
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false.
	Privileged interface{} `field:"optional" json:"privileged" yaml:"privileged"`
	// When this parameter is true, the container is given read-only access to its root file system.
	//
	// This parameter maps to `ReadonlyRootfs` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--read-only` option to `docker run` .
	ReadonlyRootFilesystem interface{} `field:"optional" json:"readonlyRootFilesystem" yaml:"readonlyRootFilesystem"`
	// The type and amount of resources to assign to a container.
	//
	// The supported resources include `GPU` , `MEMORY` , and `VCPU` .
	ResourceRequirements interface{} `field:"optional" json:"resourceRequirements" yaml:"resourceRequirements"`
	// The secrets for the container.
	//
	// For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
	Secrets interface{} `field:"optional" json:"secrets" yaml:"secrets"`
	// A list of `ulimits` to set in the container.
	//
	// This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
	Ulimits interface{} `field:"optional" json:"ulimits" yaml:"ulimits"`
	// The user name to use inside the container.
	//
	// This parameter maps to `User` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--user` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	User *string `field:"optional" json:"user" yaml:"user"`
	// This parameter is deprecated, use `resourceRequirements` to specify the vCPU requirements for the job definition.
	//
	// It's not supported for jobs running on Fargate resources. For jobs running on EC2 resources, it specifies the number of vCPUs reserved for the job.
	//
	// Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to `CpuShares` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--cpu-shares` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.
	Vcpus *float64 `field:"optional" json:"vcpus" yaml:"vcpus"`
	// A list of data volumes used in a job.
	Volumes interface{} `field:"optional" json:"volumes" yaml:"volumes"`
}

Container properties are used for Amazon ECS based job definitions.

These properties to describe the container that's launched as part of a job.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var options interface{}

containerPropertiesProperty := &ContainerPropertiesProperty{
	Image: jsii.String("image"),

	// the properties below are optional
	Command: []*string{
		jsii.String("command"),
	},
	Environment: []interface{}{
		&EnvironmentProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
	EphemeralStorage: &EphemeralStorageProperty{
		SizeInGiB: jsii.Number(123),
	},
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
		PlatformVersion: jsii.String("platformVersion"),
	},
	InstanceType: jsii.String("instanceType"),
	JobRoleArn: jsii.String("jobRoleArn"),
	LinuxParameters: &LinuxParametersProperty{
		Devices: []interface{}{
			&DeviceProperty{
				ContainerPath: jsii.String("containerPath"),
				HostPath: jsii.String("hostPath"),
				Permissions: []*string{
					jsii.String("permissions"),
				},
			},
		},
		InitProcessEnabled: jsii.Boolean(false),
		MaxSwap: jsii.Number(123),
		SharedMemorySize: jsii.Number(123),
		Swappiness: jsii.Number(123),
		Tmpfs: []interface{}{
			&TmpfsProperty{
				ContainerPath: jsii.String("containerPath"),
				Size: jsii.Number(123),

				// the properties below are optional
				MountOptions: []*string{
					jsii.String("mountOptions"),
				},
			},
		},
	},
	LogConfiguration: &LogConfigurationProperty{
		LogDriver: jsii.String("logDriver"),

		// the properties below are optional
		Options: options,
		SecretOptions: []interface{}{
			&SecretProperty{
				Name: jsii.String("name"),
				ValueFrom: jsii.String("valueFrom"),
			},
		},
	},
	Memory: jsii.Number(123),
	MountPoints: []interface{}{
		&MountPointsProperty{
			ContainerPath: jsii.String("containerPath"),
			ReadOnly: jsii.Boolean(false),
			SourceVolume: jsii.String("sourceVolume"),
		},
	},
	NetworkConfiguration: &NetworkConfigurationProperty{
		AssignPublicIp: jsii.String("assignPublicIp"),
	},
	Privileged: jsii.Boolean(false),
	ReadonlyRootFilesystem: jsii.Boolean(false),
	ResourceRequirements: []interface{}{
		&ResourceRequirementProperty{
			Type: jsii.String("type"),
			Value: jsii.String("value"),
		},
	},
	Secrets: []interface{}{
		&SecretProperty{
			Name: jsii.String("name"),
			ValueFrom: jsii.String("valueFrom"),
		},
	},
	Ulimits: []interface{}{
		&UlimitProperty{
			HardLimit: jsii.Number(123),
			Name: jsii.String("name"),
			SoftLimit: jsii.Number(123),
		},
	},
	User: jsii.String("user"),
	Vcpus: jsii.Number(123),
	Volumes: []interface{}{
		&VolumesProperty{
			EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
				FileSystemId: jsii.String("fileSystemId"),

				// the properties below are optional
				AuthorizationConfig: &AuthorizationConfigProperty{
					AccessPointId: jsii.String("accessPointId"),
					Iam: jsii.String("iam"),
				},
				RootDirectory: jsii.String("rootDirectory"),
				TransitEncryption: jsii.String("transitEncryption"),
				TransitEncryptionPort: jsii.Number(123),
			},
			Host: &VolumesHostProperty{
				SourcePath: jsii.String("sourcePath"),
			},
			Name: jsii.String("name"),
		},
	},
}

type CfnJobDefinition_DeviceProperty

type CfnJobDefinition_DeviceProperty struct {
	// The path inside the container that's used to expose the host device.
	//
	// By default, the `hostPath` value is used.
	ContainerPath *string `field:"optional" json:"containerPath" yaml:"containerPath"`
	// The path for the device on the host container instance.
	HostPath *string `field:"optional" json:"hostPath" yaml:"hostPath"`
	// The explicit permissions to provide to the container for the device.
	//
	// By default, the container has permissions for `read` , `write` , and `mknod` for the device.
	Permissions *[]*string `field:"optional" json:"permissions" yaml:"permissions"`
}

An object that represents a container instance host device.

> This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

deviceProperty := &DeviceProperty{
	ContainerPath: jsii.String("containerPath"),
	HostPath: jsii.String("hostPath"),
	Permissions: []*string{
		jsii.String("permissions"),
	},
}

type CfnJobDefinition_EfsVolumeConfigurationProperty

type CfnJobDefinition_EfsVolumeConfigurationProperty struct {
	// The Amazon EFS file system ID to use.
	FileSystemId *string `field:"required" json:"fileSystemId" yaml:"fileSystemId"`
	// The authorization configuration details for the Amazon EFS file system.
	AuthorizationConfig interface{} `field:"optional" json:"authorizationConfig" yaml:"authorizationConfig"`
	// The directory within the Amazon EFS file system to mount as the root directory inside the host.
	//
	// If this parameter is omitted, the root of the Amazon EFS volume is used instead. Specifying `/` has the same effect as omitting this parameter. The maximum length is 4,096 characters.
	//
	// > If an EFS access point is specified in the `authorizationConfig` , the root directory parameter must either be omitted or set to `/` , which enforces the path set on the Amazon EFS access point.
	RootDirectory *string `field:"optional" json:"rootDirectory" yaml:"rootDirectory"`
	// Determines whether to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server.
	//
	// Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value of `DISABLED` is used. For more information, see [Encrypting data in transit](https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) in the *Amazon Elastic File System User Guide* .
	TransitEncryption *string `field:"optional" json:"transitEncryption" yaml:"transitEncryption"`
	// The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server.
	//
	// If you don't specify a transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be between 0 and 65,535. For more information, see [EFS mount helper](https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) in the *Amazon Elastic File System User Guide* .
	TransitEncryptionPort *float64 `field:"optional" json:"transitEncryptionPort" yaml:"transitEncryptionPort"`
}

This is used when you're using an Amazon Elastic File System file system for job storage.

For more information, see [Amazon EFS Volumes](https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the *AWS Batch User Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

efsVolumeConfigurationProperty := &EfsVolumeConfigurationProperty{
	FileSystemId: jsii.String("fileSystemId"),

	// the properties below are optional
	AuthorizationConfig: &AuthorizationConfigProperty{
		AccessPointId: jsii.String("accessPointId"),
		Iam: jsii.String("iam"),
	},
	RootDirectory: jsii.String("rootDirectory"),
	TransitEncryption: jsii.String("transitEncryption"),
	TransitEncryptionPort: jsii.Number(123),
}

type CfnJobDefinition_EksContainerEnvironmentVariableProperty added in v2.51.0

type CfnJobDefinition_EksContainerEnvironmentVariableProperty struct {
	// The name of the environment variable.
	Name *string `field:"required" json:"name" yaml:"name"`
	// The value of the environment variable.
	Value *string `field:"optional" json:"value" yaml:"value"`
}

An environment variable.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eksContainerEnvironmentVariableProperty := &EksContainerEnvironmentVariableProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	Value: jsii.String("value"),
}

type CfnJobDefinition_EksContainerProperty added in v2.51.0

type CfnJobDefinition_EksContainerProperty struct {
	// The Docker image used to start the container.
	Image *string `field:"required" json:"image" yaml:"image"`
	// An array of arguments to the entrypoint.
	//
	// If this isn't specified, the `CMD` of the container image is used. This corresponds to the `args` member in the [Entrypoint](https://docs.aws.amazon.com/https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#entrypoint) portion of the [Pod](https://docs.aws.amazon.com/https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/) in Kubernetes. Environment variable references are expanded using the container's environment.
	//
	// If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to " `$(NAME1)` " and the `NAME1` environment variable doesn't exist, the command string will remain " `$(NAME1)` ." `$$` is replaced with `$` , and the resulting string isn't expanded. For example, `$$(VAR_NAME)` is passed as `$(VAR_NAME)` whether or not the `VAR_NAME` environment variable exists. For more information, see [CMD](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) in the *Dockerfile reference* and [Define a command and arguments for a pod](https://docs.aws.amazon.com/https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/) in the *Kubernetes documentation* .
	Args *[]*string `field:"optional" json:"args" yaml:"args"`
	// The entrypoint for the container.
	//
	// This isn't run within a shell. If this isn't specified, the `ENTRYPOINT` of the container image is used. Environment variable references are expanded using the container's environment.
	//
	// If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to " `$(NAME1)` " and the `NAME1` environment variable doesn't exist, the command string will remain " `$(NAME1)` ." `$$` is replaced with `$` and the resulting string isn't expanded. For example, `$$(VAR_NAME)` will be passed as `$(VAR_NAME)` whether or not the `VAR_NAME` environment variable exists. The entrypoint can't be updated. For more information, see [ENTRYPOINT](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#entrypoint) in the *Dockerfile reference* and [Define a command and arguments for a container](https://docs.aws.amazon.com/https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/) and [Entrypoint](https://docs.aws.amazon.com/https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#entrypoint) in the *Kubernetes documentation* .
	Command *[]*string `field:"optional" json:"command" yaml:"command"`
	// The environment variables to pass to a container.
	//
	// > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
	Env interface{} `field:"optional" json:"env" yaml:"env"`
	// The image pull policy for the container.
	//
	// Supported values are `Always` , `IfNotPresent` , and `Never` . This parameter defaults to `IfNotPresent` . However, if the `:latest` tag is specified, it defaults to `Always` . For more information, see [Updating images](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/containers/images/#updating-images) in the *Kubernetes documentation* .
	ImagePullPolicy *string `field:"optional" json:"imagePullPolicy" yaml:"imagePullPolicy"`
	// The name of the container.
	//
	// If the name isn't specified, the default name " `Default` " is used. Each container in a pod must have a unique name.
	Name *string `field:"optional" json:"name" yaml:"name"`
	// The type and amount of resources to assign to a container.
	//
	// The supported resources include `memory` , `cpu` , and `nvidia.com/gpu` . For more information, see [Resource management for pods and containers](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) in the *Kubernetes documentation* .
	Resources interface{} `field:"optional" json:"resources" yaml:"resources"`
	// The security context for a job.
	//
	// For more information, see [Configure a security context for a pod or container](https://docs.aws.amazon.com/https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) in the *Kubernetes documentation* .
	SecurityContext interface{} `field:"optional" json:"securityContext" yaml:"securityContext"`
	// The volume mounts for the container.
	//
	// AWS Batch supports `emptyDir` , `hostPath` , and `secret` volume types. For more information about volumes and volume mounts in Kubernetes, see [Volumes](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/) in the *Kubernetes documentation* .
	VolumeMounts interface{} `field:"optional" json:"volumeMounts" yaml:"volumeMounts"`
}

EKS container properties are used in job definitions for Amazon EKS based job definitions to describe the properties for a container node in the pod that's launched as part of a job.

This can't be specified for Amazon ECS based job definitions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var limits interface{}
var requests interface{}

eksContainerProperty := &EksContainerProperty{
	Image: jsii.String("image"),

	// the properties below are optional
	Args: []*string{
		jsii.String("args"),
	},
	Command: []*string{
		jsii.String("command"),
	},
	Env: []interface{}{
		&EksContainerEnvironmentVariableProperty{
			Name: jsii.String("name"),

			// the properties below are optional
			Value: jsii.String("value"),
		},
	},
	ImagePullPolicy: jsii.String("imagePullPolicy"),
	Name: jsii.String("name"),
	Resources: &ResourcesProperty{
		Limits: limits,
		Requests: requests,
	},
	SecurityContext: &SecurityContextProperty{
		Privileged: jsii.Boolean(false),
		ReadOnlyRootFilesystem: jsii.Boolean(false),
		RunAsGroup: jsii.Number(123),
		RunAsNonRoot: jsii.Boolean(false),
		RunAsUser: jsii.Number(123),
	},
	VolumeMounts: []interface{}{
		&EksContainerVolumeMountProperty{
			MountPath: jsii.String("mountPath"),
			Name: jsii.String("name"),
			ReadOnly: jsii.Boolean(false),
		},
	},
}

type CfnJobDefinition_EksContainerVolumeMountProperty added in v2.51.0

type CfnJobDefinition_EksContainerVolumeMountProperty struct {
	// The path on the container where the volume is mounted.
	MountPath *string `field:"optional" json:"mountPath" yaml:"mountPath"`
	// The name the volume mount.
	//
	// This must match the name of one of the volumes in the pod.
	Name *string `field:"optional" json:"name" yaml:"name"`
	// If this value is `true` , the container has read-only access to the volume.
	//
	// Otherwise, the container can write to the volume. The default value is `false` .
	ReadOnly interface{} `field:"optional" json:"readOnly" yaml:"readOnly"`
}

The volume mounts for a container for an Amazon EKS job.

For more information about volumes and volume mounts in Kubernetes, see [Volumes](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/) in the *Kubernetes documentation* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eksContainerVolumeMountProperty := &EksContainerVolumeMountProperty{
	MountPath: jsii.String("mountPath"),
	Name: jsii.String("name"),
	ReadOnly: jsii.Boolean(false),
}

type CfnJobDefinition_EksPropertiesProperty added in v2.51.0

type CfnJobDefinition_EksPropertiesProperty struct {
	// The properties for the Kubernetes pod resources of a job.
	PodProperties interface{} `field:"optional" json:"podProperties" yaml:"podProperties"`
}

An object that contains the properties for the Kubernetes resources of a job.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var labels interface{}
var limits interface{}
var requests interface{}

eksPropertiesProperty := &EksPropertiesProperty{
	PodProperties: &PodPropertiesProperty{
		Containers: []interface{}{
			&EksContainerProperty{
				Image: jsii.String("image"),

				// the properties below are optional
				Args: []*string{
					jsii.String("args"),
				},
				Command: []*string{
					jsii.String("command"),
				},
				Env: []interface{}{
					&EksContainerEnvironmentVariableProperty{
						Name: jsii.String("name"),

						// the properties below are optional
						Value: jsii.String("value"),
					},
				},
				ImagePullPolicy: jsii.String("imagePullPolicy"),
				Name: jsii.String("name"),
				Resources: &ResourcesProperty{
					Limits: limits,
					Requests: requests,
				},
				SecurityContext: &SecurityContextProperty{
					Privileged: jsii.Boolean(false),
					ReadOnlyRootFilesystem: jsii.Boolean(false),
					RunAsGroup: jsii.Number(123),
					RunAsNonRoot: jsii.Boolean(false),
					RunAsUser: jsii.Number(123),
				},
				VolumeMounts: []interface{}{
					&EksContainerVolumeMountProperty{
						MountPath: jsii.String("mountPath"),
						Name: jsii.String("name"),
						ReadOnly: jsii.Boolean(false),
					},
				},
			},
		},
		DnsPolicy: jsii.String("dnsPolicy"),
		HostNetwork: jsii.Boolean(false),
		Metadata: &MetadataProperty{
			Labels: labels,
		},
		ServiceAccountName: jsii.String("serviceAccountName"),
		Volumes: []interface{}{
			&EksVolumeProperty{
				Name: jsii.String("name"),

				// the properties below are optional
				EmptyDir: &EmptyDirProperty{
					Medium: jsii.String("medium"),
					SizeLimit: jsii.String("sizeLimit"),
				},
				HostPath: &HostPathProperty{
					Path: jsii.String("path"),
				},
				Secret: &EksSecretProperty{
					SecretName: jsii.String("secretName"),

					// the properties below are optional
					Optional: jsii.Boolean(false),
				},
			},
		},
	},
}

type CfnJobDefinition_EksSecretProperty added in v2.78.0

type CfnJobDefinition_EksSecretProperty struct {
	// `CfnJobDefinition.EksSecretProperty.SecretName`.
	SecretName *string `field:"required" json:"secretName" yaml:"secretName"`
	// `CfnJobDefinition.EksSecretProperty.Optional`.
	Optional interface{} `field:"optional" json:"optional" yaml:"optional"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eksSecretProperty := &EksSecretProperty{
	SecretName: jsii.String("secretName"),

	// the properties below are optional
	Optional: jsii.Boolean(false),
}

type CfnJobDefinition_EksVolumeProperty added in v2.51.0

type CfnJobDefinition_EksVolumeProperty struct {
	// The name of the volume.
	//
	// The name must be allowed as a DNS subdomain name. For more information, see [DNS subdomain names](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names) in the *Kubernetes documentation* .
	Name *string `field:"required" json:"name" yaml:"name"`
	// Specifies the configuration of a Kubernetes `emptyDir` volume.
	//
	// For more information, see [emptyDir](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) in the *Kubernetes documentation* .
	EmptyDir interface{} `field:"optional" json:"emptyDir" yaml:"emptyDir"`
	// Specifies the configuration of a Kubernetes `hostPath` volume.
	//
	// For more information, see [hostPath](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/#hostpath) in the *Kubernetes documentation* .
	HostPath interface{} `field:"optional" json:"hostPath" yaml:"hostPath"`
	// Specifies the configuration of a Kubernetes `secret` volume.
	//
	// For more information, see [secret](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/#secret) in the *Kubernetes documentation* .
	Secret interface{} `field:"optional" json:"secret" yaml:"secret"`
}

Specifies an Amazon EKS volume for a job definition.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eksVolumeProperty := &EksVolumeProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	EmptyDir: &EmptyDirProperty{
		Medium: jsii.String("medium"),
		SizeLimit: jsii.String("sizeLimit"),
	},
	HostPath: &HostPathProperty{
		Path: jsii.String("path"),
	},
	Secret: &EksSecretProperty{
		SecretName: jsii.String("secretName"),

		// the properties below are optional
		Optional: jsii.Boolean(false),
	},
}

type CfnJobDefinition_EmptyDirProperty added in v2.51.0

type CfnJobDefinition_EmptyDirProperty struct {
	// `CfnJobDefinition.EmptyDirProperty.Medium`.
	Medium *string `field:"optional" json:"medium" yaml:"medium"`
	// `CfnJobDefinition.EmptyDirProperty.SizeLimit`.
	SizeLimit *string `field:"optional" json:"sizeLimit" yaml:"sizeLimit"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

emptyDirProperty := &EmptyDirProperty{
	Medium: jsii.String("medium"),
	SizeLimit: jsii.String("sizeLimit"),
}

type CfnJobDefinition_EnvironmentProperty

type CfnJobDefinition_EnvironmentProperty struct {
	// The name of the environment variable.
	Name *string `field:"optional" json:"name" yaml:"name"`
	// The value of the environment variable.
	Value *string `field:"optional" json:"value" yaml:"value"`
}

The Environment property type specifies environment variables to use in a job definition.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

environmentProperty := &EnvironmentProperty{
	Name: jsii.String("name"),
	Value: jsii.String("value"),
}

type CfnJobDefinition_EphemeralStorageProperty added in v2.78.0

type CfnJobDefinition_EphemeralStorageProperty struct {
	// `CfnJobDefinition.EphemeralStorageProperty.SizeInGiB`.
	SizeInGiB *float64 `field:"required" json:"sizeInGiB" yaml:"sizeInGiB"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ephemeralStorageProperty := &EphemeralStorageProperty{
	SizeInGiB: jsii.Number(123),
}

type CfnJobDefinition_EvaluateOnExitProperty

type CfnJobDefinition_EvaluateOnExitProperty struct {
	// Specifies the action to take if all of the specified conditions ( `onStatusReason` , `onReason` , and `onExitCode` ) are met.
	//
	// The values aren't case sensitive.
	Action *string `field:"required" json:"action" yaml:"action"`
	// Contains a glob pattern to match against the decimal representation of the `ExitCode` returned for a job.
	//
	// The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.
	//
	// The string can contain up to 512 characters.
	OnExitCode *string `field:"optional" json:"onExitCode" yaml:"onExitCode"`
	// Contains a glob pattern to match against the `Reason` returned for a job.
	//
	// The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
	OnReason *string `field:"optional" json:"onReason" yaml:"onReason"`
	// Contains a glob pattern to match against the `StatusReason` returned for a job.
	//
	// The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
	OnStatusReason *string `field:"optional" json:"onStatusReason" yaml:"onStatusReason"`
}

Specifies an array of up to 5 conditions to be met, and an action to take ( `RETRY` or `EXIT` ) if all conditions are met.

If none of the `EvaluateOnExit` conditions in a `RetryStrategy` match, then the job is retried.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

evaluateOnExitProperty := &EvaluateOnExitProperty{
	Action: jsii.String("action"),

	// the properties below are optional
	OnExitCode: jsii.String("onExitCode"),
	OnReason: jsii.String("onReason"),
	OnStatusReason: jsii.String("onStatusReason"),
}

type CfnJobDefinition_FargatePlatformConfigurationProperty

type CfnJobDefinition_FargatePlatformConfigurationProperty struct {
	// The AWS Fargate platform version where the jobs are running.
	//
	// A platform version is specified only for jobs that are running on Fargate resources. If one isn't specified, the `LATEST` platform version is used by default. This uses a recent, approved version of the AWS Fargate platform for compute resources. For more information, see [AWS Fargate platform versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) in the *Amazon Elastic Container Service Developer Guide* .
	PlatformVersion *string `field:"optional" json:"platformVersion" yaml:"platformVersion"`
}

The platform configuration for jobs that are running on Fargate resources.

Jobs that run on EC2 resources must not specify this parameter.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fargatePlatformConfigurationProperty := &FargatePlatformConfigurationProperty{
	PlatformVersion: jsii.String("platformVersion"),
}

type CfnJobDefinition_HostPathProperty added in v2.51.0

type CfnJobDefinition_HostPathProperty struct {
	// `CfnJobDefinition.HostPathProperty.Path`.
	Path *string `field:"optional" json:"path" yaml:"path"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

hostPathProperty := &HostPathProperty{
	Path: jsii.String("path"),
}

type CfnJobDefinition_LinuxParametersProperty

type CfnJobDefinition_LinuxParametersProperty struct {
	// Any of the host devices to expose to the container.
	//
	// This parameter maps to `Devices` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--device` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs.
	Devices interface{} `field:"optional" json:"devices" yaml:"devices"`
	// If true, run an `init` process inside the container that forwards signals and reaps processes.
	//
	// This parameter maps to the `--init` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
	InitProcessEnabled interface{} `field:"optional" json:"initProcessEnabled" yaml:"initProcessEnabled"`
	// The total amount of swap memory (in MiB) a container can use.
	//
	// This parameter is translated to the `--memory-swap` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) where the value is the sum of the container memory plus the `maxSwap` value. For more information, see [`--memory-swap` details](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details) in the Docker documentation.
	//
	// If a `maxSwap` value of `0` is specified, the container doesn't use swap. Accepted values are `0` or any positive integer. If the `maxSwap` parameter is omitted, the container doesn't use the swap configuration for the container instance that it's running on. A `maxSwap` value must be set for the `swappiness` parameter to be used.
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs.
	MaxSwap *float64 `field:"optional" json:"maxSwap" yaml:"maxSwap"`
	// The value for the size (in MiB) of the `/dev/shm` volume.
	//
	// This parameter maps to the `--shm-size` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs.
	SharedMemorySize *float64 `field:"optional" json:"sharedMemorySize" yaml:"sharedMemorySize"`
	// You can use this parameter to tune a container's memory swappiness behavior.
	//
	// A `swappiness` value of `0` causes swapping to not occur unless absolutely necessary. A `swappiness` value of `100` causes pages to be swapped aggressively. Valid values are whole numbers between `0` and `100` . If the `swappiness` parameter isn't specified, a default value of `60` is used. If a value isn't specified for `maxSwap` , then this parameter is ignored. If `maxSwap` is set to 0, the container doesn't use swap. This parameter maps to the `--memory-swappiness` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// Consider the following when you use a per-container swap configuration.
	//
	// - Swap space must be enabled and allocated on the container instance for the containers to use.
	//
	// > By default, the Amazon ECS optimized AMIs don't have swap enabled. You must enable swap on the instance to use this feature. For more information, see [Instance store swap volumes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-store-swap-volumes.html) in the *Amazon EC2 User Guide for Linux Instances* or [How do I allocate memory to work as swap space in an Amazon EC2 instance by using a swap file?](https://docs.aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/)
	// - The swap space parameters are only supported for job definitions using EC2 resources.
	// - If the `maxSwap` and `swappiness` parameters are omitted from a job definition, each container has a default `swappiness` value of 60. Moreover, the total swap usage is limited to two times the memory reservation of the container.
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs.
	Swappiness *float64 `field:"optional" json:"swappiness" yaml:"swappiness"`
	// The container path, mount options, and size (in MiB) of the `tmpfs` mount.
	//
	// This parameter maps to the `--tmpfs` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide this parameter for this resource type.
	Tmpfs interface{} `field:"optional" json:"tmpfs" yaml:"tmpfs"`
}

Linux-specific modifications that are applied to the container, such as details for device mappings.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

linuxParametersProperty := &LinuxParametersProperty{
	Devices: []interface{}{
		&DeviceProperty{
			ContainerPath: jsii.String("containerPath"),
			HostPath: jsii.String("hostPath"),
			Permissions: []*string{
				jsii.String("permissions"),
			},
		},
	},
	InitProcessEnabled: jsii.Boolean(false),
	MaxSwap: jsii.Number(123),
	SharedMemorySize: jsii.Number(123),
	Swappiness: jsii.Number(123),
	Tmpfs: []interface{}{
		&TmpfsProperty{
			ContainerPath: jsii.String("containerPath"),
			Size: jsii.Number(123),

			// the properties below are optional
			MountOptions: []*string{
				jsii.String("mountOptions"),
			},
		},
	},
}

type CfnJobDefinition_LogConfigurationProperty

type CfnJobDefinition_LogConfigurationProperty struct {
	// The log driver to use for the container.
	//
	// The valid values that are listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default.
	//
	// The supported log drivers are `awslogs` , `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , and `splunk` .
	//
	// > Jobs that are running on Fargate resources are restricted to the `awslogs` and `splunk` log drivers.
	//
	// - **awslogs** - Specifies the Amazon CloudWatch Logs logging driver. For more information, see [Using the awslogs log driver](https://docs.aws.amazon.com/batch/latest/userguide/using_awslogs.html) in the *AWS Batch User Guide* and [Amazon CloudWatch Logs logging driver](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/logging/awslogs/) in the Docker documentation.
	// - **fluentd** - Specifies the Fluentd logging driver. For more information including usage and options, see [Fluentd logging driver](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/logging/fluentd/) in the *Docker documentation* .
	// - **gelf** - Specifies the Graylog Extended Format (GELF) logging driver. For more information including usage and options, see [Graylog Extended Format logging driver](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/logging/gelf/) in the *Docker documentation* .
	// - **journald** - Specifies the journald logging driver. For more information including usage and options, see [Journald logging driver](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/logging/journald/) in the *Docker documentation* .
	// - **json-file** - Specifies the JSON file logging driver. For more information including usage and options, see [JSON File logging driver](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/logging/json-file/) in the *Docker documentation* .
	// - **splunk** - Specifies the Splunk logging driver. For more information including usage and options, see [Splunk logging driver](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/logging/splunk/) in the *Docker documentation* .
	// - **syslog** - Specifies the syslog logging driver. For more information including usage and options, see [Syslog logging driver](https://docs.aws.amazon.com/https://docs.docker.com/config/containers/logging/syslog/) in the *Docker documentation* .
	//
	// > If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you can fork the Amazon ECS container agent project that's [available on GitHub](https://docs.aws.amazon.com/https://github.com/aws/amazon-ecs-agent) and customize it to work with that driver. We encourage you to submit pull requests for changes that you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this software.
	//
	// This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
	LogDriver *string `field:"required" json:"logDriver" yaml:"logDriver"`
	// The configuration options to send to the log driver.
	//
	// This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
	Options interface{} `field:"optional" json:"options" yaml:"options"`
	// The secrets to pass to the log configuration.
	//
	// For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
	SecretOptions interface{} `field:"optional" json:"secretOptions" yaml:"secretOptions"`
}

Log configuration options to send to a custom log driver for the container.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var options interface{}

logConfigurationProperty := &LogConfigurationProperty{
	LogDriver: jsii.String("logDriver"),

	// the properties below are optional
	Options: options,
	SecretOptions: []interface{}{
		&SecretProperty{
			Name: jsii.String("name"),
			ValueFrom: jsii.String("valueFrom"),
		},
	},
}

type CfnJobDefinition_MetadataProperty added in v2.78.0

type CfnJobDefinition_MetadataProperty struct {
	// `CfnJobDefinition.MetadataProperty.Labels`.
	Labels interface{} `field:"optional" json:"labels" yaml:"labels"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var labels interface{}

metadataProperty := &MetadataProperty{
	Labels: labels,
}

type CfnJobDefinition_MountPointsProperty

type CfnJobDefinition_MountPointsProperty struct {
	// The path on the container where the host volume is mounted.
	ContainerPath *string `field:"optional" json:"containerPath" yaml:"containerPath"`
	// If this value is `true` , the container has read-only access to the volume.
	//
	// Otherwise, the container can write to the volume. The default value is `false` .
	ReadOnly interface{} `field:"optional" json:"readOnly" yaml:"readOnly"`
	// The name of the volume to mount.
	SourceVolume *string `field:"optional" json:"sourceVolume" yaml:"sourceVolume"`
}

Details for a Docker volume mount point that's used in a job's container properties.

This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/api/docker_remote_api_v1.19/#create-a-container) section of the *Docker Remote API* and the `--volume` option to docker run.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

mountPointsProperty := &MountPointsProperty{
	ContainerPath: jsii.String("containerPath"),
	ReadOnly: jsii.Boolean(false),
	SourceVolume: jsii.String("sourceVolume"),
}

type CfnJobDefinition_NetworkConfigurationProperty

type CfnJobDefinition_NetworkConfigurationProperty struct {
	// Indicates whether the job has a public IP address.
	//
	// For a job that's running on Fargate resources in a private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet requires a NAT gateway be attached to route requests to the internet. For more information, see [Amazon ECS task networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in the *Amazon Elastic Container Service Developer Guide* . The default value is " `DISABLED` ".
	AssignPublicIp *string `field:"optional" json:"assignPublicIp" yaml:"assignPublicIp"`
}

The network configuration for jobs that are running on Fargate resources.

Jobs that are running on EC2 resources must not specify this parameter.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

networkConfigurationProperty := &NetworkConfigurationProperty{
	AssignPublicIp: jsii.String("assignPublicIp"),
}

type CfnJobDefinition_NodePropertiesProperty

type CfnJobDefinition_NodePropertiesProperty struct {
	// Specifies the node index for the main node of a multi-node parallel job.
	//
	// This node index value must be fewer than the number of nodes.
	MainNode *float64 `field:"required" json:"mainNode" yaml:"mainNode"`
	// A list of node ranges and their properties that are associated with a multi-node parallel job.
	NodeRangeProperties interface{} `field:"required" json:"nodeRangeProperties" yaml:"nodeRangeProperties"`
	// The number of nodes that are associated with a multi-node parallel job.
	NumNodes *float64 `field:"required" json:"numNodes" yaml:"numNodes"`
}

An object that represents the node properties of a multi-node parallel job.

> Node properties can't be specified for Amazon EKS based job definitions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var options interface{}

nodePropertiesProperty := &NodePropertiesProperty{
	MainNode: jsii.Number(123),
	NodeRangeProperties: []interface{}{
		&NodeRangePropertyProperty{
			TargetNodes: jsii.String("targetNodes"),

			// the properties below are optional
			Container: &ContainerPropertiesProperty{
				Image: jsii.String("image"),

				// the properties below are optional
				Command: []*string{
					jsii.String("command"),
				},
				Environment: []interface{}{
					&EnvironmentProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
				EphemeralStorage: &EphemeralStorageProperty{
					SizeInGiB: jsii.Number(123),
				},
				ExecutionRoleArn: jsii.String("executionRoleArn"),
				FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
					PlatformVersion: jsii.String("platformVersion"),
				},
				InstanceType: jsii.String("instanceType"),
				JobRoleArn: jsii.String("jobRoleArn"),
				LinuxParameters: &LinuxParametersProperty{
					Devices: []interface{}{
						&DeviceProperty{
							ContainerPath: jsii.String("containerPath"),
							HostPath: jsii.String("hostPath"),
							Permissions: []*string{
								jsii.String("permissions"),
							},
						},
					},
					InitProcessEnabled: jsii.Boolean(false),
					MaxSwap: jsii.Number(123),
					SharedMemorySize: jsii.Number(123),
					Swappiness: jsii.Number(123),
					Tmpfs: []interface{}{
						&TmpfsProperty{
							ContainerPath: jsii.String("containerPath"),
							Size: jsii.Number(123),

							// the properties below are optional
							MountOptions: []*string{
								jsii.String("mountOptions"),
							},
						},
					},
				},
				LogConfiguration: &LogConfigurationProperty{
					LogDriver: jsii.String("logDriver"),

					// the properties below are optional
					Options: options,
					SecretOptions: []interface{}{
						&SecretProperty{
							Name: jsii.String("name"),
							ValueFrom: jsii.String("valueFrom"),
						},
					},
				},
				Memory: jsii.Number(123),
				MountPoints: []interface{}{
					&MountPointsProperty{
						ContainerPath: jsii.String("containerPath"),
						ReadOnly: jsii.Boolean(false),
						SourceVolume: jsii.String("sourceVolume"),
					},
				},
				NetworkConfiguration: &NetworkConfigurationProperty{
					AssignPublicIp: jsii.String("assignPublicIp"),
				},
				Privileged: jsii.Boolean(false),
				ReadonlyRootFilesystem: jsii.Boolean(false),
				ResourceRequirements: []interface{}{
					&ResourceRequirementProperty{
						Type: jsii.String("type"),
						Value: jsii.String("value"),
					},
				},
				Secrets: []interface{}{
					&SecretProperty{
						Name: jsii.String("name"),
						ValueFrom: jsii.String("valueFrom"),
					},
				},
				Ulimits: []interface{}{
					&UlimitProperty{
						HardLimit: jsii.Number(123),
						Name: jsii.String("name"),
						SoftLimit: jsii.Number(123),
					},
				},
				User: jsii.String("user"),
				Vcpus: jsii.Number(123),
				Volumes: []interface{}{
					&VolumesProperty{
						EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
							FileSystemId: jsii.String("fileSystemId"),

							// the properties below are optional
							AuthorizationConfig: &AuthorizationConfigProperty{
								AccessPointId: jsii.String("accessPointId"),
								Iam: jsii.String("iam"),
							},
							RootDirectory: jsii.String("rootDirectory"),
							TransitEncryption: jsii.String("transitEncryption"),
							TransitEncryptionPort: jsii.Number(123),
						},
						Host: &VolumesHostProperty{
							SourcePath: jsii.String("sourcePath"),
						},
						Name: jsii.String("name"),
					},
				},
			},
		},
	},
	NumNodes: jsii.Number(123),
}

type CfnJobDefinition_NodeRangePropertyProperty

type CfnJobDefinition_NodeRangePropertyProperty struct {
	// The range of nodes, using node index values.
	//
	// A range of `0:3` indicates nodes with index values of `0` through `3` . If the starting range value is omitted ( `:n` ), then `0` is used to start the range. If the ending range value is omitted ( `n:` ), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes ( `0:n` ). You can nest node ranges (for example, `0:10` and `4:5` ). In this case, the `4:5` range properties override the `0:10` properties.
	TargetNodes *string `field:"required" json:"targetNodes" yaml:"targetNodes"`
	// The container details for the node range.
	Container interface{} `field:"optional" json:"container" yaml:"container"`
}

An object that represents the properties of the node range for a multi-node parallel job.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var options interface{}

nodeRangePropertyProperty := &NodeRangePropertyProperty{
	TargetNodes: jsii.String("targetNodes"),

	// the properties below are optional
	Container: &ContainerPropertiesProperty{
		Image: jsii.String("image"),

		// the properties below are optional
		Command: []*string{
			jsii.String("command"),
		},
		Environment: []interface{}{
			&EnvironmentProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
		EphemeralStorage: &EphemeralStorageProperty{
			SizeInGiB: jsii.Number(123),
		},
		ExecutionRoleArn: jsii.String("executionRoleArn"),
		FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
			PlatformVersion: jsii.String("platformVersion"),
		},
		InstanceType: jsii.String("instanceType"),
		JobRoleArn: jsii.String("jobRoleArn"),
		LinuxParameters: &LinuxParametersProperty{
			Devices: []interface{}{
				&DeviceProperty{
					ContainerPath: jsii.String("containerPath"),
					HostPath: jsii.String("hostPath"),
					Permissions: []*string{
						jsii.String("permissions"),
					},
				},
			},
			InitProcessEnabled: jsii.Boolean(false),
			MaxSwap: jsii.Number(123),
			SharedMemorySize: jsii.Number(123),
			Swappiness: jsii.Number(123),
			Tmpfs: []interface{}{
				&TmpfsProperty{
					ContainerPath: jsii.String("containerPath"),
					Size: jsii.Number(123),

					// the properties below are optional
					MountOptions: []*string{
						jsii.String("mountOptions"),
					},
				},
			},
		},
		LogConfiguration: &LogConfigurationProperty{
			LogDriver: jsii.String("logDriver"),

			// the properties below are optional
			Options: options,
			SecretOptions: []interface{}{
				&SecretProperty{
					Name: jsii.String("name"),
					ValueFrom: jsii.String("valueFrom"),
				},
			},
		},
		Memory: jsii.Number(123),
		MountPoints: []interface{}{
			&MountPointsProperty{
				ContainerPath: jsii.String("containerPath"),
				ReadOnly: jsii.Boolean(false),
				SourceVolume: jsii.String("sourceVolume"),
			},
		},
		NetworkConfiguration: &NetworkConfigurationProperty{
			AssignPublicIp: jsii.String("assignPublicIp"),
		},
		Privileged: jsii.Boolean(false),
		ReadonlyRootFilesystem: jsii.Boolean(false),
		ResourceRequirements: []interface{}{
			&ResourceRequirementProperty{
				Type: jsii.String("type"),
				Value: jsii.String("value"),
			},
		},
		Secrets: []interface{}{
			&SecretProperty{
				Name: jsii.String("name"),
				ValueFrom: jsii.String("valueFrom"),
			},
		},
		Ulimits: []interface{}{
			&UlimitProperty{
				HardLimit: jsii.Number(123),
				Name: jsii.String("name"),
				SoftLimit: jsii.Number(123),
			},
		},
		User: jsii.String("user"),
		Vcpus: jsii.Number(123),
		Volumes: []interface{}{
			&VolumesProperty{
				EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
					FileSystemId: jsii.String("fileSystemId"),

					// the properties below are optional
					AuthorizationConfig: &AuthorizationConfigProperty{
						AccessPointId: jsii.String("accessPointId"),
						Iam: jsii.String("iam"),
					},
					RootDirectory: jsii.String("rootDirectory"),
					TransitEncryption: jsii.String("transitEncryption"),
					TransitEncryptionPort: jsii.Number(123),
				},
				Host: &VolumesHostProperty{
					SourcePath: jsii.String("sourcePath"),
				},
				Name: jsii.String("name"),
			},
		},
	},
}

type CfnJobDefinition_PodPropertiesProperty added in v2.51.0

type CfnJobDefinition_PodPropertiesProperty struct {
	// The properties of the container that's used on the Amazon EKS pod.
	Containers interface{} `field:"optional" json:"containers" yaml:"containers"`
	// The DNS policy for the pod.
	//
	// The default value is `ClusterFirst` . If the `hostNetwork` parameter is not specified, the default is `ClusterFirstWithHostNet` . `ClusterFirst` indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. If no value was specified for `dnsPolicy` in the [RegisterJobDefinition](https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html) API operation, then no value will be returned for `dnsPolicy` by either of [DescribeJobDefinitions](https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html) or [DescribeJobs](https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html) API operations. The pod spec setting will contain either `ClusterFirst` or `ClusterFirstWithHostNet` , depending on the value of the `hostNetwork` parameter. For more information, see [Pod's DNS policy](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy) in the *Kubernetes documentation* .
	//
	// Valid values: `Default` | `ClusterFirst` | `ClusterFirstWithHostNet`.
	DnsPolicy *string `field:"optional" json:"dnsPolicy" yaml:"dnsPolicy"`
	// Indicates if the pod uses the hosts' network IP address.
	//
	// The default value is `true` . Setting this to `false` enables the Kubernetes pod networking model. Most AWS Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see [Host namespaces](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces) and [Pod networking](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking) in the *Kubernetes documentation* .
	HostNetwork interface{} `field:"optional" json:"hostNetwork" yaml:"hostNetwork"`
	// `CfnJobDefinition.PodPropertiesProperty.Metadata`.
	Metadata interface{} `field:"optional" json:"metadata" yaml:"metadata"`
	// The name of the service account that's used to run the pod.
	//
	// For more information, see [Kubernetes service accounts](https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html) and [Configure a Kubernetes service account to assume an IAM role](https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html) in the *Amazon EKS User Guide* and [Configure service accounts for pods](https://docs.aws.amazon.com/https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) in the *Kubernetes documentation* .
	ServiceAccountName *string `field:"optional" json:"serviceAccountName" yaml:"serviceAccountName"`
	// Specifies the volumes for a job definition that uses Amazon EKS resources.
	Volumes interface{} `field:"optional" json:"volumes" yaml:"volumes"`
}

The properties for the pod.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var labels interface{}
var limits interface{}
var requests interface{}

podPropertiesProperty := &PodPropertiesProperty{
	Containers: []interface{}{
		&EksContainerProperty{
			Image: jsii.String("image"),

			// the properties below are optional
			Args: []*string{
				jsii.String("args"),
			},
			Command: []*string{
				jsii.String("command"),
			},
			Env: []interface{}{
				&EksContainerEnvironmentVariableProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					Value: jsii.String("value"),
				},
			},
			ImagePullPolicy: jsii.String("imagePullPolicy"),
			Name: jsii.String("name"),
			Resources: &ResourcesProperty{
				Limits: limits,
				Requests: requests,
			},
			SecurityContext: &SecurityContextProperty{
				Privileged: jsii.Boolean(false),
				ReadOnlyRootFilesystem: jsii.Boolean(false),
				RunAsGroup: jsii.Number(123),
				RunAsNonRoot: jsii.Boolean(false),
				RunAsUser: jsii.Number(123),
			},
			VolumeMounts: []interface{}{
				&EksContainerVolumeMountProperty{
					MountPath: jsii.String("mountPath"),
					Name: jsii.String("name"),
					ReadOnly: jsii.Boolean(false),
				},
			},
		},
	},
	DnsPolicy: jsii.String("dnsPolicy"),
	HostNetwork: jsii.Boolean(false),
	Metadata: &MetadataProperty{
		Labels: labels,
	},
	ServiceAccountName: jsii.String("serviceAccountName"),
	Volumes: []interface{}{
		&EksVolumeProperty{
			Name: jsii.String("name"),

			// the properties below are optional
			EmptyDir: &EmptyDirProperty{
				Medium: jsii.String("medium"),
				SizeLimit: jsii.String("sizeLimit"),
			},
			HostPath: &HostPathProperty{
				Path: jsii.String("path"),
			},
			Secret: &EksSecretProperty{
				SecretName: jsii.String("secretName"),

				// the properties below are optional
				Optional: jsii.Boolean(false),
			},
		},
	},
}

type CfnJobDefinition_ResourceRequirementProperty

type CfnJobDefinition_ResourceRequirementProperty struct {
	// The type of resource to assign to a container.
	//
	// The supported resources include `GPU` , `MEMORY` , and `VCPU` .
	Type *string `field:"optional" json:"type" yaml:"type"`
	// The quantity of the specified resource to reserve for the container. The values vary based on the `type` specified.
	//
	// - **type="GPU"** - The number of physical GPUs to reserve for the container. Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on.
	//
	// > GPUs aren't available for jobs that are running on Fargate resources.
	// - **type="MEMORY"** - The memory hard limit (in MiB) present to the container. This parameter is supported for jobs that are running on EC2 resources. If your container attempts to exceed the memory specified, the container is terminated. This parameter maps to `Memory` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--memory` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . You must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to `Memory` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--memory` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
	//
	// > If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see [Memory management](https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) in the *AWS Batch User Guide* .
	//
	// For jobs that are running on Fargate resources, then `value` is the hard limit (in MiB), and must match one of the supported values and the `VCPU` values must be one of the values supported for that memory value.
	//
	// - **value = 512** - `VCPU` = 0.25
	// - **value = 1024** - `VCPU` = 0.25 or 0.5
	// - **value = 2048** - `VCPU` = 0.25, 0.5, or 1
	// - **value = 3072** - `VCPU` = 0.5, or 1
	// - **value = 4096** - `VCPU` = 0.5, 1, or 2
	// - **value = 5120, 6144, or 7168** - `VCPU` = 1 or 2
	// - **value = 8192** - `VCPU` = 1, 2, or 4
	// - **value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360** - `VCPU` = 2 or 4
	// - **value = 16384** - `VCPU` = 2, 4, or 8
	// - **value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648, 29696, or 30720** - `VCPU` = 4
	// - **value = 20480, 24576, or 28672** - `VCPU` = 4 or 8
	// - **value = 36864, 45056, 53248, or 61440** - `VCPU` = 8
	// - **value = 32768, 40960, 49152, or 57344** - `VCPU` = 8 or 16
	// - **value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880** - `VCPU` = 16
	// - **type="VCPU"** - The number of vCPUs reserved for the container. This parameter maps to `CpuShares` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--cpu-shares` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . Each vCPU is equivalent to 1,024 CPU shares. For EC2 resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be specified for each node at least once.
	//
	// The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more information about Fargate quotas, see [AWS Fargate quotas](https://docs.aws.amazon.com/general/latest/gr/ecs-service.html#service-quotas-fargate) in the *AWS General Reference* .
	//
	// For jobs that are running on Fargate resources, then `value` must match one of the supported values and the `MEMORY` values must be one of the values supported for that `VCPU` value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16
	//
	// - **value = 0.25** - `MEMORY` = 512, 1024, or 2048
	// - **value = 0.5** - `MEMORY` = 1024, 2048, 3072, or 4096
	// - **value = 1** - `MEMORY` = 2048, 3072, 4096, 5120, 6144, 7168, or 8192
	// - **value = 2** - `MEMORY` = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384
	// - **value = 4** - `MEMORY` = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720
	// - **value = 8** - `MEMORY` = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440
	// - **value = 16** - `MEMORY` = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880.
	Value *string `field:"optional" json:"value" yaml:"value"`
}

The type and amount of a resource to assign to a container.

The supported resources include `GPU` , `MEMORY` , and `VCPU` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

resourceRequirementProperty := &ResourceRequirementProperty{
	Type: jsii.String("type"),
	Value: jsii.String("value"),
}

type CfnJobDefinition_ResourcesProperty added in v2.51.0

type CfnJobDefinition_ResourcesProperty struct {
	// `CfnJobDefinition.ResourcesProperty.Limits`.
	Limits interface{} `field:"optional" json:"limits" yaml:"limits"`
	// `CfnJobDefinition.ResourcesProperty.Requests`.
	Requests interface{} `field:"optional" json:"requests" yaml:"requests"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var limits interface{}
var requests interface{}

resourcesProperty := &ResourcesProperty{
	Limits: limits,
	Requests: requests,
}

type CfnJobDefinition_RetryStrategyProperty

type CfnJobDefinition_RetryStrategyProperty struct {
	// The number of times to move a job to the `RUNNABLE` status.
	//
	// You can specify between 1 and 10 attempts. If the value of `attempts` is greater than one, the job is retried on failure the same number of attempts as the value.
	Attempts *float64 `field:"optional" json:"attempts" yaml:"attempts"`
	// Array of up to 5 objects that specify the conditions where jobs are retried or failed.
	//
	// If this parameter is specified, then the `attempts` parameter must also be specified. If none of the listed conditions match, then the job is retried.
	EvaluateOnExit interface{} `field:"optional" json:"evaluateOnExit" yaml:"evaluateOnExit"`
}

The retry strategy that's associated with a job.

For more information, see [Automated job retries](https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html) in the *AWS Batch User Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

retryStrategyProperty := &RetryStrategyProperty{
	Attempts: jsii.Number(123),
	EvaluateOnExit: []interface{}{
		&EvaluateOnExitProperty{
			Action: jsii.String("action"),

			// the properties below are optional
			OnExitCode: jsii.String("onExitCode"),
			OnReason: jsii.String("onReason"),
			OnStatusReason: jsii.String("onStatusReason"),
		},
	},
}

type CfnJobDefinition_SecretProperty

type CfnJobDefinition_SecretProperty struct {
	// The name of the secret.
	Name *string `field:"required" json:"name" yaml:"name"`
	// The secret to expose to the container.
	//
	// The supported values are either the full Amazon Resource Name (ARN) of the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.
	//
	// > If the AWS Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use either the full Amazon Resource Name (ARN) or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.
	ValueFrom *string `field:"required" json:"valueFrom" yaml:"valueFrom"`
}

An object that represents the secret to expose to your container.

Secrets can be exposed to a container in the following ways:

- To inject sensitive data into your containers as environment variables, use the `secrets` container definition parameter. - To reference sensitive information in the log configuration of a container, use the `secretOptions` container definition parameter.

For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

secretProperty := &SecretProperty{
	Name: jsii.String("name"),
	ValueFrom: jsii.String("valueFrom"),
}

type CfnJobDefinition_SecurityContextProperty added in v2.51.0

type CfnJobDefinition_SecurityContextProperty struct {
	// `CfnJobDefinition.SecurityContextProperty.Privileged`.
	Privileged interface{} `field:"optional" json:"privileged" yaml:"privileged"`
	// `CfnJobDefinition.SecurityContextProperty.ReadOnlyRootFilesystem`.
	ReadOnlyRootFilesystem interface{} `field:"optional" json:"readOnlyRootFilesystem" yaml:"readOnlyRootFilesystem"`
	// `CfnJobDefinition.SecurityContextProperty.RunAsGroup`.
	RunAsGroup *float64 `field:"optional" json:"runAsGroup" yaml:"runAsGroup"`
	// `CfnJobDefinition.SecurityContextProperty.RunAsNonRoot`.
	RunAsNonRoot interface{} `field:"optional" json:"runAsNonRoot" yaml:"runAsNonRoot"`
	// `CfnJobDefinition.SecurityContextProperty.RunAsUser`.
	RunAsUser *float64 `field:"optional" json:"runAsUser" yaml:"runAsUser"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

securityContextProperty := &SecurityContextProperty{
	Privileged: jsii.Boolean(false),
	ReadOnlyRootFilesystem: jsii.Boolean(false),
	RunAsGroup: jsii.Number(123),
	RunAsNonRoot: jsii.Boolean(false),
	RunAsUser: jsii.Number(123),
}

type CfnJobDefinition_TimeoutProperty

type CfnJobDefinition_TimeoutProperty struct {
	// The job timeout time (in seconds) that's measured from the job attempt's `startedAt` timestamp.
	//
	// After this time passes, AWS Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.
	//
	// For array jobs, the timeout applies to the child jobs, not to the parent array job.
	//
	// For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.
	AttemptDurationSeconds *float64 `field:"optional" json:"attemptDurationSeconds" yaml:"attemptDurationSeconds"`
}

An object that represents a job timeout configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

timeoutProperty := &TimeoutProperty{
	AttemptDurationSeconds: jsii.Number(123),
}

type CfnJobDefinition_TmpfsProperty

type CfnJobDefinition_TmpfsProperty struct {
	// The absolute file path in the container where the `tmpfs` volume is mounted.
	ContainerPath *string `field:"required" json:"containerPath" yaml:"containerPath"`
	// The size (in MiB) of the `tmpfs` volume.
	Size *float64 `field:"required" json:"size" yaml:"size"`
	// The list of `tmpfs` volume mount options.
	//
	// Valid values: " `defaults` " | " `ro` " | " `rw` " | " `suid` " | " `nosuid` " | " `dev` " | " `nodev` " | " `exec` " | " `noexec` " | " `sync` " | " `async` " | " `dirsync` " | " `remount` " | " `mand` " | " `nomand` " | " `atime` " | " `noatime` " | " `diratime` " | " `nodiratime` " | " `bind` " | " `rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime` " | " `norelatime` " | " `strictatime` " | " `nostrictatime` " | " `mode` " | " `uid` " | " `gid` " | " `nr_inodes` " | " `nr_blocks` " | " `mpol` ".
	MountOptions *[]*string `field:"optional" json:"mountOptions" yaml:"mountOptions"`
}

The container path, mount options, and size of the `tmpfs` mount.

> This object isn't applicable to jobs that are running on Fargate resources.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

tmpfsProperty := &TmpfsProperty{
	ContainerPath: jsii.String("containerPath"),
	Size: jsii.Number(123),

	// the properties below are optional
	MountOptions: []*string{
		jsii.String("mountOptions"),
	},
}

type CfnJobDefinition_UlimitProperty

type CfnJobDefinition_UlimitProperty struct {
	// The hard limit for the `ulimit` type.
	HardLimit *float64 `field:"required" json:"hardLimit" yaml:"hardLimit"`
	// The `type` of the `ulimit` .
	Name *string `field:"required" json:"name" yaml:"name"`
	// The soft limit for the `ulimit` type.
	SoftLimit *float64 `field:"required" json:"softLimit" yaml:"softLimit"`
}

The `ulimit` settings to pass to the container.

> This object isn't applicable to jobs that are running on Fargate resources.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ulimitProperty := &UlimitProperty{
	HardLimit: jsii.Number(123),
	Name: jsii.String("name"),
	SoftLimit: jsii.Number(123),
}

type CfnJobDefinition_VolumesHostProperty

type CfnJobDefinition_VolumesHostProperty struct {
	// The path on the host container instance that's presented to the container.
	//
	// If this parameter is empty, then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the source path location doesn't exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.
	//
	// > This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs.
	SourcePath *string `field:"optional" json:"sourcePath" yaml:"sourcePath"`
}

Determine whether your data volume persists on the host container instance and where it's stored.

If this parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

volumesHostProperty := &VolumesHostProperty{
	SourcePath: jsii.String("sourcePath"),
}

type CfnJobDefinition_VolumesProperty

type CfnJobDefinition_VolumesProperty struct {
	// This is used when you're using an Amazon Elastic File System file system for job storage.
	//
	// For more information, see [Amazon EFS Volumes](https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the *AWS Batch User Guide* .
	EfsVolumeConfiguration interface{} `field:"optional" json:"efsVolumeConfiguration" yaml:"efsVolumeConfiguration"`
	// The contents of the `host` parameter determine whether your data volume persists on the host container instance and where it's stored.
	//
	// If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
	//
	// > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
	Host interface{} `field:"optional" json:"host" yaml:"host"`
	// The name of the volume.
	//
	// It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the `sourceVolume` parameter of container definition `mountPoints` .
	Name *string `field:"optional" json:"name" yaml:"name"`
}

A list of volumes that are associated with the job.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

volumesProperty := &VolumesProperty{
	EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
		FileSystemId: jsii.String("fileSystemId"),

		// the properties below are optional
		AuthorizationConfig: &AuthorizationConfigProperty{
			AccessPointId: jsii.String("accessPointId"),
			Iam: jsii.String("iam"),
		},
		RootDirectory: jsii.String("rootDirectory"),
		TransitEncryption: jsii.String("transitEncryption"),
		TransitEncryptionPort: jsii.Number(123),
	},
	Host: &VolumesHostProperty{
		SourcePath: jsii.String("sourcePath"),
	},
	Name: jsii.String("name"),
}

type CfnJobQueue

type CfnJobQueue interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Returns the job queue ARN, such as `batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*` .
	AttrJobQueueArn() *string
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// The set of compute environments mapped to a job queue and their order relative to each other.
	//
	// The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the `VALID` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( `EC2` or `SPOT` ) or Fargate ( `FARGATE` or `FARGATE_SPOT` ); EC2 and Fargate compute environments can't be mixed.
	//
	// > All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
	ComputeEnvironmentOrder() interface{}
	SetComputeEnvironmentOrder(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// The name of the job queue.
	//
	// It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
	JobQueueName() *string
	SetJobQueueName(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The tree node.
	Node() constructs.Node
	// The priority of the job queue.
	//
	// Job queues with a higher priority (or a higher integer value for the `priority` parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of `10` is given scheduling preference over a job queue with a priority value of `1` . All of the compute environments must be either EC2 ( `EC2` or `SPOT` ) or Fargate ( `FARGATE` or `FARGATE_SPOT` ); EC2 and Fargate compute environments can't be mixed.
	Priority() *float64
	SetPriority(val *float64)
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The Amazon Resource Name (ARN) of the scheduling policy.
	//
	// The format is `aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*` . For example, `aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy` .
	SchedulingPolicyArn() *string
	SetSchedulingPolicyArn(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// The state of the job queue.
	//
	// If the job queue state is `ENABLED` , it is able to accept jobs. If the job queue state is `DISABLED` , new jobs can't be added to the queue, but jobs already in the queue can finish.
	State() *string
	SetState(val *string)
	// The tags that are applied to the job queue.
	//
	// For more information, see [Tagging your AWS Batch resources](https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in *AWS Batch User Guide* .
	Tags() awscdk.TagManager
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Batch::JobQueue`.

The `AWS::Batch::JobQueue` resource specifies the parameters for an AWS Batch job queue definition. For more information, see [Job Queues](https://docs.aws.amazon.com/batch/latest/userguide/job_queues.html) in the ** .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnJobQueue := awscdk.Aws_batch.NewCfnJobQueue(this, jsii.String("MyCfnJobQueue"), &CfnJobQueueProps{
	ComputeEnvironmentOrder: []interface{}{
		&ComputeEnvironmentOrderProperty{
			ComputeEnvironment: jsii.String("computeEnvironment"),
			Order: jsii.Number(123),
		},
	},
	Priority: jsii.Number(123),

	// the properties below are optional
	JobQueueName: jsii.String("jobQueueName"),
	SchedulingPolicyArn: jsii.String("schedulingPolicyArn"),
	State: jsii.String("state"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
})

func NewCfnJobQueue

func NewCfnJobQueue(scope constructs.Construct, id *string, props *CfnJobQueueProps) CfnJobQueue

Create a new `AWS::Batch::JobQueue`.

type CfnJobQueueProps

type CfnJobQueueProps struct {
	// The set of compute environments mapped to a job queue and their order relative to each other.
	//
	// The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the `VALID` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( `EC2` or `SPOT` ) or Fargate ( `FARGATE` or `FARGATE_SPOT` ); EC2 and Fargate compute environments can't be mixed.
	//
	// > All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
	ComputeEnvironmentOrder interface{} `field:"required" json:"computeEnvironmentOrder" yaml:"computeEnvironmentOrder"`
	// The priority of the job queue.
	//
	// Job queues with a higher priority (or a higher integer value for the `priority` parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of `10` is given scheduling preference over a job queue with a priority value of `1` . All of the compute environments must be either EC2 ( `EC2` or `SPOT` ) or Fargate ( `FARGATE` or `FARGATE_SPOT` ); EC2 and Fargate compute environments can't be mixed.
	Priority *float64 `field:"required" json:"priority" yaml:"priority"`
	// The name of the job queue.
	//
	// It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
	JobQueueName *string `field:"optional" json:"jobQueueName" yaml:"jobQueueName"`
	// The Amazon Resource Name (ARN) of the scheduling policy.
	//
	// The format is `aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*` . For example, `aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy` .
	SchedulingPolicyArn *string `field:"optional" json:"schedulingPolicyArn" yaml:"schedulingPolicyArn"`
	// The state of the job queue.
	//
	// If the job queue state is `ENABLED` , it is able to accept jobs. If the job queue state is `DISABLED` , new jobs can't be added to the queue, but jobs already in the queue can finish.
	State *string `field:"optional" json:"state" yaml:"state"`
	// The tags that are applied to the job queue.
	//
	// For more information, see [Tagging your AWS Batch resources](https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in *AWS Batch User Guide* .
	Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnJobQueue`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnJobQueueProps := &CfnJobQueueProps{
	ComputeEnvironmentOrder: []interface{}{
		&ComputeEnvironmentOrderProperty{
			ComputeEnvironment: jsii.String("computeEnvironment"),
			Order: jsii.Number(123),
		},
	},
	Priority: jsii.Number(123),

	// the properties below are optional
	JobQueueName: jsii.String("jobQueueName"),
	SchedulingPolicyArn: jsii.String("schedulingPolicyArn"),
	State: jsii.String("state"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

type CfnJobQueue_ComputeEnvironmentOrderProperty

type CfnJobQueue_ComputeEnvironmentOrderProperty struct {
	// The Amazon Resource Name (ARN) of the compute environment.
	ComputeEnvironment *string `field:"required" json:"computeEnvironment" yaml:"computeEnvironment"`
	// The order of the compute environment.
	//
	// Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower `order` integer value is tried for job placement first.
	Order *float64 `field:"required" json:"order" yaml:"order"`
}

The order that compute environments are tried in for job placement within a queue.

Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first. Compute environments must be in the `VALID` state before you can associate them with a job queue. All of the compute environments must be either EC2 ( `EC2` or `SPOT` ) or Fargate ( `FARGATE` or `FARGATE_SPOT` ); EC2 and Fargate compute environments can't be mixed.

> All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

computeEnvironmentOrderProperty := &ComputeEnvironmentOrderProperty{
	ComputeEnvironment: jsii.String("computeEnvironment"),
	Order: jsii.Number(123),
}

type CfnSchedulingPolicy

type CfnSchedulingPolicy interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Returns the scheduling policy ARN, such as `batch: *us-east-1* : *111122223333* :scheduling-policy/ *HighPriority*` .
	AttrArn() *string
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// The fair share policy of the scheduling policy.
	FairsharePolicy() interface{}
	SetFairsharePolicy(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The name of the scheduling policy.
	//
	// It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
	Name() *string
	SetName(val *string)
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// The tags that you apply to the scheduling policy to help you categorize and organize your resources.
	//
	// Each tag consists of a key and an optional value. For more information, see [Tagging AWS Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in *AWS General Reference* .
	//
	// These tags can be updated or removed using the [TagResource](https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html) and [UntagResource](https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html) API operations.
	Tags() awscdk.TagManager
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Batch::SchedulingPolicy`.

The `AWS::Batch::SchedulingPolicy` resource specifies the parameters for an AWS Batch scheduling policy. For more information, see [Scheduling Policies](https://docs.aws.amazon.com/batch/latest/userguide/scheduling_policies.html) in the ** .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSchedulingPolicy := awscdk.Aws_batch.NewCfnSchedulingPolicy(this, jsii.String("MyCfnSchedulingPolicy"), &CfnSchedulingPolicyProps{
	FairsharePolicy: &FairsharePolicyProperty{
		ComputeReservation: jsii.Number(123),
		ShareDecaySeconds: jsii.Number(123),
		ShareDistribution: []interface{}{
			&ShareAttributesProperty{
				ShareIdentifier: jsii.String("shareIdentifier"),
				WeightFactor: jsii.Number(123),
			},
		},
	},
	Name: jsii.String("name"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
})

func NewCfnSchedulingPolicy

func NewCfnSchedulingPolicy(scope constructs.Construct, id *string, props *CfnSchedulingPolicyProps) CfnSchedulingPolicy

Create a new `AWS::Batch::SchedulingPolicy`.

type CfnSchedulingPolicyProps

type CfnSchedulingPolicyProps struct {
	// The fair share policy of the scheduling policy.
	FairsharePolicy interface{} `field:"optional" json:"fairsharePolicy" yaml:"fairsharePolicy"`
	// The name of the scheduling policy.
	//
	// It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
	Name *string `field:"optional" json:"name" yaml:"name"`
	// The tags that you apply to the scheduling policy to help you categorize and organize your resources.
	//
	// Each tag consists of a key and an optional value. For more information, see [Tagging AWS Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in *AWS General Reference* .
	//
	// These tags can be updated or removed using the [TagResource](https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html) and [UntagResource](https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html) API operations.
	Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnSchedulingPolicy`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSchedulingPolicyProps := &CfnSchedulingPolicyProps{
	FairsharePolicy: &FairsharePolicyProperty{
		ComputeReservation: jsii.Number(123),
		ShareDecaySeconds: jsii.Number(123),
		ShareDistribution: []interface{}{
			&ShareAttributesProperty{
				ShareIdentifier: jsii.String("shareIdentifier"),
				WeightFactor: jsii.Number(123),
			},
		},
	},
	Name: jsii.String("name"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

type CfnSchedulingPolicy_FairsharePolicyProperty

type CfnSchedulingPolicy_FairsharePolicyProperty struct {
	// A value used to reserve some of the available maximum vCPU for fair share identifiers that aren't already used.
	//
	// The reserved ratio is `( *computeReservation* /100)^ *ActiveFairShares*` where `*ActiveFairShares*` is the number of active fair share identifiers.
	//
	// For example, a `computeReservation` value of 50 indicates that AWS Batch reserves 50% of the maximum available vCPU if there's only one fair share identifier. It reserves 25% if there are two fair share identifiers. It reserves 12.5% if there are three fair share identifiers. A `computeReservation` value of 25 indicates that AWS Batch should reserve 25% of the maximum available vCPU if there's only one fair share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three fair share identifiers.
	//
	// The minimum value is 0 and the maximum value is 99.
	ComputeReservation *float64 `field:"optional" json:"computeReservation" yaml:"computeReservation"`
	// The amount of time (in seconds) to use to calculate a fair share percentage for each fair share identifier in use.
	//
	// A value of zero (0) indicates that only current usage is measured. The decay allows for more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is 604800 (1 week).
	ShareDecaySeconds *float64 `field:"optional" json:"shareDecaySeconds" yaml:"shareDecaySeconds"`
	// An array of `SharedIdentifier` objects that contain the weights for the fair share identifiers for the fair share policy.
	//
	// Fair share identifiers that aren't included have a default weight of `1.0` .
	ShareDistribution interface{} `field:"optional" json:"shareDistribution" yaml:"shareDistribution"`
}

The fair share policy for a scheduling policy.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fairsharePolicyProperty := &FairsharePolicyProperty{
	ComputeReservation: jsii.Number(123),
	ShareDecaySeconds: jsii.Number(123),
	ShareDistribution: []interface{}{
		&ShareAttributesProperty{
			ShareIdentifier: jsii.String("shareIdentifier"),
			WeightFactor: jsii.Number(123),
		},
	},
}

type CfnSchedulingPolicy_ShareAttributesProperty

type CfnSchedulingPolicy_ShareAttributesProperty struct {
	// A fair share identifier or fair share identifier prefix.
	//
	// If the string ends with an asterisk (*), this entry specifies the weight factor to use for fair share identifiers that start with that prefix. The list of fair share identifiers in a fair share policy can't overlap. For example, you can't have one that specifies a `shareIdentifier` of `UserA*` and another that specifies a `shareIdentifier` of `UserA-1` .
	//
	// There can be no more than 500 fair share identifiers active in a job queue.
	//
	// The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
	ShareIdentifier *string `field:"optional" json:"shareIdentifier" yaml:"shareIdentifier"`
	// The weight factor for the fair share identifier.
	//
	// The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
	//
	// The smallest supported value is 0.0001, and the largest supported value is 999.9999.
	WeightFactor *float64 `field:"optional" json:"weightFactor" yaml:"weightFactor"`
}

Specifies the weights for the fair share identifiers for the fair share policy.

Fair share identifiers that aren't included have a default weight of `1.0` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

shareAttributesProperty := &ShareAttributesProperty{
	ShareIdentifier: jsii.String("shareIdentifier"),
	WeightFactor: jsii.Number(123),
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL