@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutDestinationPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutDestinationPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutDestinationPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccessPolicy()
An IAM policy document that authorizes cross-account users to deliver their log events to the associated
destination.
|
String |
getDestinationName()
A name for an existing destination.
|
Boolean |
getForceUpdate()
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts.
|
int |
hashCode() |
Boolean |
isForceUpdate()
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts.
|
void |
setAccessPolicy(String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to the associated
destination.
|
void |
setDestinationName(String destinationName)
A name for an existing destination.
|
void |
setForceUpdate(Boolean forceUpdate)
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts.
|
String |
toString()
Returns a string representation of this object.
|
PutDestinationPolicyRequest |
withAccessPolicy(String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to the associated
destination.
|
PutDestinationPolicyRequest |
withDestinationName(String destinationName)
A name for an existing destination.
|
PutDestinationPolicyRequest |
withForceUpdate(Boolean forceUpdate)
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDestinationName(String destinationName)
A name for an existing destination.
destinationName
- A name for an existing destination.public String getDestinationName()
A name for an existing destination.
public PutDestinationPolicyRequest withDestinationName(String destinationName)
A name for an existing destination.
destinationName
- A name for an existing destination.public void setAccessPolicy(String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.
accessPolicy
- An IAM policy document that authorizes cross-account users to deliver their log events to the associated
destination. This can be up to 5120 bytes.public String getAccessPolicy()
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.
public PutDestinationPolicyRequest withAccessPolicy(String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.
accessPolicy
- An IAM policy document that authorizes cross-account users to deliver their log events to the associated
destination. This can be up to 5120 bytes.public void setForceUpdate(Boolean forceUpdate)
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this
way, you must first update the subscription filters in the accounts that send logs to this destination. If you do
not, the subscription filters might stop working. By specifying true
for forceUpdate
,
you are affirming that you have already updated the subscription filters. For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
forceUpdate
- Specify true if you are updating an existing destination policy to grant permission to an organization ID
instead of granting permission to individual Amazon Web Services accounts. Before you update a destination
policy this way, you must first update the subscription filters in the accounts that send logs to this
destination. If you do not, the subscription filters might stop working. By specifying true
for forceUpdate
, you are affirming that you have already updated the subscription filters.
For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
public Boolean getForceUpdate()
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this
way, you must first update the subscription filters in the accounts that send logs to this destination. If you do
not, the subscription filters might stop working. By specifying true
for forceUpdate
,
you are affirming that you have already updated the subscription filters. For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
true
for forceUpdate
, you are affirming that you have already updated the
subscription filters. For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
public PutDestinationPolicyRequest withForceUpdate(Boolean forceUpdate)
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this
way, you must first update the subscription filters in the accounts that send logs to this destination. If you do
not, the subscription filters might stop working. By specifying true
for forceUpdate
,
you are affirming that you have already updated the subscription filters. For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
forceUpdate
- Specify true if you are updating an existing destination policy to grant permission to an organization ID
instead of granting permission to individual Amazon Web Services accounts. Before you update a destination
policy this way, you must first update the subscription filters in the accounts that send logs to this
destination. If you do not, the subscription filters might stop working. By specifying true
for forceUpdate
, you are affirming that you have already updated the subscription filters.
For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
public Boolean isForceUpdate()
Specify true if you are updating an existing destination policy to grant permission to an organization ID instead
of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this
way, you must first update the subscription filters in the accounts that send logs to this destination. If you do
not, the subscription filters might stop working. By specifying true
for forceUpdate
,
you are affirming that you have already updated the subscription filters. For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
true
for forceUpdate
, you are affirming that you have already updated the
subscription filters. For more information, see
Updating an existing cross-account subscription
If you omit this parameter, the default of false
is used.
public String toString()
toString
in class Object
Object.toString()
public PutDestinationPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()