#[non_exhaustive]pub struct PutResourcePolicyInput {
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 account that you want to share rule groups and firewall policies with.
policy: Option<String>
The IAM policy statement that lists the accounts that you want to share your rule group or firewall policy with and the operations that you want the accounts to be able to perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
-
network-firewall:CreateFirewallPolicy
-
network-firewall:UpdateFirewallPolicy
-
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
-
network-firewall:AssociateFirewallPolicy
-
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies that you want to share with the account that you specified in Arn
.
Implementations§
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
sourcepub fn policy(&self) -> Option<&str>
pub fn policy(&self) -> Option<&str>
The IAM policy statement that lists the accounts that you want to share your rule group or firewall policy with and the operations that you want the accounts to be able to perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
-
network-firewall:CreateFirewallPolicy
-
network-firewall:UpdateFirewallPolicy
-
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
-
network-firewall:AssociateFirewallPolicy
-
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies that you want to share with the account that you specified in Arn
.
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn builder() -> PutResourcePolicyInputBuilder
pub fn builder() -> PutResourcePolicyInputBuilder
Creates a new builder-style object to manufacture PutResourcePolicyInput
.
Trait Implementations§
source§impl Clone for PutResourcePolicyInput
impl Clone for PutResourcePolicyInput
source§fn clone(&self) -> PutResourcePolicyInput
fn clone(&self) -> PutResourcePolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutResourcePolicyInput
impl Debug for PutResourcePolicyInput
source§impl PartialEq for PutResourcePolicyInput
impl PartialEq for PutResourcePolicyInput
source§fn eq(&self, other: &PutResourcePolicyInput) -> bool
fn eq(&self, other: &PutResourcePolicyInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutResourcePolicyInput
Auto Trait Implementations§
impl Freeze for PutResourcePolicyInput
impl RefUnwindSafe for PutResourcePolicyInput
impl Send for PutResourcePolicyInput
impl Sync for PutResourcePolicyInput
impl Unpin for PutResourcePolicyInput
impl UnwindSafe for PutResourcePolicyInput
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