Struct aws_sdk_secretsmanager::input::PutResourcePolicyInput
source ·
[−]#[non_exhaustive]pub struct PutResourcePolicyInput {
pub secret_id: Option<String>,
pub resource_policy: Option<String>,
pub block_public_policy: Option<bool>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.secret_id: Option<String>
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.
resource_policy: Option<String>
A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions policy examples.
block_public_policy: Option<bool>
Specifies whether to block resource-based policies that allow broad access to the secret. By default, Secrets Manager blocks policies that allow broad access, for example those that use a wildcard for the principal.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutResourcePolicy, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutResourcePolicy, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutResourcePolicy
>
Creates a new builder-style object to manufacture PutResourcePolicyInput
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.
A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions policy examples.
Specifies whether to block resource-based policies that allow broad access to the secret. By default, Secrets Manager blocks policies that allow broad access, for example those that use a wildcard for the principal.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PutResourcePolicyInput
impl Send for PutResourcePolicyInput
impl Sync for PutResourcePolicyInput
impl Unpin for PutResourcePolicyInput
impl UnwindSafe for PutResourcePolicyInput
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