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

Class: Aws::Organizations::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:

{
  content: "PolicyContent", # required
  description: "PolicyDescription", # required
  name: "PolicyName", # required
  type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY
}

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

The policy content to add to the new policy. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see Service Control Policy Syntax in the AWS Organizations User Guide.

Returns:

  • (String)

    The policy content to add to the new policy.

#descriptionString

An optional description to assign to the policy.

Returns:

  • (String)

    An optional description to assign to the policy.

#nameString

The friendly name to assign to the policy.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

Returns:

  • (String)

    The friendly name to assign to the policy.

#typeString

The type of policy to create.

In the current release, the only type of policy that you can create is a service control policy (SCP).

Possible values:

  • SERVICE_CONTROL_POLICY

Returns:

  • (String)

    The type of policy to create.