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
show all
Defined in:
(unknown)

Overview

Note:

When passing CreatePolicyRequest as input to an Aws::Client method, you can use a vanilla 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)

    The JSON document that describes the policy.

#policy_nameString

The policy name.

Returns:

  • (String)

    The policy name.