Struct aws_sdk_wafv2::operation::put_permission_policy::builders::PutPermissionPolicyInputBuilder
source · #[non_exhaustive]pub struct PutPermissionPolicyInputBuilder { /* private fields */ }
Expand description
A builder for PutPermissionPolicyInput
.
Implementations§
source§impl PutPermissionPolicyInputBuilder
impl PutPermissionPolicyInputBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the RuleGroup
to which you want to attach the policy.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the RuleGroup
to which you want to attach the policy.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the RuleGroup
to which you want to attach the policy.
sourcepub fn policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
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.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &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.
sourcepub fn build(self) -> Result<PutPermissionPolicyInput, BuildError>
pub fn build(self) -> Result<PutPermissionPolicyInput, BuildError>
Consumes the builder and constructs a PutPermissionPolicyInput
.
source§impl PutPermissionPolicyInputBuilder
impl PutPermissionPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutPermissionPolicyOutput, SdkError<PutPermissionPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutPermissionPolicyOutput, SdkError<PutPermissionPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutPermissionPolicyInputBuilder
impl Clone for PutPermissionPolicyInputBuilder
source§fn clone(&self) -> PutPermissionPolicyInputBuilder
fn clone(&self) -> PutPermissionPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutPermissionPolicyInputBuilder
impl Default for PutPermissionPolicyInputBuilder
source§fn default() -> PutPermissionPolicyInputBuilder
fn default() -> PutPermissionPolicyInputBuilder
source§impl PartialEq for PutPermissionPolicyInputBuilder
impl PartialEq for PutPermissionPolicyInputBuilder
source§fn eq(&self, other: &PutPermissionPolicyInputBuilder) -> bool
fn eq(&self, other: &PutPermissionPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutPermissionPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for PutPermissionPolicyInputBuilder
impl RefUnwindSafe for PutPermissionPolicyInputBuilder
impl Send for PutPermissionPolicyInputBuilder
impl Sync for PutPermissionPolicyInputBuilder
impl Unpin for PutPermissionPolicyInputBuilder
impl UnwindSafe for PutPermissionPolicyInputBuilder
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