#[non_exhaustive]pub struct AddPolicyStatementInput {
pub arn: Option<String>,
pub statement_id: Option<String>,
pub effect: Option<StatementEffect>,
pub action: Option<Vec<String>>,
pub principal: Option<Vec<String>>,
pub condition: 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.arn: Option<String>
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
statement_id: Option<String>
A statement identifier that differentiates the statement from others in the same policy.
effect: Option<StatementEffect>
Determines whether the permissions specified in the policy are to be allowed (Allow
) or denied (Deny
).
If you set the value of the effect
parameter to Deny
for the AddPolicyStatement
operation, you must also set the value of the effect
parameter in the policy
to Deny
for the PutPolicy
operation.
action: Option<Vec<String>>
The action that the principal can use on the resource.
For example, entityresolution:GetIdMappingJob
, entityresolution:GetMatchingJob
.
principal: Option<Vec<String>>
The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
condition: Option<String>
A set of condition keys that you can use in key policies.
Implementations§
source§impl AddPolicyStatementInput
impl AddPolicyStatementInput
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
sourcepub fn statement_id(&self) -> Option<&str>
pub fn statement_id(&self) -> Option<&str>
A statement identifier that differentiates the statement from others in the same policy.
sourcepub fn effect(&self) -> Option<&StatementEffect>
pub fn effect(&self) -> Option<&StatementEffect>
Determines whether the permissions specified in the policy are to be allowed (Allow
) or denied (Deny
).
If you set the value of the effect
parameter to Deny
for the AddPolicyStatement
operation, you must also set the value of the effect
parameter in the policy
to Deny
for the PutPolicy
operation.
sourcepub fn action(&self) -> &[String]
pub fn action(&self) -> &[String]
The action that the principal can use on the resource.
For example, entityresolution:GetIdMappingJob
, entityresolution:GetMatchingJob
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .action.is_none()
.
source§impl AddPolicyStatementInput
impl AddPolicyStatementInput
sourcepub fn builder() -> AddPolicyStatementInputBuilder
pub fn builder() -> AddPolicyStatementInputBuilder
Creates a new builder-style object to manufacture AddPolicyStatementInput
.
Trait Implementations§
source§impl Clone for AddPolicyStatementInput
impl Clone for AddPolicyStatementInput
source§fn clone(&self) -> AddPolicyStatementInput
fn clone(&self) -> AddPolicyStatementInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddPolicyStatementInput
impl Debug for AddPolicyStatementInput
source§impl PartialEq for AddPolicyStatementInput
impl PartialEq for AddPolicyStatementInput
impl StructuralPartialEq for AddPolicyStatementInput
Auto Trait Implementations§
impl Freeze for AddPolicyStatementInput
impl RefUnwindSafe for AddPolicyStatementInput
impl Send for AddPolicyStatementInput
impl Sync for AddPolicyStatementInput
impl Unpin for AddPolicyStatementInput
impl UnwindSafe for AddPolicyStatementInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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