class Aws::Organizations::Types::CreatePolicyRequest
@note When making an API call, you may pass CreatePolicyRequest
data as a hash: { content: "PolicyContent", # required description: "PolicyDescription", # required name: "PolicyName", # required type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY tags: [ { key: "TagKey", # required value: "TagValue", # required }, ], }
@!attribute [rw] content
The policy text content to add to the new policy. The text that you supply must adhere to the rules of the policy type you specify in the `Type` parameter. @return [String]
@!attribute [rw] description
An optional description to assign to the policy. @return [String]
@!attribute [rw] name
The friendly name to assign to the policy. The [regex pattern][1] that is used to validate this parameter is a string of any of the characters in the ASCII character range. [1]: http://wikipedia.org/wiki/regex @return [String]
@!attribute [rw] type
The type of policy to create. You can specify one of the following values: * [AISERVICES\_OPT\_OUT\_POLICY][1] * [BACKUP\_POLICY][2] * [SERVICE\_CONTROL\_POLICY][3] * [TAG\_POLICY][4] [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html @return [String]
@!attribute [rw] tags
A list of tags that you want to attach to the newly created policy. For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to `null`. For more information about tagging, see [Tagging AWS Organizations resources][1] in the AWS Organizations User Guide. <note markdown="1"> If any one of the tags is invalid or if you exceed the allowed number of tags for a policy, then the entire request fails and the policy is not created. </note> [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tagging.html @return [Array<Types::Tag>]
@see docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreatePolicyRequest AWS API Documentation
Constants
- SENSITIVE