@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Target extends Object implements Serializable, Cloneable, StructuredPojo
Targets are the resources to be invoked when a rule is triggered. Target types include EC2 instances, AWS Lambda functions, Amazon Kinesis streams, Amazon ECS tasks, AWS Step Functions state machines, Run Command, and built-in targets.
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
Target |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the target.
|
EcsParameters |
getEcsParameters()
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
|
String |
getId()
The ID of the target.
|
String |
getInput()
Valid JSON text passed to the target.
|
String |
getInputPath()
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target.
|
InputTransformer |
getInputTransformer()
Settings to enable you to provide custom input to a target based on certain event data.
|
KinesisParameters |
getKinesisParameters()
The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered.
|
RunCommandParameters |
getRunCommandParameters()
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the target.
|
void |
setEcsParameters(EcsParameters ecsParameters)
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
|
void |
setId(String id)
The ID of the target.
|
void |
setInput(String input)
Valid JSON text passed to the target.
|
void |
setInputPath(String inputPath)
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target.
|
void |
setInputTransformer(InputTransformer inputTransformer)
Settings to enable you to provide custom input to a target based on certain event data.
|
void |
setKinesisParameters(KinesisParameters kinesisParameters)
The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered.
|
void |
setRunCommandParameters(RunCommandParameters runCommandParameters)
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Target |
withArn(String arn)
The Amazon Resource Name (ARN) of the target.
|
Target |
withEcsParameters(EcsParameters ecsParameters)
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task.
|
Target |
withId(String id)
The ID of the target.
|
Target |
withInput(String input)
Valid JSON text passed to the target.
|
Target |
withInputPath(String inputPath)
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target.
|
Target |
withInputTransformer(InputTransformer inputTransformer)
Settings to enable you to provide custom input to a target based on certain event data.
|
Target |
withKinesisParameters(KinesisParameters kinesisParameters)
The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream.
|
Target |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered.
|
Target |
withRunCommandParameters(RunCommandParameters runCommandParameters)
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
|
public void setId(String id)
The ID of the target.
id
- The ID of the target.public String getId()
The ID of the target.
public Target withId(String id)
The ID of the target.
id
- The ID of the target.public void setArn(String arn)
The Amazon Resource Name (ARN) of the target.
arn
- The Amazon Resource Name (ARN) of the target.public String getArn()
The Amazon Resource Name (ARN) of the target.
public Target withArn(String arn)
The Amazon Resource Name (ARN) of the target.
arn
- The Amazon Resource Name (ARN) of the target.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.
roleArn
- The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If
one rule triggers multiple targets, you can use a different IAM role for each target.public String getRoleArn()
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.
public Target withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.
roleArn
- The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If
one rule triggers multiple targets, you can use a different IAM role for each target.public void setInput(String input)
Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. You must use JSON dot notation, not bracket notation. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format.
input
- Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target.
You must use JSON dot notation, not bracket notation. For more information, see The JavaScript Object Notation (JSON) Data Interchange
Format.public String getInput()
Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. You must use JSON dot notation, not bracket notation. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format.
public Target withInput(String input)
Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. You must use JSON dot notation, not bracket notation. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format.
input
- Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target.
You must use JSON dot notation, not bracket notation. For more information, see The JavaScript Object Notation (JSON) Data Interchange
Format.public void setInputPath(String inputPath)
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see JSONPath.
inputPath
- The value of the JSONPath that is used for extracting part of the matched event when passing it to the
target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see
JSONPath.public String getInputPath()
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see JSONPath.
public Target withInputPath(String inputPath)
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see JSONPath.
inputPath
- The value of the JSONPath that is used for extracting part of the matched event when passing it to the
target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see
JSONPath.public void setInputTransformer(InputTransformer inputTransformer)
Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value pairs from the event and then use that data to send customized input to the target.
inputTransformer
- Settings to enable you to provide custom input to a target based on certain event data. You can extract
one or more key-value pairs from the event and then use that data to send customized input to the target.public InputTransformer getInputTransformer()
Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value pairs from the event and then use that data to send customized input to the target.
public Target withInputTransformer(InputTransformer inputTransformer)
Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value pairs from the event and then use that data to send customized input to the target.
inputTransformer
- Settings to enable you to provide custom input to a target based on certain event data. You can extract
one or more key-value pairs from the event and then use that data to send customized input to the target.public void setKinesisParameters(KinesisParameters kinesisParameters)
The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream. If you
do not include this parameter, the default is to use the eventId
as the partition key.
kinesisParameters
- The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream.
If you do not include this parameter, the default is to use the eventId
as the partition key.public KinesisParameters getKinesisParameters()
The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream. If you
do not include this parameter, the default is to use the eventId
as the partition key.
eventId
as the
partition key.public Target withKinesisParameters(KinesisParameters kinesisParameters)
The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream. If you
do not include this parameter, the default is to use the eventId
as the partition key.
kinesisParameters
- The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream.
If you do not include this parameter, the default is to use the eventId
as the partition key.public void setRunCommandParameters(RunCommandParameters runCommandParameters)
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
runCommandParameters
- Parameters used when you are using the rule to invoke Amazon EC2 Run Command.public RunCommandParameters getRunCommandParameters()
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
public Target withRunCommandParameters(RunCommandParameters runCommandParameters)
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
runCommandParameters
- Parameters used when you are using the rule to invoke Amazon EC2 Run Command.public void setEcsParameters(EcsParameters ecsParameters)
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the Amazon EC2 Container Service Developer Guide.
ecsParameters
- Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS
task. For more information about Amazon ECS tasks, see Task Definitions
in the Amazon EC2 Container Service Developer Guide.public EcsParameters getEcsParameters()
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the Amazon EC2 Container Service Developer Guide.
public Target withEcsParameters(EcsParameters ecsParameters)
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the Amazon EC2 Container Service Developer Guide.
ecsParameters
- Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS
task. For more information about Amazon ECS tasks, see Task Definitions
in the Amazon EC2 Container Service Developer Guide.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.