#[non_exhaustive]pub struct PutPermissionPolicyInput {
pub resource_arn: Option<String>,
pub policy: Option<String>,
}
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.resource_arn: Option<String>
The Amazon Resource Name (ARN) of the RuleGroup
to which you want to attach the policy.
policy: Option<String>
The policy to attach to the specified rule group.
The policy specifications must conform to the following:
-
The policy must be composed using IAM Policy version 2012-10-17.
-
The policy must include specifications for
Effect
,Action
, andPrincipal
. -
Effect
must specifyAllow
. -
Action
must specifywafv2:CreateWebACL
,wafv2:UpdateWebACL
, andwafv2:PutFirewallManagerRuleGroups
and may optionally specifywafv2:GetRuleGroup
. WAF rejects any extra actions or wildcard actions in the policy. -
The policy must not include a
Resource
parameter.
For more information, see IAM Policies.
Implementations§
source§impl PutPermissionPolicyInput
impl PutPermissionPolicyInput
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the RuleGroup
to which you want to attach the policy.
sourcepub fn policy(&self) -> Option<&str>
pub fn policy(&self) -> Option<&str>
The policy to attach to the specified rule group.
The policy specifications must conform to the following:
-
The policy must be composed using IAM Policy version 2012-10-17.
-
The policy must include specifications for
Effect
,Action
, andPrincipal
. -
Effect
must specifyAllow
. -
Action
must specifywafv2:CreateWebACL
,wafv2:UpdateWebACL
, andwafv2:PutFirewallManagerRuleGroups
and may optionally specifywafv2:GetRuleGroup
. WAF rejects any extra actions or wildcard actions in the policy. -
The policy must not include a
Resource
parameter.
For more information, see IAM Policies.
source§impl PutPermissionPolicyInput
impl PutPermissionPolicyInput
sourcepub fn builder() -> PutPermissionPolicyInputBuilder
pub fn builder() -> PutPermissionPolicyInputBuilder
Creates a new builder-style object to manufacture PutPermissionPolicyInput
.
Trait Implementations§
source§impl Clone for PutPermissionPolicyInput
impl Clone for PutPermissionPolicyInput
source§fn clone(&self) -> PutPermissionPolicyInput
fn clone(&self) -> PutPermissionPolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutPermissionPolicyInput
impl Debug for PutPermissionPolicyInput
source§impl PartialEq for PutPermissionPolicyInput
impl PartialEq for PutPermissionPolicyInput
source§fn eq(&self, other: &PutPermissionPolicyInput) -> bool
fn eq(&self, other: &PutPermissionPolicyInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutPermissionPolicyInput
Auto Trait Implementations§
impl Freeze for PutPermissionPolicyInput
impl RefUnwindSafe for PutPermissionPolicyInput
impl Send for PutPermissionPolicyInput
impl Sync for PutPermissionPolicyInput
impl Unpin for PutPermissionPolicyInput
impl UnwindSafe for PutPermissionPolicyInput
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more