AWS::Organizations::PolicyPolicies 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.
6 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Content | objectstring | Required |
Name | string | Required |
Type | string | RequiredCreate-only |
Description | string | |
Tags | Array<Tag> | |
TargetIds | Array<string> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | ARN of the Policy |
AwsManaged | boolean | 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. |
Id | string | Id of the Policy |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Organizations::Policy
Resources:
MyResource:
Type: AWS::Organizations::Policy
Properties:
Name: "my-name"
Type: "AISERVICES_OPT_OUT_POLICY"
Content: "value"
Tags:
- Key: Environment
Value: Production
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
organizations:CreatePolicyorganizations:DescribePolicyorganizations:AttachPolicyorganizations:ListPoliciesorganizations:ListTagsForResourceorganizations:ListTargetsForPolicyorganizations:TagResourceorganizations:DescribePolicyorganizations:ListTargetsForPolicyorganizations:ListTagsForResourceorganizations:AttachPolicyorganizations:DetachPolicyorganizations:UpdatePolicyorganizations:ListTagsForResourceorganizations:ListTargetsForPolicyorganizations:TagResourceorganizations:UntagResourceorganizations:DescribePolicyorganizations:DetachPolicyorganizations:DeletePolicyorganizations:ListPoliciesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
Type