Class: Aws::IoT::Types::CreatePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoT::Types::CreatePolicyRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-iot/types.rb
Overview
Note:
When making an API call, you may pass CreatePolicyRequest data as a hash:
{
policy_name: "PolicyName", # required
policy_document: "PolicyDocument", # required
}
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.
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.
2256 2257 2258 2259 2260 |
# File 'lib/aws-sdk-iot/types.rb', line 2256 class CreatePolicyRequest < Struct.new( :policy_name, :policy_document) include Aws::Structure end |
#policy_name ⇒ String
The policy name.
2256 2257 2258 2259 2260 |
# File 'lib/aws-sdk-iot/types.rb', line 2256 class CreatePolicyRequest < Struct.new( :policy_name, :policy_document) include Aws::Structure end |