class Aws::CloudWatchEvents::Types::PutTargetsRequest

@note When making an API call, you may pass PutTargetsRequest

data as a hash:

    {
      rule: "RuleName", # required
      event_bus_name: "EventBusNameOrArn",
      targets: [ # required
        {
          id: "TargetId", # required
          arn: "TargetArn", # required
          role_arn: "RoleArn",
          input: "TargetInput",
          input_path: "TargetInputPath",
          input_transformer: {
            input_paths_map: {
              "InputTransformerPathKey" => "TargetInputPath",
            },
            input_template: "TransformerInput", # required
          },
          kinesis_parameters: {
            partition_key_path: "TargetPartitionKeyPath", # required
          },
          run_command_parameters: {
            run_command_targets: [ # required
              {
                key: "RunCommandTargetKey", # required
                values: ["RunCommandTargetValue"], # required
              },
            ],
          },
          ecs_parameters: {
            task_definition_arn: "Arn", # required
            task_count: 1,
            launch_type: "EC2", # accepts EC2, FARGATE, EXTERNAL
            network_configuration: {
              awsvpc_configuration: {
                subnets: ["String"], # required
                security_groups: ["String"],
                assign_public_ip: "ENABLED", # accepts ENABLED, DISABLED
              },
            },
            platform_version: "String",
            group: "String",
            capacity_provider_strategy: [
              {
                capacity_provider: "CapacityProvider", # required
                weight: 1,
                base: 1,
              },
            ],
            enable_ecs_managed_tags: false,
            enable_execute_command: false,
            placement_constraints: [
              {
                type: "distinctInstance", # accepts distinctInstance, memberOf
                expression: "PlacementConstraintExpression",
              },
            ],
            placement_strategy: [
              {
                type: "random", # accepts random, spread, binpack
                field: "PlacementStrategyField",
              },
            ],
            propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION
            reference_id: "ReferenceId",
            tags: [
              {
                key: "TagKey", # required
                value: "TagValue", # required
              },
            ],
          },
          batch_parameters: {
            job_definition: "String", # required
            job_name: "String", # required
            array_properties: {
              size: 1,
            },
            retry_strategy: {
              attempts: 1,
            },
          },
          sqs_parameters: {
            message_group_id: "MessageGroupId",
          },
          http_parameters: {
            path_parameter_values: ["PathParameter"],
            header_parameters: {
              "HeaderKey" => "HeaderValue",
            },
            query_string_parameters: {
              "QueryStringKey" => "QueryStringValue",
            },
          },
          redshift_data_parameters: {
            secret_manager_arn: "RedshiftSecretManagerArn",
            database: "Database", # required
            db_user: "DbUser",
            sql: "Sql", # required
            statement_name: "StatementName",
            with_event: false,
          },
          sage_maker_pipeline_parameters: {
            pipeline_parameter_list: [
              {
                name: "SageMakerPipelineParameterName", # required
                value: "SageMakerPipelineParameterValue", # required
              },
            ],
          },
          dead_letter_config: {
            arn: "ResourceArn",
          },
          retry_policy: {
            maximum_retry_attempts: 1,
            maximum_event_age_in_seconds: 1,
          },
        },
      ],
    }

@!attribute [rw] rule

The name of the rule.
@return [String]

@!attribute [rw] event_bus_name

The name or ARN of the event bus associated with the rule. If you
omit this, the default event bus is used.
@return [String]

@!attribute [rw] targets

The targets to update or add to the rule.
@return [Array<Types::Target>]

@see docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsRequest AWS API Documentation

Constants

SENSITIVE