GetPolicyResult

data class GetPolicyResult(val arn: String? = null, val awsManaged: Boolean? = null, val content: Any? = null, val description: String? = null, val id: String? = null, val name: String? = null, val tags: List<Tag>? = null, val targetIds: List<String>? = null)

Constructors

Link copied to clipboard
constructor(arn: String? = null, awsManaged: Boolean? = null, content: Any? = null, description: String? = null, id: String? = null, name: String? = null, tags: List<Tag>? = null, targetIds: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val arn: String? = null

ARN of the Policy

Link copied to clipboard
val awsManaged: Boolean? = null

A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.

Link copied to clipboard
val content: 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: String? = null

Human readable description of the policy

Link copied to clipboard
val id: String? = null

Id of the Policy

Link copied to clipboard
val name: String? = null

Name of the Policy

Link copied to clipboard
val tags: List<Tag>? = 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: List<String>? = null

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