#[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 ==
.