Experimental
@aws-cdk/aws-pipes-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
TargetConfig Struct
Target config properties.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as pipes_alpha from '@aws-cdk/aws-pipes-alpha';
const targetConfig: pipes_alpha.TargetConfig = {
targetParameters: {
batchJobParameters: {
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,
},
},
cloudWatchLogsParameters: {
logStreamName: 'logStreamName',
timestamp: 'timestamp',
},
ecsTaskParameters: {
taskDefinitionArn: 'taskDefinitionArn',
// the properties below are optional
capacityProviderStrategy: [{
capacityProvider: 'capacityProvider',
// the properties below are optional
base: 123,
weight: 123,
}],
enableEcsManagedTags: false,
enableExecuteCommand: false,
group: 'group',
launchType: 'launchType',
networkConfiguration: {
awsvpcConfiguration: {
subnets: ['subnets'],
// the properties below are optional
assignPublicIp: 'assignPublicIp',
securityGroups: ['securityGroups'],
},
},
overrides: {
containerOverrides: [{
command: ['command'],
cpu: 123,
environment: [{
name: 'name',
value: 'value',
}],
environmentFiles: [{
type: 'type',
value: 'value',
}],
memory: 123,
memoryReservation: 123,
name: 'name',
resourceRequirements: [{
type: 'type',
value: 'value',
}],
}],
cpu: 'cpu',
ephemeralStorage: {
sizeInGiB: 123,
},
executionRoleArn: 'executionRoleArn',
inferenceAcceleratorOverrides: [{
deviceName: 'deviceName',
deviceType: 'deviceType',
}],
memory: 'memory',
taskRoleArn: 'taskRoleArn',
},
placementConstraints: [{
expression: 'expression',
type: 'type',
}],
placementStrategy: [{
field: 'field',
type: 'type',
}],
platformVersion: 'platformVersion',
propagateTags: 'propagateTags',
referenceId: 'referenceId',
tags: [{
key: 'key',
value: 'value',
}],
taskCount: 123,
},
eventBridgeEventBusParameters: {
detailType: 'detailType',
endpointId: 'endpointId',
resources: ['resources'],
source: 'source',
time: 'time',
},
httpParameters: {
headerParameters: {
headerParametersKey: 'headerParameters',
},
pathParameterValues: ['pathParameterValues'],
queryStringParameters: {
queryStringParametersKey: 'queryStringParameters',
},
},
inputTemplate: 'inputTemplate',
kinesisStreamParameters: {
partitionKey: 'partitionKey',
},
lambdaFunctionParameters: {
invocationType: 'invocationType',
},
redshiftDataParameters: {
database: 'database',
sqls: ['sqls'],
// the properties below are optional
dbUser: 'dbUser',
secretManagerArn: 'secretManagerArn',
statementName: 'statementName',
withEvent: false,
},
sageMakerPipelineParameters: {
pipelineParameterList: [{
name: 'name',
value: 'value',
}],
},
sqsQueueParameters: {
messageDeduplicationId: 'messageDeduplicationId',
messageGroupId: 'messageGroupId',
},
stepFunctionStateMachineParameters: {
invocationType: 'invocationType',
},
timestreamParameters: {
dimensionMappings: [{
dimensionName: 'dimensionName',
dimensionValue: 'dimensionValue',
dimensionValueType: 'dimensionValueType',
}],
timeValue: 'timeValue',
versionValue: 'versionValue',
// the properties below are optional
epochTimeUnit: 'epochTimeUnit',
multiMeasureMappings: [{
multiMeasureAttributeMappings: [{
measureValue: 'measureValue',
measureValueType: 'measureValueType',
multiMeasureAttributeName: 'multiMeasureAttributeName',
}],
multiMeasureName: 'multiMeasureName',
}],
singleMeasureMappings: [{
measureName: 'measureName',
measureValue: 'measureValue',
measureValueType: 'measureValueType',
}],
timeFieldType: 'timeFieldType',
timestampFormat: 'timestampFormat',
},
},
};
python
from aws_cdk.aws_pipes.PipeTargetParametersProperty import PipeTargetParametersProperty
from aws_cdk.aws_pipes.PipeTargetBatchJobParametersProperty import PipeTargetBatchJobParametersProperty
from aws_cdk.aws_pipes.BatchArrayPropertiesProperty import BatchArrayPropertiesProperty
from aws_cdk.aws_pipes.BatchContainerOverridesProperty import BatchContainerOverridesProperty
from aws_cdk.aws_pipes.BatchEnvironmentVariableProperty import BatchEnvironmentVariableProperty
from aws_cdk.aws_pipes.BatchResourceRequirementProperty import BatchResourceRequirementProperty
from aws_cdk.aws_pipes.BatchJobDependencyProperty import BatchJobDependencyProperty
from aws_cdk.aws_pipes.BatchRetryStrategyProperty import BatchRetryStrategyProperty
from aws_cdk.aws_pipes.PipeTargetCloudWatchLogsParametersProperty import PipeTargetCloudWatchLogsParametersProperty
from aws_cdk.aws_pipes.PipeTargetEcsTaskParametersProperty import PipeTargetEcsTaskParametersProperty
from aws_cdk.aws_pipes.CapacityProviderStrategyItemProperty import CapacityProviderStrategyItemProperty
from aws_cdk.aws_pipes.NetworkConfigurationProperty import NetworkConfigurationProperty
from aws_cdk.aws_pipes.AwsVpcConfigurationProperty import AwsVpcConfigurationProperty
from aws_cdk.aws_pipes.EcsTaskOverrideProperty import EcsTaskOverrideProperty
from aws_cdk.aws_pipes.EcsContainerOverrideProperty import EcsContainerOverrideProperty
from aws_cdk.aws_pipes.EcsEnvironmentVariableProperty import EcsEnvironmentVariableProperty
from aws_cdk.aws_pipes.EcsEnvironmentFileProperty import EcsEnvironmentFileProperty
from aws_cdk.aws_pipes.EcsResourceRequirementProperty import EcsResourceRequirementProperty
from aws_cdk.aws_pipes.EcsEphemeralStorageProperty import EcsEphemeralStorageProperty
from aws_cdk.aws_pipes.EcsInferenceAcceleratorOverrideProperty import EcsInferenceAcceleratorOverrideProperty
from aws_cdk.aws_pipes.PlacementConstraintProperty import PlacementConstraintProperty
from aws_cdk.aws_pipes.PlacementStrategyProperty import PlacementStrategyProperty
from aws_cdk import CfnTag
from aws_cdk.aws_pipes.PipeTargetEventBridgeEventBusParametersProperty import PipeTargetEventBridgeEventBusParametersProperty
from aws_cdk.aws_pipes.PipeTargetHttpParametersProperty import PipeTargetHttpParametersProperty
from aws_cdk.aws_pipes.PipeTargetKinesisStreamParametersProperty import PipeTargetKinesisStreamParametersProperty
from aws_cdk.aws_pipes.PipeTargetLambdaFunctionParametersProperty import PipeTargetLambdaFunctionParametersProperty
from aws_cdk.aws_pipes.PipeTargetRedshiftDataParametersProperty import PipeTargetRedshiftDataParametersProperty
from aws_cdk.aws_pipes.PipeTargetSageMakerPipelineParametersProperty import PipeTargetSageMakerPipelineParametersProperty
from aws_cdk.aws_pipes.SageMakerPipelineParameterProperty import SageMakerPipelineParameterProperty
from aws_cdk.aws_pipes.PipeTargetSqsQueueParametersProperty import PipeTargetSqsQueueParametersProperty
from aws_cdk.aws_pipes.PipeTargetStateMachineParametersProperty import PipeTargetStateMachineParametersProperty
from aws_cdk.aws_pipes.PipeTargetTimestreamParametersProperty import PipeTargetTimestreamParametersProperty
from aws_cdk.aws_pipes.DimensionMappingProperty import DimensionMappingProperty
from aws_cdk.aws_pipes.MultiMeasureMappingProperty import MultiMeasureMappingProperty
from aws_cdk.aws_pipes.MultiMeasureAttributeMappingProperty import MultiMeasureAttributeMappingProperty
from aws_cdk.aws_pipes.SingleMeasureMappingProperty import SingleMeasureMappingProperty
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_pipes_alpha as pipes_alpha
target_config = pipes_alpha.TargetConfig(
target_parameters=PipeTargetParametersProperty(
batch_job_parameters=PipeTargetBatchJobParametersProperty(
job_definition="jobDefinition",
job_name="jobName",
# the properties below are optional
array_properties=BatchArrayPropertiesProperty(
size=123
),
container_overrides=BatchContainerOverridesProperty(
command=["command"],
environment=[BatchEnvironmentVariableProperty(
name="name",
value="value"
)],
instance_type="instanceType",
resource_requirements=[BatchResourceRequirementProperty(
type="type",
value="value"
)]
),
depends_on=[BatchJobDependencyProperty(
job_id="jobId",
type="type"
)],
parameters={
"parameters_key": "parameters"
},
retry_strategy=BatchRetryStrategyProperty(
attempts=123
)
),
cloud_watch_logs_parameters=PipeTargetCloudWatchLogsParametersProperty(
log_stream_name="logStreamName",
timestamp="timestamp"
),
ecs_task_parameters=PipeTargetEcsTaskParametersProperty(
task_definition_arn="taskDefinitionArn",
# the properties below are optional
capacity_provider_strategy=[CapacityProviderStrategyItemProperty(
capacity_provider="capacityProvider",
# the properties below are optional
base=123,
weight=123
)],
enable_ecs_managed_tags=False,
enable_execute_command=False,
group="group",
launch_type="launchType",
network_configuration=NetworkConfigurationProperty(
awsvpc_configuration=AwsVpcConfigurationProperty(
subnets=["subnets"],
# the properties below are optional
assign_public_ip="assignPublicIp",
security_groups=["securityGroups"]
)
),
overrides=EcsTaskOverrideProperty(
container_overrides=[EcsContainerOverrideProperty(
command=["command"],
cpu=123,
environment=[EcsEnvironmentVariableProperty(
name="name",
value="value"
)],
environment_files=[EcsEnvironmentFileProperty(
type="type",
value="value"
)],
memory=123,
memory_reservation=123,
name="name",
resource_requirements=[EcsResourceRequirementProperty(
type="type",
value="value"
)]
)],
cpu="cpu",
ephemeral_storage=EcsEphemeralStorageProperty(
size_in_gi_b=123
),
execution_role_arn="executionRoleArn",
inference_accelerator_overrides=[EcsInferenceAcceleratorOverrideProperty(
device_name="deviceName",
device_type="deviceType"
)],
memory="memory",
task_role_arn="taskRoleArn"
),
placement_constraints=[PlacementConstraintProperty(
expression="expression",
type="type"
)],
placement_strategy=[PlacementStrategyProperty(
field="field",
type="type"
)],
platform_version="platformVersion",
propagate_tags="propagateTags",
reference_id="referenceId",
tags=[CfnTag(
key="key",
value="value"
)],
task_count=123
),
event_bridge_event_bus_parameters=PipeTargetEventBridgeEventBusParametersProperty(
detail_type="detailType",
endpoint_id="endpointId",
resources=["resources"],
source="source",
time="time"
),
http_parameters=PipeTargetHttpParametersProperty(
header_parameters={
"header_parameters_key": "headerParameters"
},
path_parameter_values=["pathParameterValues"],
query_string_parameters={
"query_string_parameters_key": "queryStringParameters"
}
),
input_template="inputTemplate",
kinesis_stream_parameters=PipeTargetKinesisStreamParametersProperty(
partition_key="partitionKey"
),
lambda_function_parameters=PipeTargetLambdaFunctionParametersProperty(
invocation_type="invocationType"
),
redshift_data_parameters=PipeTargetRedshiftDataParametersProperty(
database="database",
sqls=["sqls"],
# the properties below are optional
db_user="dbUser",
secret_manager_arn="secretManagerArn",
statement_name="statementName",
with_event=False
),
sage_maker_pipeline_parameters=PipeTargetSageMakerPipelineParametersProperty(
pipeline_parameter_list=[SageMakerPipelineParameterProperty(
name="name",
value="value"
)]
),
sqs_queue_parameters=PipeTargetSqsQueueParametersProperty(
message_deduplication_id="messageDeduplicationId",
message_group_id="messageGroupId"
),
step_function_state_machine_parameters=PipeTargetStateMachineParametersProperty(
invocation_type="invocationType"
),
timestream_parameters=PipeTargetTimestreamParametersProperty(
dimension_mappings=[DimensionMappingProperty(
dimension_name="dimensionName",
dimension_value="dimensionValue",
dimension_value_type="dimensionValueType"
)],
time_value="timeValue",
version_value="versionValue",
# the properties below are optional
epoch_time_unit="epochTimeUnit",
multi_measure_mappings=[MultiMeasureMappingProperty(
multi_measure_attribute_mappings=[MultiMeasureAttributeMappingProperty(
measure_value="measureValue",
measure_value_type="measureValueType",
multi_measure_attribute_name="multiMeasureAttributeName"
)],
multi_measure_name="multiMeasureName"
)],
single_measure_mappings=[SingleMeasureMappingProperty(
measure_name="measureName",
measure_value="measureValue",
measure_value_type="measureValueType"
)],
time_field_type="timeFieldType",
timestamp_format="timestampFormat"
)
)
)
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.alpha.*;
TargetConfig targetConfig = TargetConfig.builder()
.targetParameters(PipeTargetParametersProperty.builder()
.batchJobParameters(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())
.cloudWatchLogsParameters(PipeTargetCloudWatchLogsParametersProperty.builder()
.logStreamName("logStreamName")
.timestamp("timestamp")
.build())
.ecsTaskParameters(PipeTargetEcsTaskParametersProperty.builder()
.taskDefinitionArn("taskDefinitionArn")
// the properties below are optional
.capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()
.capacityProvider("capacityProvider")
// the properties below are optional
.base(123)
.weight(123)
.build()))
.enableEcsManagedTags(false)
.enableExecuteCommand(false)
.group("group")
.launchType("launchType")
.networkConfiguration(NetworkConfigurationProperty.builder()
.awsvpcConfiguration(AwsVpcConfigurationProperty.builder()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build())
.build())
.overrides(EcsTaskOverrideProperty.builder()
.containerOverrides(List.of(EcsContainerOverrideProperty.builder()
.command(List.of("command"))
.cpu(123)
.environment(List.of(EcsEnvironmentVariableProperty.builder()
.name("name")
.value("value")
.build()))
.environmentFiles(List.of(EcsEnvironmentFileProperty.builder()
.type("type")
.value("value")
.build()))
.memory(123)
.memoryReservation(123)
.name("name")
.resourceRequirements(List.of(EcsResourceRequirementProperty.builder()
.type("type")
.value("value")
.build()))
.build()))
.cpu("cpu")
.ephemeralStorage(EcsEphemeralStorageProperty.builder()
.sizeInGiB(123)
.build())
.executionRoleArn("executionRoleArn")
.inferenceAcceleratorOverrides(List.of(EcsInferenceAcceleratorOverrideProperty.builder()
.deviceName("deviceName")
.deviceType("deviceType")
.build()))
.memory("memory")
.taskRoleArn("taskRoleArn")
.build())
.placementConstraints(List.of(PlacementConstraintProperty.builder()
.expression("expression")
.type("type")
.build()))
.placementStrategy(List.of(PlacementStrategyProperty.builder()
.field("field")
.type("type")
.build()))
.platformVersion("platformVersion")
.propagateTags("propagateTags")
.referenceId("referenceId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskCount(123)
.build())
.eventBridgeEventBusParameters(PipeTargetEventBridgeEventBusParametersProperty.builder()
.detailType("detailType")
.endpointId("endpointId")
.resources(List.of("resources"))
.source("source")
.time("time")
.build())
.httpParameters(PipeTargetHttpParametersProperty.builder()
.headerParameters(Map.of(
"headerParametersKey", "headerParameters"))
.pathParameterValues(List.of("pathParameterValues"))
.queryStringParameters(Map.of(
"queryStringParametersKey", "queryStringParameters"))
.build())
.inputTemplate("inputTemplate")
.kinesisStreamParameters(PipeTargetKinesisStreamParametersProperty.builder()
.partitionKey("partitionKey")
.build())
.lambdaFunctionParameters(PipeTargetLambdaFunctionParametersProperty.builder()
.invocationType("invocationType")
.build())
.redshiftDataParameters(PipeTargetRedshiftDataParametersProperty.builder()
.database("database")
.sqls(List.of("sqls"))
// the properties below are optional
.dbUser("dbUser")
.secretManagerArn("secretManagerArn")
.statementName("statementName")
.withEvent(false)
.build())
.sageMakerPipelineParameters(PipeTargetSageMakerPipelineParametersProperty.builder()
.pipelineParameterList(List.of(SageMakerPipelineParameterProperty.builder()
.name("name")
.value("value")
.build()))
.build())
.sqsQueueParameters(PipeTargetSqsQueueParametersProperty.builder()
.messageDeduplicationId("messageDeduplicationId")
.messageGroupId("messageGroupId")
.build())
.stepFunctionStateMachineParameters(PipeTargetStateMachineParametersProperty.builder()
.invocationType("invocationType")
.build())
.timestreamParameters(PipeTargetTimestreamParametersProperty.builder()
.dimensionMappings(List.of(DimensionMappingProperty.builder()
.dimensionName("dimensionName")
.dimensionValue("dimensionValue")
.dimensionValueType("dimensionValueType")
.build()))
.timeValue("timeValue")
.versionValue("versionValue")
// the properties below are optional
.epochTimeUnit("epochTimeUnit")
.multiMeasureMappings(List.of(MultiMeasureMappingProperty.builder()
.multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder()
.measureValue("measureValue")
.measureValueType("measureValueType")
.multiMeasureAttributeName("multiMeasureAttributeName")
.build()))
.multiMeasureName("multiMeasureName")
.build()))
.singleMeasureMappings(List.of(SingleMeasureMappingProperty.builder()
.measureName("measureName")
.measureValue("measureValue")
.measureValueType("measureValueType")
.build()))
.timeFieldType("timeFieldType")
.timestampFormat("timestampFormat")
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Pipes.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pipes.Alpha;
var targetConfig = new TargetConfig {
TargetParameters = new PipeTargetParametersProperty {
BatchJobParameters = 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
}
},
CloudWatchLogsParameters = new PipeTargetCloudWatchLogsParametersProperty {
LogStreamName = "logStreamName",
Timestamp = "timestamp"
},
EcsTaskParameters = new PipeTargetEcsTaskParametersProperty {
TaskDefinitionArn = "taskDefinitionArn",
// the properties below are optional
CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {
CapacityProvider = "capacityProvider",
// the properties below are optional
Base = 123,
Weight = 123
} },
EnableEcsManagedTags = false,
EnableExecuteCommand = false,
Group = "group",
LaunchType = "launchType",
NetworkConfiguration = new NetworkConfigurationProperty {
AwsvpcConfiguration = new AwsVpcConfigurationProperty {
Subnets = new [] { "subnets" },
// the properties below are optional
AssignPublicIp = "assignPublicIp",
SecurityGroups = new [] { "securityGroups" }
}
},
Overrides = new EcsTaskOverrideProperty {
ContainerOverrides = new [] { new EcsContainerOverrideProperty {
Command = new [] { "command" },
Cpu = 123,
Environment = new [] { new EcsEnvironmentVariableProperty {
Name = "name",
Value = "value"
} },
EnvironmentFiles = new [] { new EcsEnvironmentFileProperty {
Type = "type",
Value = "value"
} },
Memory = 123,
MemoryReservation = 123,
Name = "name",
ResourceRequirements = new [] { new EcsResourceRequirementProperty {
Type = "type",
Value = "value"
} }
} },
Cpu = "cpu",
EphemeralStorage = new EcsEphemeralStorageProperty {
SizeInGiB = 123
},
ExecutionRoleArn = "executionRoleArn",
InferenceAcceleratorOverrides = new [] { new EcsInferenceAcceleratorOverrideProperty {
DeviceName = "deviceName",
DeviceType = "deviceType"
} },
Memory = "memory",
TaskRoleArn = "taskRoleArn"
},
PlacementConstraints = new [] { new PlacementConstraintProperty {
Expression = "expression",
Type = "type"
} },
PlacementStrategy = new [] { new PlacementStrategyProperty {
Field = "field",
Type = "type"
} },
PlatformVersion = "platformVersion",
PropagateTags = "propagateTags",
ReferenceId = "referenceId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TaskCount = 123
},
EventBridgeEventBusParameters = new PipeTargetEventBridgeEventBusParametersProperty {
DetailType = "detailType",
EndpointId = "endpointId",
Resources = new [] { "resources" },
Source = "source",
Time = "time"
},
HttpParameters = new PipeTargetHttpParametersProperty {
HeaderParameters = new Dictionary<string, string> {
{ "headerParametersKey", "headerParameters" }
},
PathParameterValues = new [] { "pathParameterValues" },
QueryStringParameters = new Dictionary<string, string> {
{ "queryStringParametersKey", "queryStringParameters" }
}
},
InputTemplate = "inputTemplate",
KinesisStreamParameters = new PipeTargetKinesisStreamParametersProperty {
PartitionKey = "partitionKey"
},
LambdaFunctionParameters = new PipeTargetLambdaFunctionParametersProperty {
InvocationType = "invocationType"
},
RedshiftDataParameters = new PipeTargetRedshiftDataParametersProperty {
Database = "database",
Sqls = new [] { "sqls" },
// the properties below are optional
DbUser = "dbUser",
SecretManagerArn = "secretManagerArn",
StatementName = "statementName",
WithEvent = false
},
SageMakerPipelineParameters = new PipeTargetSageMakerPipelineParametersProperty {
PipelineParameterList = new [] { new SageMakerPipelineParameterProperty {
Name = "name",
Value = "value"
} }
},
SqsQueueParameters = new PipeTargetSqsQueueParametersProperty {
MessageDeduplicationId = "messageDeduplicationId",
MessageGroupId = "messageGroupId"
},
StepFunctionStateMachineParameters = new PipeTargetStateMachineParametersProperty {
InvocationType = "invocationType"
},
TimestreamParameters = new PipeTargetTimestreamParametersProperty {
DimensionMappings = new [] { new DimensionMappingProperty {
DimensionName = "dimensionName",
DimensionValue = "dimensionValue",
DimensionValueType = "dimensionValueType"
} },
TimeValue = "timeValue",
VersionValue = "versionValue",
// the properties below are optional
EpochTimeUnit = "epochTimeUnit",
MultiMeasureMappings = new [] { new MultiMeasureMappingProperty {
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValue = "measureValue",
MeasureValueType = "measureValueType",
MultiMeasureAttributeName = "multiMeasureAttributeName"
} },
MultiMeasureName = "multiMeasureName"
} },
SingleMeasureMappings = new [] { new SingleMeasureMappingProperty {
MeasureName = "measureName",
MeasureValue = "measureValue",
MeasureValueType = "measureValueType"
} },
TimeFieldType = "timeFieldType",
TimestampFormat = "timestampFormat"
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkpipesalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import pipes_alpha "github.com/aws/aws-cdk-go/awscdkpipesalpha"
targetConfig := &TargetConfig{
TargetParameters: &PipeTargetParametersProperty{
BatchJobParameters: &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),
},
},
CloudWatchLogsParameters: &PipeTargetCloudWatchLogsParametersProperty{
LogStreamName: jsii.String("logStreamName"),
Timestamp: jsii.String("timestamp"),
},
EcsTaskParameters: &PipeTargetEcsTaskParametersProperty{
TaskDefinitionArn: jsii.String("taskDefinitionArn"),
// the properties below are optional
CapacityProviderStrategy: []interface{}{
&CapacityProviderStrategyItemProperty{
CapacityProvider: jsii.String("capacityProvider"),
// the properties below are optional
Base: jsii.Number(123),
Weight: jsii.Number(123),
},
},
EnableEcsManagedTags: jsii.Boolean(false),
EnableExecuteCommand: jsii.Boolean(false),
Group: jsii.String("group"),
LaunchType: jsii.String("launchType"),
NetworkConfiguration: &NetworkConfigurationProperty{
AwsvpcConfiguration: &AwsVpcConfigurationProperty{
Subnets: []*string{
jsii.String("subnets"),
},
// the properties below are optional
AssignPublicIp: jsii.String("assignPublicIp"),
SecurityGroups: []*string{
jsii.String("securityGroups"),
},
},
},
Overrides: &EcsTaskOverrideProperty{
ContainerOverrides: []interface{}{
&EcsContainerOverrideProperty{
Command: []*string{
jsii.String("command"),
},
Cpu: jsii.Number(123),
Environment: []interface{}{
&EcsEnvironmentVariableProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
EnvironmentFiles: []interface{}{
&EcsEnvironmentFileProperty{
Type: jsii.String("type"),
Value: jsii.String("value"),
},
},
Memory: jsii.Number(123),
MemoryReservation: jsii.Number(123),
Name: jsii.String("name"),
ResourceRequirements: []interface{}{
&EcsResourceRequirementProperty{
Type: jsii.String("type"),
Value: jsii.String("value"),
},
},
},
},
Cpu: jsii.String("cpu"),
EphemeralStorage: &EcsEphemeralStorageProperty{
SizeInGiB: jsii.Number(123),
},
ExecutionRoleArn: jsii.String("executionRoleArn"),
InferenceAcceleratorOverrides: []interface{}{
&EcsInferenceAcceleratorOverrideProperty{
DeviceName: jsii.String("deviceName"),
DeviceType: jsii.String("deviceType"),
},
},
Memory: jsii.String("memory"),
TaskRoleArn: jsii.String("taskRoleArn"),
},
PlacementConstraints: []interface{}{
&PlacementConstraintProperty{
Expression: jsii.String("expression"),
Type: jsii.String("type"),
},
},
PlacementStrategy: []interface{}{
&PlacementStrategyProperty{
Field: jsii.String("field"),
Type: jsii.String("type"),
},
},
PlatformVersion: jsii.String("platformVersion"),
PropagateTags: jsii.String("propagateTags"),
ReferenceId: jsii.String("referenceId"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
TaskCount: jsii.Number(123),
},
EventBridgeEventBusParameters: &PipeTargetEventBridgeEventBusParametersProperty{
DetailType: jsii.String("detailType"),
EndpointId: jsii.String("endpointId"),
Resources: []*string{
jsii.String("resources"),
},
Source: jsii.String("source"),
Time: jsii.String("time"),
},
HttpParameters: &PipeTargetHttpParametersProperty{
HeaderParameters: map[string]*string{
"headerParametersKey": jsii.String("headerParameters"),
},
PathParameterValues: []*string{
jsii.String("pathParameterValues"),
},
QueryStringParameters: map[string]*string{
"queryStringParametersKey": jsii.String("queryStringParameters"),
},
},
InputTemplate: jsii.String("inputTemplate"),
KinesisStreamParameters: &PipeTargetKinesisStreamParametersProperty{
PartitionKey: jsii.String("partitionKey"),
},
LambdaFunctionParameters: &PipeTargetLambdaFunctionParametersProperty{
InvocationType: jsii.String("invocationType"),
},
RedshiftDataParameters: &PipeTargetRedshiftDataParametersProperty{
Database: jsii.String("database"),
Sqls: []*string{
jsii.String("sqls"),
},
// the properties below are optional
DbUser: jsii.String("dbUser"),
SecretManagerArn: jsii.String("secretManagerArn"),
StatementName: jsii.String("statementName"),
WithEvent: jsii.Boolean(false),
},
SageMakerPipelineParameters: &PipeTargetSageMakerPipelineParametersProperty{
PipelineParameterList: []interface{}{
&SageMakerPipelineParameterProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
},
SqsQueueParameters: &PipeTargetSqsQueueParametersProperty{
MessageDeduplicationId: jsii.String("messageDeduplicationId"),
MessageGroupId: jsii.String("messageGroupId"),
},
StepFunctionStateMachineParameters: &PipeTargetStateMachineParametersProperty{
InvocationType: jsii.String("invocationType"),
},
TimestreamParameters: &PipeTargetTimestreamParametersProperty{
DimensionMappings: []interface{}{
&DimensionMappingProperty{
DimensionName: jsii.String("dimensionName"),
DimensionValue: jsii.String("dimensionValue"),
DimensionValueType: jsii.String("dimensionValueType"),
},
},
TimeValue: jsii.String("timeValue"),
VersionValue: jsii.String("versionValue"),
// the properties below are optional
EpochTimeUnit: jsii.String("epochTimeUnit"),
MultiMeasureMappings: []interface{}{
&MultiMeasureMappingProperty{
MultiMeasureAttributeMappings: []interface{}{
&MultiMeasureAttributeMappingProperty{
MeasureValue: jsii.String("measureValue"),
MeasureValueType: jsii.String("measureValueType"),
MultiMeasureAttributeName: jsii.String("multiMeasureAttributeName"),
},
},
MultiMeasureName: jsii.String("multiMeasureName"),
},
},
SingleMeasureMappings: []interface{}{
&SingleMeasureMappingProperty{
MeasureName: jsii.String("measureName"),
MeasureValue: jsii.String("measureValue"),
MeasureValueType: jsii.String("measureValueType"),
},
},
TimeFieldType: jsii.String("timeFieldType"),
TimestampFormat: jsii.String("timestampFormat"),
},
},
}
Properties
targetParametersCfnPipe.PipeTargetParametersPropertytarget_parametersPipeTargetParametersPropertytargetParametersPipeTargetParametersPropertyTargetParametersPipeTargetParametersPropertyTargetParametersPipeTargetParametersPropertyrequired#The parameters required to set up a target for your pipe.