public class PutDestinationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
PutDestination operation
.
Creates or updates a Destination
. A destination
encapsulates a physical resource (such as a Kinesis stream) and allows
you to subscribe to a real-time stream of log events of a different
account, ingested through PutLogEvents
requests.
Currently, the only supported physical resource is a Amazon Kinesis
stream belonging to the same account as the destination.
A destination controls what is written to its Amazon Kinesis stream
through an access policy. By default, PutDestination does not set any
access policy with the destination, which means a cross-account user
will not be able to call PutSubscriptionFilter
against
this destination. To enable that, the destination owner must call
PutDestinationPolicy
after PutDestination.
NOOP
Constructor and Description |
---|
PutDestinationRequest() |
Modifier and Type | Method and Description |
---|---|
PutDestinationRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getDestinationName()
A name for the destination.
|
String |
getRoleArn()
The ARN of an IAM role that grants Amazon CloudWatch Logs permissions
to do Amazon Kinesis PutRecord requests on the desitnation stream.
|
String |
getTargetArn()
The ARN of an Amazon Kinesis stream to deliver matching log events to.
|
int |
hashCode() |
void |
setDestinationName(String destinationName)
A name for the destination.
|
void |
setRoleArn(String roleArn)
The ARN of an IAM role that grants Amazon CloudWatch Logs permissions
to do Amazon Kinesis PutRecord requests on the desitnation stream.
|
void |
setTargetArn(String targetArn)
The ARN of an Amazon Kinesis stream to deliver matching log events to.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutDestinationRequest |
withDestinationName(String destinationName)
A name for the destination.
|
PutDestinationRequest |
withRoleArn(String roleArn)
The ARN of an IAM role that grants Amazon CloudWatch Logs permissions
to do Amazon Kinesis PutRecord requests on the desitnation stream.
|
PutDestinationRequest |
withTargetArn(String targetArn)
The ARN of an Amazon Kinesis stream to deliver matching log events to.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getDestinationName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setDestinationName(String destinationName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
destinationName
- A name for the destination.public PutDestinationRequest withDestinationName(String destinationName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
destinationName
- A name for the destination.public String getTargetArn()
Constraints:
Length: 1 -
public void setTargetArn(String targetArn)
Constraints:
Length: 1 -
targetArn
- The ARN of an Amazon Kinesis stream to deliver matching log events to.public PutDestinationRequest withTargetArn(String targetArn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
targetArn
- The ARN of an Amazon Kinesis stream to deliver matching log events to.public String getRoleArn()
Constraints:
Length: 1 -
public void setRoleArn(String roleArn)
Constraints:
Length: 1 -
roleArn
- The ARN of an IAM role that grants Amazon CloudWatch Logs permissions
to do Amazon Kinesis PutRecord requests on the desitnation stream.public PutDestinationRequest withRoleArn(String roleArn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
roleArn
- The ARN of an IAM role that grants Amazon CloudWatch Logs permissions
to do Amazon Kinesis PutRecord requests on the desitnation stream.public String toString()
toString
in class Object
Object.toString()
public PutDestinationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.