Struct aws_sdk_secretsmanager::client::fluent_builders::GetResourcePolicy [−][src]
pub struct GetResourcePolicy<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to GetResourcePolicy.
Retrieves the JSON text of the resource-based policy document attached to the specified 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.
Minimum permissions
To run this command, you must have the following permissions:
-
secretsmanager:GetResourcePolicy
Related operations
-
To attach a resource policy to a secret, use PutResourcePolicy.
-
To delete the resource-based policy attached to a secret, use DeleteResourcePolicy.
-
To list all of the currently available secrets, use ListSecrets.
Implementations
impl<C, M, R> GetResourcePolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetResourcePolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetResourcePolicyOutput, SdkError<GetResourcePolicyError>> where
R::Policy: SmithyRetryPolicy<GetResourcePolicyInputOperationOutputAlias, GetResourcePolicyOutput, GetResourcePolicyError, GetResourcePolicyInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetResourcePolicyOutput, SdkError<GetResourcePolicyError>> where
R::Policy: SmithyRetryPolicy<GetResourcePolicyInputOperationOutputAlias, GetResourcePolicyOutput, GetResourcePolicyError, GetResourcePolicyInputOperationRetryAlias>,
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.
Specifies the secret that you want to retrieve the attached resource-based policy for. 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.
Specifies the secret that you want to retrieve the attached resource-based policy for. 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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for GetResourcePolicy<C, M, R>
impl<C, M, R> Send for GetResourcePolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetResourcePolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetResourcePolicy<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for GetResourcePolicy<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