Struct aws_sdk_iot::operation::create_policy::CreatePolicyInput
source · #[non_exhaustive]pub struct CreatePolicyInput {
pub policy_name: Option<String>,
pub policy_document: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Expand description
The input for the CreatePolicy operation.
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.policy_name: Option<String>
The policy name.
policy_document: Option<String>
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Implementations§
source§impl CreatePolicyInput
impl CreatePolicyInput
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The policy name.
sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreatePolicyInput
impl CreatePolicyInput
sourcepub fn builder() -> CreatePolicyInputBuilder
pub fn builder() -> CreatePolicyInputBuilder
Creates a new builder-style object to manufacture CreatePolicyInput
.
Trait Implementations§
source§impl Clone for CreatePolicyInput
impl Clone for CreatePolicyInput
source§fn clone(&self) -> CreatePolicyInput
fn clone(&self) -> CreatePolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreatePolicyInput
impl Debug for CreatePolicyInput
source§impl PartialEq for CreatePolicyInput
impl PartialEq for CreatePolicyInput
source§fn eq(&self, other: &CreatePolicyInput) -> bool
fn eq(&self, other: &CreatePolicyInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreatePolicyInput
Auto Trait Implementations§
impl Freeze for CreatePolicyInput
impl RefUnwindSafe for CreatePolicyInput
impl Send for CreatePolicyInput
impl Sync for CreatePolicyInput
impl Unpin for CreatePolicyInput
impl UnwindSafe for CreatePolicyInput
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