public class PutDestinationRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates or updates a destination. A destination encapsulates a physical resource (such as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents. Currently, the only supported physical resource is a Kinesis stream belonging to the same account as the destination.
Through an access policy, a destination controls what is written to its
Kinesis stream. By default, PutDestination
does not set any
access policy with the destination, which means a cross-account user cannot
call PutSubscriptionFilter against this destination. To enable this,
the destination owner must call PutDestinationPolicy after
PutDestination
.
Constructor and Description |
---|
PutDestinationRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationName()
A name for the destination.
|
java.lang.String |
getRoleArn()
The ARN of an IAM role that grants CloudWatch Logs permissions to call
the Amazon Kinesis PutRecord operation on the destination stream.
|
java.lang.String |
getTargetArn()
The ARN of an Amazon Kinesis stream to which to deliver matching log
events.
|
int |
hashCode() |
void |
setDestinationName(java.lang.String destinationName)
A name for the destination.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to call
the Amazon Kinesis PutRecord operation on the destination stream.
|
void |
setTargetArn(java.lang.String targetArn)
The ARN of an Amazon Kinesis stream to which to deliver matching log
events.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutDestinationRequest |
withDestinationName(java.lang.String destinationName)
A name for the destination.
|
PutDestinationRequest |
withRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to call
the Amazon Kinesis PutRecord operation on the destination stream.
|
PutDestinationRequest |
withTargetArn(java.lang.String targetArn)
The ARN of an Amazon Kinesis stream to which to deliver matching log
events.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getDestinationName()
A name for the destination.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
A name for the destination.
public void setDestinationName(java.lang.String destinationName)
A name for the destination.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
destinationName
- A name for the destination.
public PutDestinationRequest withDestinationName(java.lang.String destinationName)
A name for the destination.
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 java.lang.String getTargetArn()
The ARN of an Amazon Kinesis stream to which to deliver matching log events.
Constraints:
Length: 1 -
The ARN of an Amazon Kinesis stream to which to deliver matching log events.
public void setTargetArn(java.lang.String targetArn)
The ARN of an Amazon Kinesis stream to which to deliver matching log events.
Constraints:
Length: 1 -
targetArn
- The ARN of an Amazon Kinesis stream to which to deliver matching log events.
public PutDestinationRequest withTargetArn(java.lang.String targetArn)
The ARN of an Amazon Kinesis stream to which to deliver matching log events.
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 which to deliver matching log events.
public java.lang.String getRoleArn()
The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
Constraints:
Length: 1 -
The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
public void setRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
Constraints:
Length: 1 -
roleArn
- The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
public PutDestinationRequest withRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
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 CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.