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
…DECLARATIVE_POLICY_EC2 policy type.
  • Loading branch information
awstools committed Dec 2, 2024
1 parent 77c2e6a commit 2af53c3
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export interface AttachPolicyCommandOutput extends __MetadataBearer {}
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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
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" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // Status: "ENABLED" || "PENDING_ENABLE" || "PENDING_DISABLE",
* // },
* // ],
Expand Down
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" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2", // 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" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // AwsManaged: true || false,
* // },
* // Content: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export interface DescribeEffectivePolicyCommandOutput extends DescribeEffectiveP
* The effective policy is the aggregation of any policies of the specified type that the
* account inherits, plus any policy of that type that is directly attached to the
* account.</p>
* <p>This operation applies only to policy types <i>other</i> than service
* control policies (SCPs).</p>
* <p>This operation applies only to management policies. It does not apply to authorization policies: service
* control policies (SCPs) and resource control policies (RCPs).</p>
* <p>For more information about policy inheritance, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inheritance_mgmt.html">Understanding
* management policy inheritance</a> in the
* <i>Organizations User Guide</i>.</p>
Expand All @@ -45,7 +45,7 @@ export interface DescribeEffectivePolicyCommandOutput extends DescribeEffectiveP
* // const { OrganizationsClient, DescribeEffectivePolicyCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
* const client = new OrganizationsClient(config);
* const input = { // DescribeEffectivePolicyRequest
* PolicyType: "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY", // required
* PolicyType: "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY" || "DECLARATIVE_POLICY_EC2", // required
* TargetId: "STRING_VALUE",
* };
* const command = new DescribeEffectivePolicyCommand(input);
Expand All @@ -55,7 +55,7 @@ export interface DescribeEffectivePolicyCommandOutput extends DescribeEffectiveP
* // PolicyContent: "STRING_VALUE",
* // LastUpdatedTimestamp: new Date("TIMESTAMP"),
* // TargetId: "STRING_VALUE",
* // PolicyType: "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY",
* // PolicyType: "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY" || "DECLARATIVE_POLICY_EC2",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface DescribeOrganizationCommandOutput extends DescribeOrganizationR
* // MasterAccountEmail: "STRING_VALUE",
* // AvailablePolicyTypes: [ // PolicyTypes
* // { // PolicyTypeSummary
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // Status: "ENABLED" || "PENDING_ENABLE" || "PENDING_DISABLE",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface DescribePolicyCommandOutput extends DescribePolicyResponse, __M
* // Arn: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // AwsManaged: true || false,
* // },
* // Content: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface DisablePolicyTypeCommandOutput extends DisablePolicyTypeRespons
* const client = new OrganizationsClient(config);
* const input = { // DisablePolicyTypeRequest
* RootId: "STRING_VALUE", // required
* PolicyType: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY", // required
* PolicyType: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY" || "DECLARATIVE_POLICY_EC2", // required
* };
* const command = new DisablePolicyTypeCommand(input);
* const response = await client.send(command);
Expand All @@ -59,7 +59,7 @@ export interface DisablePolicyTypeCommandOutput extends DisablePolicyTypeRespons
* // Name: "STRING_VALUE",
* // PolicyTypes: [ // PolicyTypes
* // { // PolicyTypeSummary
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // Status: "ENABLED" || "PENDING_ENABLE" || "PENDING_DISABLE",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface EnablePolicyTypeCommandOutput extends EnablePolicyTypeResponse,
* const client = new OrganizationsClient(config);
* const input = { // EnablePolicyTypeRequest
* RootId: "STRING_VALUE", // required
* PolicyType: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY", // required
* PolicyType: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY" || "DECLARATIVE_POLICY_EC2", // required
* };
* const command = new EnablePolicyTypeCommand(input);
* const response = await client.send(command);
Expand All @@ -59,7 +59,7 @@ export interface EnablePolicyTypeCommandOutput extends EnablePolicyTypeResponse,
* // Name: "STRING_VALUE",
* // PolicyTypes: [ // PolicyTypes
* // { // PolicyTypeSummary
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // Status: "ENABLED" || "PENDING_ENABLE" || "PENDING_DISABLE",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface ListPoliciesCommandOutput extends ListPoliciesResponse, __Metad
* // const { OrganizationsClient, ListPoliciesCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
* const client = new OrganizationsClient(config);
* const input = { // ListPoliciesRequest
* Filter: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY", // required
* Filter: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY" || "DECLARATIVE_POLICY_EC2", // required
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* };
Expand All @@ -59,7 +59,7 @@ export interface ListPoliciesCommandOutput extends ListPoliciesResponse, __Metad
* // Arn: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // AwsManaged: true || false,
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface ListPoliciesForTargetCommandOutput extends ListPoliciesForTarge
* const client = new OrganizationsClient(config);
* const input = { // ListPoliciesForTargetRequest
* TargetId: "STRING_VALUE", // required
* Filter: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY", // required
* Filter: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY" || "DECLARATIVE_POLICY_EC2", // required
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* };
Expand All @@ -62,7 +62,7 @@ export interface ListPoliciesForTargetCommandOutput extends ListPoliciesForTarge
* // Arn: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // AwsManaged: true || false,
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface ListRootsCommandOutput extends ListRootsResponse, __MetadataBea
* // Name: "STRING_VALUE",
* // PolicyTypes: [ // PolicyTypes
* // { // PolicyTypeSummary
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // Status: "ENABLED" || "PENDING_ENABLE" || "PENDING_DISABLE",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface UpdatePolicyCommandOutput extends UpdatePolicyResponse, __Metad
* // Arn: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_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" || "DECLARATIVE_POLICY_EC2",
* // AwsManaged: true || false,
* // },
* // Content: "STRING_VALUE",
Expand Down
32 changes: 32 additions & 0 deletions clients/client-organizations/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1901,6 +1901,7 @@ export const PolicyType = {
AISERVICES_OPT_OUT_POLICY: "AISERVICES_OPT_OUT_POLICY",
BACKUP_POLICY: "BACKUP_POLICY",
CHATBOT_POLICY: "CHATBOT_POLICY",
DECLARATIVE_POLICY_EC2: "DECLARATIVE_POLICY_EC2",
RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY",
SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY",
TAG_POLICY: "TAG_POLICY",
Expand Down Expand Up @@ -2192,6 +2193,11 @@ export interface CreatePolicyRequest {
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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 @@ -2649,6 +2655,7 @@ export const EffectivePolicyType = {
AISERVICES_OPT_OUT_POLICY: "AISERVICES_OPT_OUT_POLICY",
BACKUP_POLICY: "BACKUP_POLICY",
CHATBOT_POLICY: "CHATBOT_POLICY",
DECLARATIVE_POLICY_EC2: "DECLARATIVE_POLICY_EC2",
TAG_POLICY: "TAG_POLICY",
} as const;

Expand All @@ -2667,6 +2674,11 @@ export interface DescribeEffectivePolicyRequest {
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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 @@ -3010,6 +3022,11 @@ export interface DisablePolicyTypeRequest {
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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 @@ -3161,6 +3178,11 @@ export interface EnablePolicyTypeRequest {
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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 @@ -4209,6 +4231,11 @@ export interface ListPoliciesRequest {
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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 @@ -4323,6 +4350,11 @@ export interface ListPoliciesForTargetRequest {
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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
Loading

0 comments on commit 2af53c3

Please sign in to comment.