Skip to content

Commit

Permalink
add support for new policy type CHATBOT_POLICY
Browse files Browse the repository at this point in the history
  • Loading branch information
theRonLewis committed Sep 26, 2024
1 parent ae4b416 commit ee3ccb6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions aws-organizations-policy/aws-organizations-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"maxLength": 128
},
"Type": {
"description": "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",
"description": "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",
"type": "string",
"enum": [
"SERVICE_CONTROL_POLICY",
"AISERVICES_OPT_OUT_POLICY",
"BACKUP_POLICY",
"TAG_POLICY"
"TAG_POLICY",
"CHATBOT_POLICY"
]
},
"Content": {
Expand Down
5 changes: 3 additions & 2 deletions aws-organizations-policy/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### Type

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
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

_Required_: Yes

_Type_: String

_Allowed Values_: <code>SERVICE_CONTROL_POLICY</code> | <code>AISERVICES_OPT_OUT_POLICY</code> | <code>BACKUP_POLICY</code> | <code>TAG_POLICY</code>
_Allowed Values_: <code>SERVICE_CONTROL_POLICY</code> | <code>AISERVICES_OPT_OUT_POLICY</code> | <code>BACKUP_POLICY</code> | <code>TAG_POLICY</code> | <code>CHATBOT_POLICY</code>

_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

Expand Down Expand Up @@ -140,3 +140,4 @@ ARN of the Policy
#### AwsManaged

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.

1 change: 1 addition & 0 deletions aws-organizations-policy/docs/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ _Maximum Length_: <code>256</code>
_Pattern_: <code>[\s\S]*</code>

_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public enum PolicyType {
BACKUP_POLICY("BACKUP_POLICY"),
SERVICE_CONTROL_POLICY("SERVICE_CONTROL_POLICY"),
TAG_POLICY("TAG_POLICY");
CHATBOT_POLICY("CHATBOT_POLICY");

private final String policyType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class AbstractTestBase {
protected static final Set<String> TEST_TARGET_IDS = ImmutableSet.of(TEST_TARGET_ROOT_ID, TEST_TARGET_OU_ID);
protected static final Set<String> TEST_UPDATED_TARGET_IDS = ImmutableSet.of(TEST_TARGET_ROOT_ID, TEST_TARGET_ACCOUNT_ID);
protected static final String TEST_NEXT_TOKEN = "mockNextTokenItem";
protected static final String POLICY_SCHEMA_SHA256_HEXSTRING = "A562D1A859C2312EDE249C91077773796CD3DB7FFD41624D8B3D0D3C7481D6AA";
protected static final String POLICY_SCHEMA_SHA256_HEXSTRING = "2D6EC3A321FCB847C3D82D496E0E831B047C74ABE67B4E797CB9C30DD1E149DF";
protected static final String POLICY_JSON_SCHEMA_FILE_NAME = "aws-organizations-policy.json";

protected static final Credentials MOCK_CREDENTIALS;
Expand Down

0 comments on commit ee3ccb6

Please sign in to comment.