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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-iot/types.rb

Overview

The input for the CreatePolicy operation.

Constant Summary collapse

SENSITIVE =
[]

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)


3539
3540
3541
3542
3543
3544
3545
# File 'lib/aws-sdk-iot/types.rb', line 3539

class CreatePolicyRequest < Struct.new(
  :policy_name,
  :policy_document,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#policy_nameString

The policy name.

Returns:

  • (String)


3539
3540
3541
3542
3543
3544
3545
# File 'lib/aws-sdk-iot/types.rb', line 3539

class CreatePolicyRequest < Struct.new(
  :policy_name,
  :policy_document,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

Metadata which can be used to manage the policy.

<note markdown=“1”> For URI Request parameters use format: …key1=value1&amp;key2=value2…

For the CLI command-line parameter use format: &amp;&amp;tags

“key1=value1&amp;key2=value2…”

For the cli-input-json file use format: "tags":

“key1=value1&amp;key2=value2…”

</note>

Returns:



3539
3540
3541
3542
3543
3544
3545
# File 'lib/aws-sdk-iot/types.rb', line 3539

class CreatePolicyRequest < Struct.new(
  :policy_name,
  :policy_document,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end