public class PutDestinationPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
PutDestinationPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessPolicy()
An IAM policy document that authorizes cross-account users to deliver
their log events to the associated destination.
|
java.lang.String |
getDestinationName()
A name for an existing destination.
|
int |
hashCode() |
void |
setAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver
their log events to the associated destination.
|
void |
setDestinationName(java.lang.String destinationName)
A name for an existing destination.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutDestinationPolicyRequest |
withAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver
their log events to the associated destination.
|
PutDestinationPolicyRequest |
withDestinationName(java.lang.String destinationName)
A name for an existing destination.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getDestinationName()
A name for an existing destination.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
A name for an existing destination.
public void setDestinationName(java.lang.String destinationName)
A name for an existing destination.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
destinationName
- A name for an existing destination.
public PutDestinationPolicyRequest withDestinationName(java.lang.String destinationName)
A name for an existing destination.
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 java.lang.String getAccessPolicy()
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.
Constraints:
Length: 1 -
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.
public void setAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.
Constraints:
Length: 1 -
accessPolicy
- An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.
public PutDestinationPolicyRequest withAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.
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 the associated destination.
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.