public class PutDestinationPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
PutDestinationPolicy operation.
Creates or updates an access policy associated with an existing
Destination . An access policy is an
IAM policy document
that is used to authorize claims to register a subscription filter
against a given destination.
NOOP| Constructor and Description |
|---|
PutDestinationPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutDestinationPolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAccessPolicy()
An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.
|
String |
getDestinationName()
A name for an existing destination.
|
int |
hashCode() |
void |
setAccessPolicy(String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.
|
void |
setDestinationName(String destinationName)
A name for an existing destination.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutDestinationPolicyRequest |
withAccessPolicy(String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.
|
PutDestinationPolicyRequest |
withDestinationName(String destinationName)
A name for an existing destination.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getDestinationName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setDestinationName(String destinationName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
destinationName - A name for an existing destination.public PutDestinationPolicyRequest 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 an existing destination.public String getAccessPolicy()
Constraints:
Length: 1 -
public void setAccessPolicy(String accessPolicy)
Constraints:
Length: 1 -
accessPolicy - An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.public PutDestinationPolicyRequest withAccessPolicy(String accessPolicy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
accessPolicy - An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.public String toString()
toString in class ObjectObject.toString()public PutDestinationPolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.