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

Class: Aws::IoT::Types::CreatePolicyVersionRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreatePolicyVersionRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  policy_name: "PolicyName", # required
  policy_document: "PolicyDocument", # required
  set_as_default: false,
}

The input for the CreatePolicyVersion operation.

Instance Attribute Summary collapse

Instance Attribute Details

#policy_documentString

The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces

Returns:

  • (String)

    The JSON document that describes the policy.

#policy_nameString

The policy name.

Returns:

  • (String)

    The policy name.

#set_as_defaultBoolean

Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

Returns:

  • (Boolean)

    Specifies whether the policy version is set as the default.