# PipeTargetBatchJobParametersProperty

Struct · External

The parameters for using an AWS Batch job as a target.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const pipeTargetBatchJobParametersProperty: pipes.CfnPipe.PipeTargetBatchJobParametersProperty = {
  jobDefinition: 'jobDefinition',
  jobName: 'jobName',

  // the properties below are optional
  arrayProperties: {
    size: 123,
  },
  containerOverrides: {
    command: ['command'],
    environment: [{
      name: 'name',
      value: 'value',
    }],
    instanceType: 'instanceType',
    resourceRequirements: [{
      type: 'type',
      value: 'value',
    }],
  },
  dependsOn: [{
    jobId: 'jobId',
    type: 'type',
  }],
  parameters: {
    parametersKey: 'parameters',
  },
  retryStrategy: {
    attempts: 123,
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pipes as pipes

pipe_target_batch_job_parameters_property = pipes.CfnPipe.PipeTargetBatchJobParametersProperty(
    job_definition="jobDefinition",
    job_name="jobName",

    # the properties below are optional
    array_properties=pipes.CfnPipe.BatchArrayPropertiesProperty(
        size=123
    ),
    container_overrides=pipes.CfnPipe.BatchContainerOverridesProperty(
        command=["command"],
        environment=[pipes.CfnPipe.BatchEnvironmentVariableProperty(
            name="name",
            value="value"
        )],
        instance_type="instanceType",
        resource_requirements=[pipes.CfnPipe.BatchResourceRequirementProperty(
            type="type",
            value="value"
        )]
    ),
    depends_on=[pipes.CfnPipe.BatchJobDependencyProperty(
        job_id="jobId",
        type="type"
    )],
    parameters={
        "parameters_key": "parameters"
    },
    retry_strategy=pipes.CfnPipe.BatchRetryStrategyProperty(
        attempts=123
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pipes.*;

PipeTargetBatchJobParametersProperty pipeTargetBatchJobParametersProperty = PipeTargetBatchJobParametersProperty.builder()
        .jobDefinition("jobDefinition")
        .jobName("jobName")

        // the properties below are optional
        .arrayProperties(BatchArrayPropertiesProperty.builder()
                .size(123)
                .build())
        .containerOverrides(BatchContainerOverridesProperty.builder()
                .command(List.of("command"))
                .environment(List.of(BatchEnvironmentVariableProperty.builder()
                        .name("name")
                        .value("value")
                        .build()))
                .instanceType("instanceType")
                .resourceRequirements(List.of(BatchResourceRequirementProperty.builder()
                        .type("type")
                        .value("value")
                        .build()))
                .build())
        .dependsOn(List.of(BatchJobDependencyProperty.builder()
                .jobId("jobId")
                .type("type")
                .build()))
        .parameters(Map.of(
                "parametersKey", "parameters"))
        .retryStrategy(BatchRetryStrategyProperty.builder()
                .attempts(123)
                .build())
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pipes;

var pipeTargetBatchJobParametersProperty = new PipeTargetBatchJobParametersProperty {
    JobDefinition = "jobDefinition",
    JobName = "jobName",

    // the properties below are optional
    ArrayProperties = new BatchArrayPropertiesProperty {
        Size = 123
    },
    ContainerOverrides = new BatchContainerOverridesProperty {
        Command = new [] { "command" },
        Environment = new [] { new BatchEnvironmentVariableProperty {
            Name = "name",
            Value = "value"
        } },
        InstanceType = "instanceType",
        ResourceRequirements = new [] { new BatchResourceRequirementProperty {
            Type = "type",
            Value = "value"
        } }
    },
    DependsOn = new [] { new BatchJobDependencyProperty {
        JobId = "jobId",
        Type = "type"
    } },
    Parameters = new Dictionary<string, string> {
        { "parametersKey", "parameters" }
    },
    RetryStrategy = new BatchRetryStrategyProperty {
        Attempts = 123
    }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"

pipeTargetBatchJobParametersProperty := &PipeTargetBatchJobParametersProperty{
	JobDefinition: jsii.String("jobDefinition"),
	JobName: jsii.String("jobName"),

	// the properties below are optional
	ArrayProperties: &BatchArrayPropertiesProperty{
		Size: jsii.Number(123),
	},
	ContainerOverrides: &BatchContainerOverridesProperty{
		Command: []*string{
			jsii.String("command"),
		},
		Environment: []interface{}{
			&BatchEnvironmentVariableProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
		InstanceType: jsii.String("instanceType"),
		ResourceRequirements: []interface{}{
			&BatchResourceRequirementProperty{
				Type: jsii.String("type"),
				Value: jsii.String("value"),
			},
		},
	},
	DependsOn: []interface{}{
		&BatchJobDependencyProperty{
			JobId: jsii.String("jobId"),
			Type: jsii.String("type"),
		},
	},
	Parameters: map[string]*string{
		"parametersKey": jsii.String("parameters"),
	},
	RetryStrategy: &BatchRetryStrategyProperty{
		Attempts: jsii.Number(123),
	},
}
```

## Properties

- `arrayProperties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPipe.BatchArrayPropertiesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipe.BatchArrayPropertiesProperty.html) — The array properties for the submitted job, such as the size of the array.

  The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.

- `containerOverrides`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPipe.BatchContainerOverridesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipe.BatchContainerOverridesProperty.html) — The overrides that are sent to a container.

- `dependsOn`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPipe.BatchJobDependencyProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipe.BatchJobDependencyProperty.html)[] — A list of dependencies for the job.

  A job can depend upon a maximum of 20 jobs. You can specify a `SEQUENTIAL` type dependency without specifying a job ID for array jobs so that each child array job completes sequentially, starting at index 0. You can also specify an `N_TO_N` type dependency with a job ID for array jobs. In that case, each index child of this job must wait for the corresponding index child of each dependency to complete before it can begin.

- `jobDefinition`: string (required) — The job definition used by this job.

  This value can be one of `name` , `name:revision` , or the Amazon Resource Name (ARN) for the job definition. If name is specified without a revision then the latest active revision is used.

- `jobName`: string (required) — The name of the job.

  It can be up to 128 letters long. The first character must be alphanumeric, can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

- `parameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job definition.

  Parameters are specified as a key and value pair mapping. Parameters included here override any corresponding parameter defaults from the job definition.

- `retryStrategy`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPipe.BatchRetryStrategyProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipe.BatchRetryStrategyProperty.html) — The retry strategy to use for failed jobs.

  When a retry strategy is specified here, it overrides the retry strategy defined in the job definition.
