Skip to content

Latest commit

 

History

History
134 lines (78 loc) · 3.97 KB

File metadata and controls

134 lines (78 loc) · 3.97 KB

Community::Organizations::Policy

Resource that allows for the creation of AWS Organizations policies and attaching to different targets in the organization.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{
    "Type" : "Community::Organizations::Policy",
    "Properties" : {
        "Content" : String,
        "PolicyDocument" : Map,
        "Description" : String,
        "Name" : String,
        "PolicyType" : String,
        "TargetIds" : [ String, ... ],
    }
}

YAML

Type: Community::Organizations::Policy
Properties:
    Content: String
    PolicyDocument: Map
    Description: String
    Name: String
    PolicyType: String
    TargetIds: 
      - String

Properties

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.

Required: No

Type: String

Minimum Length: 1

Maximum Length: 1000000

Pattern: [\s\S]+

Update requires: No interruption

PolicyDocument

The policy document to add to the new policy

Required: No

Type: Map

Update requires: No interruption

Description

An optional description to assign to the policy.

Required: Yes

Type: String

Maximum Length: 512

Pattern: [\s\S]*

Update requires: No interruption

Name

The friendly name to assign to the policy.

Required: Yes

Type: String

Minimum Length: 1

Maximum Length: 128

Pattern: [\s\S]+

Update requires: No interruption

PolicyType

The type of policy to create.

Required: Yes

Type: String

Allowed Values: AISERVICES_OPT_OUT_POLICY | BACKUP_POLICY | SERVICE_CONTROL_POLICY | TAG_POLICY

Update requires: No interruption

TargetIds

The list of target IDs to attach the policy to.

Required: Yes

Type: List of String

Update requires: Replacement

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ResourceId.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

ResourceId

The unique identifier (ID) of the policy.