Struct aws_sdk_secretsmanager::operation::validate_resource_policy::builders::ValidateResourcePolicyFluentBuilder
source · pub struct ValidateResourcePolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ValidateResourcePolicy
.
Validates that a resource policy does not grant a wide range of principals access to your secret. A resource-based policy is optional for secrets.
The API performs three checks when validating the policy:
-
Sends a call to Zelkova, an automated reasoning engine, to ensure your resource policy does not allow broad access to your secret, for example policies that use a wildcard for the principal.
-
Checks for correct syntax in a policy.
-
Verifies the policy does not lock out a caller.
Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.
Required permissions: secretsmanager:ValidateResourcePolicy
and secretsmanager:PutResourcePolicy
. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.
Implementations§
source§impl ValidateResourcePolicyFluentBuilder
impl ValidateResourcePolicyFluentBuilder
sourcepub fn as_input(&self) -> &ValidateResourcePolicyInputBuilder
pub fn as_input(&self) -> &ValidateResourcePolicyInputBuilder
Access the ValidateResourcePolicy as a reference.
sourcepub async fn send(
self,
) -> Result<ValidateResourcePolicyOutput, SdkError<ValidateResourcePolicyError, HttpResponse>>
pub async fn send( self, ) -> Result<ValidateResourcePolicyOutput, SdkError<ValidateResourcePolicyError, HttpResponse>>
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.
sourcepub fn customize(
self,
) -> CustomizableOperation<ValidateResourcePolicyOutput, ValidateResourcePolicyError, Self>
pub fn customize( self, ) -> CustomizableOperation<ValidateResourcePolicyOutput, ValidateResourcePolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn secret_id(self, input: impl Into<String>) -> Self
pub fn secret_id(self, input: impl Into<String>) -> Self
This field is reserved for internal use.
sourcepub fn set_secret_id(self, input: Option<String>) -> Self
pub fn set_secret_id(self, input: Option<String>) -> Self
This field is reserved for internal use.
sourcepub fn get_secret_id(&self) -> &Option<String>
pub fn get_secret_id(&self) -> &Option<String>
This field is reserved for internal use.
sourcepub fn resource_policy(self, input: impl Into<String>) -> Self
pub fn resource_policy(self, input: impl Into<String>) -> Self
A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see Permissions policy examples.
sourcepub fn set_resource_policy(self, input: Option<String>) -> Self
pub fn set_resource_policy(self, input: Option<String>) -> Self
A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see Permissions policy examples.
sourcepub fn get_resource_policy(&self) -> &Option<String>
pub fn get_resource_policy(&self) -> &Option<String>
A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see Permissions policy examples.
Trait Implementations§
source§impl Clone for ValidateResourcePolicyFluentBuilder
impl Clone for ValidateResourcePolicyFluentBuilder
source§fn clone(&self) -> ValidateResourcePolicyFluentBuilder
fn clone(&self) -> ValidateResourcePolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ValidateResourcePolicyFluentBuilder
impl !RefUnwindSafe for ValidateResourcePolicyFluentBuilder
impl Send for ValidateResourcePolicyFluentBuilder
impl Sync for ValidateResourcePolicyFluentBuilder
impl Unpin for ValidateResourcePolicyFluentBuilder
impl !UnwindSafe for ValidateResourcePolicyFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)