You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::IoT::Types::CreatePolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iot/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

Instance Attribute Details

#policy_documentString

The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.

Returns:

  • (String)


1120
1121
1122
1123
1124
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1120

class CreatePolicyRequest < Struct.new(
  :policy_name,
  :policy_document)
  include Aws::Structure
end

#policy_nameString

The policy name.

Returns:

  • (String)


1120
1121
1122
1123
1124
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1120

class CreatePolicyRequest < Struct.new(
  :policy_name,
  :policy_document)
  include Aws::Structure
end