Struct aws_sdk_iot::input::CreatePolicyInput [−][src]
#[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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePolicy, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePolicy, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreatePolicy
>
Creates a new builder-style object to manufacture CreatePolicyInput
The policy name.
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..."
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreatePolicyInput
impl Send for CreatePolicyInput
impl Sync for CreatePolicyInput
impl Unpin for CreatePolicyInput
impl UnwindSafe for CreatePolicyInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more