@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()
(Optional) If you set the parameter,
BlockPublicPolicy to true, then you block resource-based
policies that allow broad access to the secret. |
String |
getResourcePolicy()
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services resource-based
policy.
|
String |
getSecretId()
Specifies the secret that you want to attach the resource-based policy.
|
int |
hashCode() |
Boolean |
isBlockPublicPolicy()
(Optional) If you set the parameter,
BlockPublicPolicy to true, then you block resource-based
policies that allow broad access to the secret. |
void |
setBlockPublicPolicy(Boolean blockPublicPolicy)
(Optional) If you set the parameter,
BlockPublicPolicy to true, then you block resource-based
policies that allow broad access to the secret. |
void |
setResourcePolicy(String resourcePolicy)
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services resource-based
policy.
|
void |
setSecretId(String secretId)
Specifies the secret that you want to attach the resource-based policy.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withBlockPublicPolicy(Boolean blockPublicPolicy)
(Optional) If you set the parameter,
BlockPublicPolicy to true, then you block resource-based
policies that allow broad access to the secret. |
PutResourcePolicyRequest |
withResourcePolicy(String resourcePolicy)
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services resource-based
policy.
|
PutResourcePolicyRequest |
withSecretId(String secretId)
Specifies the secret that you want 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)
Specifies the secret that you want to attach the resource-based policy. You can specify either the ARN or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
secretId
- Specifies the secret that you want to attach the resource-based policy. You can specify either the ARN or
the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
public String getSecretId()
Specifies the secret that you want to attach the resource-based policy. You can specify either the ARN or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
public PutResourcePolicyRequest withSecretId(String secretId)
Specifies the secret that you want to attach the resource-based policy. You can specify either the ARN or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
secretId
- Specifies the secret that you want to attach the resource-based policy. You can specify either the ARN or
the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
public void setResourcePolicy(String resourcePolicy)
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the CLI User Guide.
resourcePolicy
- A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services
resource-based policy. The policy in the string identifies who can access or manage this secret and its
versions. For information on how to format a JSON parameter for the various command line tool
environments, see Using
JSON for Parameters in the CLI User Guide.public String getResourcePolicy()
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the CLI User Guide.
public PutResourcePolicyRequest withResourcePolicy(String resourcePolicy)
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the CLI User Guide.
resourcePolicy
- A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services
resource-based policy. The policy in the string identifies who can access or manage this secret and its
versions. For information on how to format a JSON parameter for the various command line tool
environments, see Using
JSON for Parameters in the CLI User Guide.public void setBlockPublicPolicy(Boolean blockPublicPolicy)
(Optional) If you set the parameter, BlockPublicPolicy
to true, then you block resource-based
policies that allow broad access to the secret.
blockPublicPolicy
- (Optional) If you set the parameter, BlockPublicPolicy
to true, then you block resource-based
policies that allow broad access to the secret.public Boolean getBlockPublicPolicy()
(Optional) If you set the parameter, BlockPublicPolicy
to true, then you block resource-based
policies that allow broad access to the secret.
BlockPublicPolicy
to true, then you block
resource-based policies that allow broad access to the secret.public PutResourcePolicyRequest withBlockPublicPolicy(Boolean blockPublicPolicy)
(Optional) If you set the parameter, BlockPublicPolicy
to true, then you block resource-based
policies that allow broad access to the secret.
blockPublicPolicy
- (Optional) If you set the parameter, BlockPublicPolicy
to true, then you block resource-based
policies that allow broad access to the secret.public Boolean isBlockPublicPolicy()
(Optional) If you set the parameter, BlockPublicPolicy
to true, then you block resource-based
policies that allow broad access to the secret.
BlockPublicPolicy
to true, then you block
resource-based policies that allow broad access to the secret.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2021. All rights reserved.