public class Target extends Object implements Serializable, Cloneable
Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets.
Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target:
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
Target |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) associated of the target.
|
String |
getId()
The unique target assignment ID.
|
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.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) associated of the target.
|
void |
setId(String id)
The unique target assignment ID.
|
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Target |
withArn(String arn)
The Amazon Resource Name (ARN) associated of the target.
|
Target |
withId(String id)
The unique target assignment ID.
|
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.
|
public void setId(String id)
The unique target assignment ID.
id
- The unique target assignment ID.public String getId()
The unique target assignment ID.
public Target withId(String id)
The unique target assignment ID.
id
- The unique target assignment ID.public void setArn(String arn)
The Amazon Resource Name (ARN) associated of the target.
arn
- The Amazon Resource Name (ARN) associated of the target.public String getArn()
The Amazon Resource Name (ARN) associated of the target.
public Target withArn(String arn)
The Amazon Resource Name (ARN) associated of the target.
arn
- The Amazon Resource Name (ARN) associated of the target.public void setInput(String input)
Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.
input
- Valid JSON text passed to the target. For more information about
JSON text, see The JavaScript
Object Notation (JSON) Data Interchange Format.public String getInput()
Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.
public Target withInput(String input)
Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.
input
- Valid JSON text passed to the target. For more information about
JSON text, 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. 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. 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. 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. 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. For more information
about JSON paths, see JSONPath.public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.