You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IoT::Types::CreatePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoT::Types::CreatePolicyRequest
- Defined in:
- (unknown)
Overview
When passing CreatePolicyRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
policy_name: "PolicyName", # required
policy_document: "PolicyDocument", # required
tags: [
{
key: "TagKey", # required
value: "TagValue",
},
],
}
The input for the CreatePolicy operation.
Instance Attribute Summary collapse
-
#policy_document ⇒ String
The JSON document that describes the policy.
-
#policy_name ⇒ String
The policy name.
-
#tags ⇒ Array<Types::Tag>
Metadata which can be used to manage the policy.
Instance Attribute Details
#policy_document ⇒ String
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
#policy_name ⇒ String
The policy name.
#tags ⇒ Array<Types::Tag>
Metadata which can be used to manage the policy.
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...\"