Skip to content

Commit

Permalink
feat(client-organizations): Add support for policy operations on the …
Browse files Browse the repository at this point in the history
…Resource Control Polices.
  • Loading branch information
awstools committed Nov 13, 2024
1 parent 79297bb commit d87a984
Show file tree
Hide file tree
Showing 55 changed files with 391 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ export interface AcceptHandshakeCommandOutput extends AcceptHandshakeResponse, _
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -298,6 +301,9 @@ export interface AcceptHandshakeCommandOutput extends AcceptHandshakeResponse, _
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
11 changes: 11 additions & 0 deletions clients/client-organizations/src/commands/AttachPolicyCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export interface AttachPolicyCommandOutput extends __MetadataBearer {}
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_rcps.html">RESOURCE_CONTROL_POLICY</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html">BACKUP_POLICY</a>
* </p>
* </li>
Expand Down Expand Up @@ -349,6 +354,9 @@ export interface AttachPolicyCommandOutput extends __MetadataBearer {}
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -389,6 +397,9 @@ export interface AttachPolicyCommandOutput extends __MetadataBearer {}
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export interface CancelHandshakeCommandOutput extends CancelHandshakeResponse, _
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -204,6 +207,9 @@ export interface CancelHandshakeCommandOutput extends CancelHandshakeResponse, _
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ export interface CloseAccountCommandOutput extends __MetadataBearer {}
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -412,6 +415,9 @@ export interface CloseAccountCommandOutput extends __MetadataBearer {}
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ export interface CreateAccountCommandOutput extends CreateAccountResponse, __Met
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -455,6 +458,9 @@ export interface CreateAccountCommandOutput extends CreateAccountResponse, __Met
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,9 @@ export interface CreateGovCloudAccountCommandOutput extends CreateGovCloudAccoun
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -509,6 +512,9 @@ export interface CreateGovCloudAccountCommandOutput extends CreateGovCloudAccoun
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface CreateOrganizationCommandOutput extends CreateOrganizationRespo
* // MasterAccountEmail: "STRING_VALUE",
* // AvailablePolicyTypes: [ // PolicyTypes
* // { // PolicyTypeSummary
* // Type: "SERVICE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY",
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY",
* // Status: "ENABLED" || "PENDING_ENABLE" || "PENDING_DISABLE",
* // },
* // ],
Expand Down Expand Up @@ -349,6 +349,9 @@ export interface CreateOrganizationCommandOutput extends CreateOrganizationRespo
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -389,6 +392,9 @@ export interface CreateOrganizationCommandOutput extends CreateOrganizationRespo
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ export interface CreateOrganizationalUnitCommandOutput extends CreateOrganizatio
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -379,6 +382,9 @@ export interface CreateOrganizationalUnitCommandOutput extends CreateOrganizatio
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
10 changes: 8 additions & 2 deletions clients/client-organizations/src/commands/CreatePolicyCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface CreatePolicyCommandOutput extends CreatePolicyResponse, __Metad
* Content: "STRING_VALUE", // required
* Description: "STRING_VALUE", // required
* Name: "STRING_VALUE", // required
* Type: "SERVICE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY", // required
* Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY", // required
* Tags: [ // Tags
* { // Tag
* Key: "STRING_VALUE", // required
Expand All @@ -63,7 +63,7 @@ export interface CreatePolicyCommandOutput extends CreatePolicyResponse, __Metad
* // Arn: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // Type: "SERVICE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY",
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY",
* // AwsManaged: true || false,
* // },
* // Content: "STRING_VALUE",
Expand Down Expand Up @@ -345,6 +345,9 @@ export interface CreatePolicyCommandOutput extends CreatePolicyResponse, __Metad
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -385,6 +388,9 @@ export interface CreatePolicyCommandOutput extends CreatePolicyResponse, __Metad
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ export interface DeclineHandshakeCommandOutput extends DeclineHandshakeResponse,
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -205,6 +208,9 @@ export interface DeclineHandshakeCommandOutput extends DeclineHandshakeResponse,
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export interface DeleteOrganizationCommandOutput extends __MetadataBearer {}
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -157,6 +160,9 @@ export interface DeleteOrganizationCommandOutput extends __MetadataBearer {}
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export interface DeleteOrganizationalUnitCommandOutput extends __MetadataBearer
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -161,6 +164,9 @@ export interface DeleteOrganizationalUnitCommandOutput extends __MetadataBearer
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ export interface DeletePolicyCommandOutput extends __MetadataBearer {}
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -163,6 +166,9 @@ export interface DeletePolicyCommandOutput extends __MetadataBearer {}
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ export interface DeregisterDelegatedAdministratorCommandOutput extends __Metadat
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -379,6 +382,9 @@ export interface DeregisterDelegatedAdministratorCommandOutput extends __Metadat
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ export interface DescribeAccountCommandOutput extends DescribeAccountResponse, _
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -176,6 +179,9 @@ export interface DescribeAccountCommandOutput extends DescribeAccountResponse, _
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ export interface DescribeCreateAccountStatusCommandOutput
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -178,6 +181,9 @@ export interface DescribeCreateAccountStatusCommandOutput
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ export interface DescribeEffectivePolicyCommandOutput extends DescribeEffectiveP
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_PRINCIPAL: You specified an invalid principal element in the policy.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
Expand Down Expand Up @@ -373,6 +376,9 @@ export interface DescribeEffectivePolicyCommandOutput extends DescribeEffectiveP
* entities in the same root.</p>
* </li>
* <li>
* <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
Expand Down
Loading

0 comments on commit d87a984

Please sign in to comment.