PolicyArgs

data class PolicyArgs(val content: Output<Any>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val tags: Output<List<TagArgs>>? = null, val targetIds: Output<List<String>>? = null, val type: Output<PolicyType>? = null) : ConvertibleToJava<PolicyArgs>

Policies in AWS Organizations enable you to manage different features of the AWS accounts in your organization. You can use policies when all features are enabled in your organization.

Constructors

Link copied to clipboard
constructor(content: Output<Any>? = null, description: Output<String>? = null, name: Output<String>? = null, tags: Output<List<TagArgs>>? = null, targetIds: Output<List<String>>? = null, type: Output<PolicyType>? = null)

Properties

Link copied to clipboard
val content: Output<Any>? = null

The Policy text content. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it. Search the CloudFormation User Guide for AWS::Organizations::Policy for more information about the expected schema for this property.

Link copied to clipboard
val description: Output<String>? = null

Human readable description of the policy

Link copied to clipboard
val name: Output<String>? = null

Name of the Policy

Link copied to clipboard
val tags: Output<List<TagArgs>>? = null

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.

Link copied to clipboard
val targetIds: Output<List<String>>? = null

List of unique identifiers (IDs) of the root, OU, or account that you want to attach the policy to

Link copied to clipboard
val type: Output<PolicyType>? = null

The type of policy to create. You can specify one of the following values: AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY, TAG_POLICY, CHATBOT_POLICY, RESOURCE_CONTROL_POLICY,DECLARATIVE_POLICY_EC2

Functions

Link copied to clipboard
open override fun toJava(): PolicyArgs