Struct aws_sdk_secretsmanager::client::fluent_builders::ValidateResourcePolicy [−][src]
pub struct ValidateResourcePolicy<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to ValidateResourcePolicy.
Validates that the resource policy does not grant a wide range of IAM principals access to your secret. The JSON request string input and response output displays formatted code with white space and line breaks for better readability. Submit your input as a single line JSON string. A resource-based policy is optional for secrets.
The API performs three checks when validating the secret:
-
Sends a call to Zelkova, an automated reasoning engine, to ensure your Resource Policy does not allow broad access to your secret.
-
Checks for correct syntax in a policy.
-
Verifies the policy does not lock out a caller.
Minimum Permissions
You must have the permissions required to access the following APIs:
-
secretsmanager:PutResourcePolicy -
secretsmanager:ValidateResourcePolicy
Implementations
impl<C, M, R> ValidateResourcePolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ValidateResourcePolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ValidateResourcePolicyOutput, SdkError<ValidateResourcePolicyError>> where
R::Policy: SmithyRetryPolicy<ValidateResourcePolicyInputOperationOutputAlias, ValidateResourcePolicyOutput, ValidateResourcePolicyError, ValidateResourcePolicyInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ValidateResourcePolicyOutput, SdkError<ValidateResourcePolicyError>> where
R::Policy: SmithyRetryPolicy<ValidateResourcePolicyInputOperationOutputAlias, ValidateResourcePolicyOutput, ValidateResourcePolicyError, ValidateResourcePolicyInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
(Optional) The identifier of the secret with the resource-based policy you want to validate. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
(Optional) The identifier of the secret with the resource-based policy you want to validate. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
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.publi
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.publi
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ValidateResourcePolicy<C, M, R>
impl<C, M, R> Send for ValidateResourcePolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ValidateResourcePolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ValidateResourcePolicy<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ValidateResourcePolicy<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more