@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutResourcePolicyRequest |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBlockPublicPolicy()
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that
use a wildcard for the principal.
|
String |
getResourcePolicy()
A JSON-formatted string for an Amazon Web Services resource-based policy.
|
String |
getSecretId()
The ARN or name of the secret to attach the resource-based policy.
|
int |
hashCode() |
Boolean |
isBlockPublicPolicy()
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that
use a wildcard for the principal.
|
void |
setBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that
use a wildcard for the principal.
|
void |
setResourcePolicy(String resourcePolicy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
|
void |
setSecretId(String secretId)
The ARN or name of the secret to attach the resource-based policy.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that
use a wildcard for the principal.
|
PutResourcePolicyRequest |
withResourcePolicy(String resourcePolicy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
|
PutResourcePolicyRequest |
withSecretId(String secretId)
The ARN or name of the secret to attach the resource-based policy.
|
addHandlerContext, copyBaseTo, 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 setSecretId(String secretId)
The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
secretId
- The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
public String getSecretId()
The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
public PutResourcePolicyRequest withSecretId(String secretId)
The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
secretId
- The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
public void setResourcePolicy(String resourcePolicy)
A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions policy examples.
resourcePolicy
- A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions
policy examples.public String getResourcePolicy()
A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions policy examples.
public PutResourcePolicyRequest withResourcePolicy(String resourcePolicy)
A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions policy examples.
resourcePolicy
- A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions
policy examples.public void setBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal. By default, public policies aren't blocked.
blockPublicPolicy
- Specifies whether to block resource-based policies that allow broad access to the secret, for example
those that use a wildcard for the principal. By default, public policies aren't blocked.public Boolean getBlockPublicPolicy()
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal. By default, public policies aren't blocked.
public PutResourcePolicyRequest withBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal. By default, public policies aren't blocked.
blockPublicPolicy
- Specifies whether to block resource-based policies that allow broad access to the secret, for example
those that use a wildcard for the principal. By default, public policies aren't blocked.public Boolean isBlockPublicPolicy()
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal. By default, public policies aren't blocked.
public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2024. All rights reserved.