Skip to content

Commit

Permalink
Add support for new policy type RESOURCE_CONTROL_POLICY
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavyalla committed Nov 20, 2024
1 parent 5868cd8 commit 449ca07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion aws-organizations-policy/aws-organizations-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"AISERVICES_OPT_OUT_POLICY",
"BACKUP_POLICY",
"TAG_POLICY",
"CHATBOT_POLICY"
"CHATBOT_POLICY",
"RESOURCE_CONTROL_POLICY"
]
},
"Content": {
Expand Down
2 changes: 1 addition & 1 deletion aws-organizations-policy/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ _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> | <code>CHATBOT_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> | <code>RESOURCE_CONTROL_POLICY</code>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ public enum PolicyType {
BACKUP_POLICY("BACKUP_POLICY"),
SERVICE_CONTROL_POLICY("SERVICE_CONTROL_POLICY"),
TAG_POLICY("TAG_POLICY"),
CHATBOT_POLICY("CHATBOT_POLICY");
CHATBOT_POLICY("CHATBOT_POLICY"),
RESOURCE_CONTROL_POLICY("RESOURCE_CONTROL_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 = "570EA2A5670352042505D77D1921807BDD013D474A62202278E616BC94423BF0";
protected static final String POLICY_SCHEMA_SHA256_HEXSTRING = "05B235E4D98BCD33B4BBD400B693EF938899CABA1F8EB6359BA50B663D96B90D";
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 449ca07

Please sign in to comment.