@aws-sdk/client-organizations 3.216.0 → 3.218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist-cjs/Organizations.js +45 -0
  2. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +45 -0
  3. package/dist-cjs/commands/DescribeResourcePolicyCommand.js +46 -0
  4. package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/endpoint/ruleset.js +16 -16
  7. package/dist-cjs/models/models_0.js +42 -3
  8. package/dist-cjs/protocols/Aws_json1_1.js +234 -3
  9. package/dist-es/Organizations.js +45 -0
  10. package/dist-es/commands/DeleteResourcePolicyCommand.js +41 -0
  11. package/dist-es/commands/DescribeResourcePolicyCommand.js +42 -0
  12. package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/endpoint/ruleset.js +16 -16
  15. package/dist-es/models/models_0.js +33 -0
  16. package/dist-es/protocols/Aws_json1_1.js +226 -1
  17. package/dist-types/Organizations.d.ts +31 -7
  18. package/dist-types/OrganizationsClient.d.ts +5 -2
  19. package/dist-types/commands/AcceptHandshakeCommand.d.ts +1 -1
  20. package/dist-types/commands/CloseAccountCommand.d.ts +3 -3
  21. package/dist-types/commands/CreateAccountCommand.d.ts +2 -2
  22. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +37 -0
  23. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +38 -0
  24. package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +1 -1
  25. package/dist-types/commands/PutResourcePolicyCommand.d.ts +38 -0
  26. package/dist-types/commands/index.d.ts +3 -0
  27. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  28. package/dist-types/models/models_0.d.ts +99 -4
  29. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  30. package/dist-types/ts3.4/Organizations.d.ts +51 -0
  31. package/dist-types/ts3.4/OrganizationsClient.d.ts +18 -0
  32. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +34 -0
  33. package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +37 -0
  34. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  36. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  37. package/dist-types/ts3.4/models/models_0.d.ts +49 -0
  38. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  39. package/package.json +3 -3
@@ -20,6 +20,7 @@ import { DeclineHandshakeCommandInput, DeclineHandshakeCommandOutput } from "./c
20
20
  import { DeleteOrganizationalUnitCommandInput, DeleteOrganizationalUnitCommandOutput } from "./commands/DeleteOrganizationalUnitCommand";
21
21
  import { DeleteOrganizationCommandInput, DeleteOrganizationCommandOutput } from "./commands/DeleteOrganizationCommand";
22
22
  import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
23
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
23
24
  import { DeregisterDelegatedAdministratorCommandInput, DeregisterDelegatedAdministratorCommandOutput } from "./commands/DeregisterDelegatedAdministratorCommand";
24
25
  import { DescribeAccountCommandInput, DescribeAccountCommandOutput } from "./commands/DescribeAccountCommand";
25
26
  import { DescribeCreateAccountStatusCommandInput, DescribeCreateAccountStatusCommandOutput } from "./commands/DescribeCreateAccountStatusCommand";
@@ -28,6 +29,7 @@ import { DescribeHandshakeCommandInput, DescribeHandshakeCommandOutput } from ".
28
29
  import { DescribeOrganizationalUnitCommandInput, DescribeOrganizationalUnitCommandOutput } from "./commands/DescribeOrganizationalUnitCommand";
29
30
  import { DescribeOrganizationCommandInput, DescribeOrganizationCommandOutput } from "./commands/DescribeOrganizationCommand";
30
31
  import { DescribePolicyCommandInput, DescribePolicyCommandOutput } from "./commands/DescribePolicyCommand";
32
+ import { DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput } from "./commands/DescribeResourcePolicyCommand";
31
33
  import { DetachPolicyCommandInput, DetachPolicyCommandOutput } from "./commands/DetachPolicyCommand";
32
34
  import { DisableAWSServiceAccessCommandInput, DisableAWSServiceAccessCommandOutput } from "./commands/DisableAWSServiceAccessCommand";
33
35
  import { DisablePolicyTypeCommandInput, DisablePolicyTypeCommandOutput } from "./commands/DisablePolicyTypeCommand";
@@ -53,6 +55,7 @@ import { ListRootsCommandInput, ListRootsCommandOutput } from "./commands/ListRo
53
55
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
54
56
  import { ListTargetsForPolicyCommandInput, ListTargetsForPolicyCommandOutput } from "./commands/ListTargetsForPolicyCommand";
55
57
  import { MoveAccountCommandInput, MoveAccountCommandOutput } from "./commands/MoveAccountCommand";
58
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
56
59
  import { RegisterDelegatedAdministratorCommandInput, RegisterDelegatedAdministratorCommandOutput } from "./commands/RegisterDelegatedAdministratorCommand";
57
60
  import { RemoveAccountFromOrganizationCommandInput, RemoveAccountFromOrganizationCommandOutput } from "./commands/RemoveAccountFromOrganizationCommand";
58
61
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -60,8 +63,8 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
60
63
  import { UpdateOrganizationalUnitCommandInput, UpdateOrganizationalUnitCommandOutput } from "./commands/UpdateOrganizationalUnitCommand";
61
64
  import { UpdatePolicyCommandInput, UpdatePolicyCommandOutput } from "./commands/UpdatePolicyCommand";
62
65
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
63
- export declare type ServiceInputTypes = AcceptHandshakeCommandInput | AttachPolicyCommandInput | CancelHandshakeCommandInput | CloseAccountCommandInput | CreateAccountCommandInput | CreateGovCloudAccountCommandInput | CreateOrganizationCommandInput | CreateOrganizationalUnitCommandInput | CreatePolicyCommandInput | DeclineHandshakeCommandInput | DeleteOrganizationCommandInput | DeleteOrganizationalUnitCommandInput | DeletePolicyCommandInput | DeregisterDelegatedAdministratorCommandInput | DescribeAccountCommandInput | DescribeCreateAccountStatusCommandInput | DescribeEffectivePolicyCommandInput | DescribeHandshakeCommandInput | DescribeOrganizationCommandInput | DescribeOrganizationalUnitCommandInput | DescribePolicyCommandInput | DetachPolicyCommandInput | DisableAWSServiceAccessCommandInput | DisablePolicyTypeCommandInput | EnableAWSServiceAccessCommandInput | EnableAllFeaturesCommandInput | EnablePolicyTypeCommandInput | InviteAccountToOrganizationCommandInput | LeaveOrganizationCommandInput | ListAWSServiceAccessForOrganizationCommandInput | ListAccountsCommandInput | ListAccountsForParentCommandInput | ListChildrenCommandInput | ListCreateAccountStatusCommandInput | ListDelegatedAdministratorsCommandInput | ListDelegatedServicesForAccountCommandInput | ListHandshakesForAccountCommandInput | ListHandshakesForOrganizationCommandInput | ListOrganizationalUnitsForParentCommandInput | ListParentsCommandInput | ListPoliciesCommandInput | ListPoliciesForTargetCommandInput | ListRootsCommandInput | ListTagsForResourceCommandInput | ListTargetsForPolicyCommandInput | MoveAccountCommandInput | RegisterDelegatedAdministratorCommandInput | RemoveAccountFromOrganizationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOrganizationalUnitCommandInput | UpdatePolicyCommandInput;
64
- export declare type ServiceOutputTypes = AcceptHandshakeCommandOutput | AttachPolicyCommandOutput | CancelHandshakeCommandOutput | CloseAccountCommandOutput | CreateAccountCommandOutput | CreateGovCloudAccountCommandOutput | CreateOrganizationCommandOutput | CreateOrganizationalUnitCommandOutput | CreatePolicyCommandOutput | DeclineHandshakeCommandOutput | DeleteOrganizationCommandOutput | DeleteOrganizationalUnitCommandOutput | DeletePolicyCommandOutput | DeregisterDelegatedAdministratorCommandOutput | DescribeAccountCommandOutput | DescribeCreateAccountStatusCommandOutput | DescribeEffectivePolicyCommandOutput | DescribeHandshakeCommandOutput | DescribeOrganizationCommandOutput | DescribeOrganizationalUnitCommandOutput | DescribePolicyCommandOutput | DetachPolicyCommandOutput | DisableAWSServiceAccessCommandOutput | DisablePolicyTypeCommandOutput | EnableAWSServiceAccessCommandOutput | EnableAllFeaturesCommandOutput | EnablePolicyTypeCommandOutput | InviteAccountToOrganizationCommandOutput | LeaveOrganizationCommandOutput | ListAWSServiceAccessForOrganizationCommandOutput | ListAccountsCommandOutput | ListAccountsForParentCommandOutput | ListChildrenCommandOutput | ListCreateAccountStatusCommandOutput | ListDelegatedAdministratorsCommandOutput | ListDelegatedServicesForAccountCommandOutput | ListHandshakesForAccountCommandOutput | ListHandshakesForOrganizationCommandOutput | ListOrganizationalUnitsForParentCommandOutput | ListParentsCommandOutput | ListPoliciesCommandOutput | ListPoliciesForTargetCommandOutput | ListRootsCommandOutput | ListTagsForResourceCommandOutput | ListTargetsForPolicyCommandOutput | MoveAccountCommandOutput | RegisterDelegatedAdministratorCommandOutput | RemoveAccountFromOrganizationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOrganizationalUnitCommandOutput | UpdatePolicyCommandOutput;
66
+ export declare type ServiceInputTypes = AcceptHandshakeCommandInput | AttachPolicyCommandInput | CancelHandshakeCommandInput | CloseAccountCommandInput | CreateAccountCommandInput | CreateGovCloudAccountCommandInput | CreateOrganizationCommandInput | CreateOrganizationalUnitCommandInput | CreatePolicyCommandInput | DeclineHandshakeCommandInput | DeleteOrganizationCommandInput | DeleteOrganizationalUnitCommandInput | DeletePolicyCommandInput | DeleteResourcePolicyCommandInput | DeregisterDelegatedAdministratorCommandInput | DescribeAccountCommandInput | DescribeCreateAccountStatusCommandInput | DescribeEffectivePolicyCommandInput | DescribeHandshakeCommandInput | DescribeOrganizationCommandInput | DescribeOrganizationalUnitCommandInput | DescribePolicyCommandInput | DescribeResourcePolicyCommandInput | DetachPolicyCommandInput | DisableAWSServiceAccessCommandInput | DisablePolicyTypeCommandInput | EnableAWSServiceAccessCommandInput | EnableAllFeaturesCommandInput | EnablePolicyTypeCommandInput | InviteAccountToOrganizationCommandInput | LeaveOrganizationCommandInput | ListAWSServiceAccessForOrganizationCommandInput | ListAccountsCommandInput | ListAccountsForParentCommandInput | ListChildrenCommandInput | ListCreateAccountStatusCommandInput | ListDelegatedAdministratorsCommandInput | ListDelegatedServicesForAccountCommandInput | ListHandshakesForAccountCommandInput | ListHandshakesForOrganizationCommandInput | ListOrganizationalUnitsForParentCommandInput | ListParentsCommandInput | ListPoliciesCommandInput | ListPoliciesForTargetCommandInput | ListRootsCommandInput | ListTagsForResourceCommandInput | ListTargetsForPolicyCommandInput | MoveAccountCommandInput | PutResourcePolicyCommandInput | RegisterDelegatedAdministratorCommandInput | RemoveAccountFromOrganizationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOrganizationalUnitCommandInput | UpdatePolicyCommandInput;
67
+ export declare type ServiceOutputTypes = AcceptHandshakeCommandOutput | AttachPolicyCommandOutput | CancelHandshakeCommandOutput | CloseAccountCommandOutput | CreateAccountCommandOutput | CreateGovCloudAccountCommandOutput | CreateOrganizationCommandOutput | CreateOrganizationalUnitCommandOutput | CreatePolicyCommandOutput | DeclineHandshakeCommandOutput | DeleteOrganizationCommandOutput | DeleteOrganizationalUnitCommandOutput | DeletePolicyCommandOutput | DeleteResourcePolicyCommandOutput | DeregisterDelegatedAdministratorCommandOutput | DescribeAccountCommandOutput | DescribeCreateAccountStatusCommandOutput | DescribeEffectivePolicyCommandOutput | DescribeHandshakeCommandOutput | DescribeOrganizationCommandOutput | DescribeOrganizationalUnitCommandOutput | DescribePolicyCommandOutput | DescribeResourcePolicyCommandOutput | DetachPolicyCommandOutput | DisableAWSServiceAccessCommandOutput | DisablePolicyTypeCommandOutput | EnableAWSServiceAccessCommandOutput | EnableAllFeaturesCommandOutput | EnablePolicyTypeCommandOutput | InviteAccountToOrganizationCommandOutput | LeaveOrganizationCommandOutput | ListAWSServiceAccessForOrganizationCommandOutput | ListAccountsCommandOutput | ListAccountsForParentCommandOutput | ListChildrenCommandOutput | ListCreateAccountStatusCommandOutput | ListDelegatedAdministratorsCommandOutput | ListDelegatedServicesForAccountCommandOutput | ListHandshakesForAccountCommandOutput | ListHandshakesForOrganizationCommandOutput | ListOrganizationalUnitsForParentCommandOutput | ListParentsCommandOutput | ListPoliciesCommandOutput | ListPoliciesForTargetCommandOutput | ListRootsCommandOutput | ListTagsForResourceCommandOutput | ListTargetsForPolicyCommandOutput | MoveAccountCommandOutput | PutResourcePolicyCommandOutput | RegisterDelegatedAdministratorCommandOutput | RemoveAccountFromOrganizationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOrganizationalUnitCommandOutput | UpdatePolicyCommandOutput;
65
68
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
66
69
  /**
67
70
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -10,7 +10,7 @@ export interface AcceptHandshakeCommandOutput extends AcceptHandshakeResponse, _
10
10
  /**
11
11
  * <p>Sends a response to the originator of a handshake agreeing to the action proposed by
12
12
  * the handshake request.</p>
13
- * <p>This operation can be called only by the following principals when they also have the
13
+ * <p>You can only call this operation by the following principals when they also have the
14
14
  * relevant IAM permissions:</p>
15
15
  * <ul>
16
16
  * <li>
@@ -44,9 +44,9 @@ export interface CloseAccountCommandOutput extends __MetadataBearer {
44
44
  * grace period while the account is in SUSPENDED status. </p>
45
45
  * </li>
46
46
  * <li>
47
- * <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud (US)
48
- * account, the <code>CloseAccount</code> request will close both accounts. To
49
- * learn important pre-closure details, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html">
47
+ * <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud
48
+ * (US) account, the <code>CloseAccount</code> request will close both
49
+ * accounts. To learn important pre-closure details, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html">
50
50
  * Closing an Amazon Web Services GovCloud (US) account</a> in the <i>
51
51
  * Amazon Web Services GovCloud User Guide</i>.</p>
52
52
  * </li>
@@ -16,8 +16,8 @@ export interface CreateAccountCommandOutput extends CreateAccountResponse, __Met
16
16
  * account. To check the status of the request, do one of the following:</p>
17
17
  * <ul>
18
18
  * <li>
19
- * <p>Use the <code>Id</code> member of the <code>CreateAccountStatus</code>
20
- * response element from this operation to provide as a parameter to the <a>DescribeCreateAccountStatus</a> operation.</p>
19
+ * <p>Use the <code>Id</code> value of the <code>CreateAccountStatus</code> response
20
+ * element from this operation to provide as a parameter to the <a>DescribeCreateAccountStatus</a> operation.</p>
21
21
  * </li>
22
22
  * <li>
23
23
  * <p>Check the CloudTrail log for the <code>CreateAccountResult</code> event. For
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { OrganizationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OrganizationsClient";
5
+ export interface DeleteResourcePolicyCommandInput {
6
+ }
7
+ export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Deletes the resource policy from your organization.</p>
11
+ * <p>You can only call this operation from the organization's management account.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { OrganizationsClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-organizations"; // ES Modules import
16
+ * // const { OrganizationsClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
17
+ * const client = new OrganizationsClient(config);
18
+ * const command = new DeleteResourcePolicyCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
23
+ * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
24
+ * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DeleteResourcePolicyCommand extends $Command<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, OrganizationsClientResolvedConfig> {
28
+ readonly input: DeleteResourcePolicyCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DeleteResourcePolicyCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { DescribeResourcePolicyResponse } from "../models/models_0";
5
+ import { OrganizationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OrganizationsClient";
6
+ export interface DescribeResourcePolicyCommandInput {
7
+ }
8
+ export interface DescribeResourcePolicyCommandOutput extends DescribeResourcePolicyResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Retrieves information about a resource policy.</p>
12
+ * <p>You can only call this operation from the organization's management account or by a member account that is a delegated administrator for an AWS service.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { OrganizationsClient, DescribeResourcePolicyCommand } from "@aws-sdk/client-organizations"; // ES Modules import
17
+ * // const { OrganizationsClient, DescribeResourcePolicyCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
18
+ * const client = new OrganizationsClient(config);
19
+ * const command = new DescribeResourcePolicyCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link DescribeResourcePolicyCommandInput} for command's `input` shape.
24
+ * @see {@link DescribeResourcePolicyCommandOutput} for command's `response` shape.
25
+ * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class DescribeResourcePolicyCommand extends $Command<DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput, OrganizationsClientResolvedConfig> {
29
+ readonly input: DescribeResourcePolicyCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: DescribeResourcePolicyCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -25,7 +25,7 @@ export interface EnableAWSServiceAccessCommandOutput extends __MetadataBearer {
25
25
  * Organizations with Other Amazon Web Services Services</a> in the
26
26
  * <i>Organizations User Guide.</i>
27
27
  * </p>
28
- * <p>This operation can be called only from the organization's management account and only
28
+ * <p>You can only call this operation from the organization's management account and only
29
29
  * if the organization has <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">enabled all
30
30
  * features</a>.</p>
31
31
  * @example
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
5
+ import { OrganizationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OrganizationsClient";
6
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
7
+ }
8
+ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Creates or updates a resource policy.</p>
12
+ * <p>You can only call this operation from the organization's management account.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { OrganizationsClient, PutResourcePolicyCommand } from "@aws-sdk/client-organizations"; // ES Modules import
17
+ * // const { OrganizationsClient, PutResourcePolicyCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
18
+ * const client = new OrganizationsClient(config);
19
+ * const command = new PutResourcePolicyCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
24
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
25
+ * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class PutResourcePolicyCommand extends $Command<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, OrganizationsClientResolvedConfig> {
29
+ readonly input: PutResourcePolicyCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: PutResourcePolicyCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OrganizationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -11,6 +11,7 @@ export * from "./DeclineHandshakeCommand";
11
11
  export * from "./DeleteOrganizationCommand";
12
12
  export * from "./DeleteOrganizationalUnitCommand";
13
13
  export * from "./DeletePolicyCommand";
14
+ export * from "./DeleteResourcePolicyCommand";
14
15
  export * from "./DeregisterDelegatedAdministratorCommand";
15
16
  export * from "./DescribeAccountCommand";
16
17
  export * from "./DescribeCreateAccountStatusCommand";
@@ -19,6 +20,7 @@ export * from "./DescribeHandshakeCommand";
19
20
  export * from "./DescribeOrganizationCommand";
20
21
  export * from "./DescribeOrganizationalUnitCommand";
21
22
  export * from "./DescribePolicyCommand";
23
+ export * from "./DescribeResourcePolicyCommand";
22
24
  export * from "./DetachPolicyCommand";
23
25
  export * from "./DisableAWSServiceAccessCommand";
24
26
  export * from "./DisablePolicyTypeCommand";
@@ -44,6 +46,7 @@ export * from "./ListRootsCommand";
44
46
  export * from "./ListTagsForResourceCommand";
45
47
  export * from "./ListTargetsForPolicyCommand";
46
48
  export * from "./MoveAccountCommand";
49
+ export * from "./PutResourcePolicyCommand";
47
50
  export * from "./RegisterDelegatedAdministratorCommand";
48
51
  export * from "./RemoveAccountFromOrganizationCommand";
49
52
  export * from "./TagResourceCommand";
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -246,6 +246,7 @@ export declare enum InvalidInputExceptionReason {
246
246
  INVALID_PARTY_TYPE_TARGET = "INVALID_PARTY_TYPE_TARGET",
247
247
  INVALID_PATTERN = "INVALID_PATTERN",
248
248
  INVALID_PATTERN_TARGET_ID = "INVALID_PATTERN_TARGET_ID",
249
+ INVALID_RESOURCE_POLICY_JSON = "INVALID_RESOURCE_POLICY_JSON",
249
250
  INVALID_ROLE_NAME = "INVALID_ROLE_NAME",
250
251
  INVALID_SYNTAX_ORGANIZATION = "INVALID_SYNTAX_ORGANIZATION_ARN",
251
252
  INVALID_SYNTAX_POLICY = "INVALID_SYNTAX_POLICY_ID",
@@ -257,7 +258,10 @@ export declare enum InvalidInputExceptionReason {
257
258
  MIN_VALUE_EXCEEDED = "MIN_VALUE_EXCEEDED",
258
259
  MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS = "MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS",
259
260
  TARGET_NOT_SUPPORTED = "TARGET_NOT_SUPPORTED",
260
- UNRECOGNIZED_SERVICE_PRINCIPAL = "UNRECOGNIZED_SERVICE_PRINCIPAL"
261
+ UNRECOGNIZED_SERVICE_PRINCIPAL = "UNRECOGNIZED_SERVICE_PRINCIPAL",
262
+ UNSUPPORTED_ACTION_IN_RESOURCE_POLICY = "UNSUPPORTED_ACTION_IN_RESOURCE_POLICY",
263
+ UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY = "UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY",
264
+ UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY = "UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY"
261
265
  }
262
266
  /**
263
267
  * <p>The requested operation failed because you provided invalid values for one or more of
@@ -993,8 +997,7 @@ export interface CreateAccountRequest {
993
997
  */
994
998
  AccountName: string | undefined;
995
999
  /**
996
- * <p>(Optional)</p>
997
- * <p>The name of an IAM role that Organizations automatically preconfigures in the new member
1000
+ * <p>The name of an IAM role that Organizations automatically preconfigures in the new member
998
1001
  * account. This role trusts the management account, allowing users in the management
999
1002
  * account to assume the role, as permitted by the management account administrator. The
1000
1003
  * role has administrator permissions in the new member account.</p>
@@ -1061,7 +1064,8 @@ export declare enum CreateAccountFailureReason {
1061
1064
  MISSING_BUSINESS_VALIDATION = "MISSING_BUSINESS_VALIDATION",
1062
1065
  MISSING_PAYMENT_INSTRUMENT = "MISSING_PAYMENT_INSTRUMENT",
1063
1066
  PENDING_BUSINESS_VALIDATIONv = "PENDING_BUSINESS_VALIDATION",
1064
- UNKNOWN_BUSINESS_VALIDATION = "UNKNOWN_BUSINESS_VALIDATION"
1067
+ UNKNOWN_BUSINESS_VALIDATION = "UNKNOWN_BUSINESS_VALIDATION",
1068
+ UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED = "UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"
1065
1069
  }
1066
1070
  export declare enum CreateAccountState {
1067
1071
  FAILED = "FAILED",
@@ -1765,6 +1769,18 @@ export declare class PolicyInUseException extends __BaseException {
1765
1769
  */
1766
1770
  constructor(opts: __ExceptionOptionType<PolicyInUseException, __BaseException>);
1767
1771
  }
1772
+ /**
1773
+ * <p>We can't find a resource policy request with the parameter that you specified.</p>
1774
+ */
1775
+ export declare class ResourcePolicyNotFoundException extends __BaseException {
1776
+ readonly name: "ResourcePolicyNotFoundException";
1777
+ readonly $fault: "client";
1778
+ Message?: string;
1779
+ /**
1780
+ * @internal
1781
+ */
1782
+ constructor(opts: __ExceptionOptionType<ResourcePolicyNotFoundException, __BaseException>);
1783
+ }
1768
1784
  export interface DeregisterDelegatedAdministratorRequest {
1769
1785
  /**
1770
1786
  * <p>The account ID number of the member account in the organization that you want to
@@ -1962,6 +1978,38 @@ export interface DescribePolicyResponse {
1962
1978
  */
1963
1979
  Policy?: Policy;
1964
1980
  }
1981
+ /**
1982
+ * <p>A structure that contains resource policy ID and Amazon Resource Name (ARN).</p>
1983
+ */
1984
+ export interface ResourcePolicySummary {
1985
+ /**
1986
+ * <p>The unique identifier (ID) of the resource policy.</p>
1987
+ */
1988
+ Id?: string;
1989
+ /**
1990
+ * <p>The Amazon Resource Name (ARN) of the resource policy.</p>
1991
+ */
1992
+ Arn?: string;
1993
+ }
1994
+ /**
1995
+ * <p>A structure that contains details about a resource policy.</p>
1996
+ */
1997
+ export interface ResourcePolicy {
1998
+ /**
1999
+ * <p>A structure that contains resource policy ID and Amazon Resource Name (ARN).</p>
2000
+ */
2001
+ ResourcePolicySummary?: ResourcePolicySummary;
2002
+ /**
2003
+ * <p>The policy text of the resource policy.</p>
2004
+ */
2005
+ Content?: string;
2006
+ }
2007
+ export interface DescribeResourcePolicyResponse {
2008
+ /**
2009
+ * <p>A structure that contains details about the resource policy.</p>
2010
+ */
2011
+ ResourcePolicy?: ResourcePolicy;
2012
+ }
1965
2013
  export interface DetachPolicyRequest {
1966
2014
  /**
1967
2015
  * <p>The unique identifier (ID) of the policy you want to detach. You can get the ID from
@@ -3293,6 +3341,33 @@ export declare class SourceParentNotFoundException extends __BaseException {
3293
3341
  */
3294
3342
  constructor(opts: __ExceptionOptionType<SourceParentNotFoundException, __BaseException>);
3295
3343
  }
3344
+ export interface PutResourcePolicyRequest {
3345
+ /**
3346
+ * <p>If provided, the new content for the resource policy. The text must be correctly formatted JSON
3347
+ * that complies with the syntax for the resource policy's type. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html">Service
3348
+ * Control Policy Syntax</a> in the <i>Organizations User Guide.</i>
3349
+ * </p>
3350
+ */
3351
+ Content: string | undefined;
3352
+ /**
3353
+ * <p>Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in
3354
+ * the list, you must specify both a tag key and a value. You can set the value to an empty
3355
+ * string, but you can't set it to <code>null</code>. For more information about tagging,
3356
+ * see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tagging.html">Tagging Organizations
3357
+ * resources</a> in the Organizations User Guide.</p>
3358
+ * <note>
3359
+ * <p>Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for
3360
+ * the resource policy, then the entire request fails and the resource policy is not created. </p>
3361
+ * </note>
3362
+ */
3363
+ Tags?: Tag[];
3364
+ }
3365
+ export interface PutResourcePolicyResponse {
3366
+ /**
3367
+ * <p>A structure that contains details about the resource policy.</p>
3368
+ */
3369
+ ResourcePolicy?: ResourcePolicy;
3370
+ }
3296
3371
  export interface RegisterDelegatedAdministratorRequest {
3297
3372
  /**
3298
3373
  * <p>The account ID number of the member account in the organization to register as a
@@ -3839,6 +3914,18 @@ export declare const DescribePolicyRequestFilterSensitiveLog: (obj: DescribePoli
3839
3914
  * @internal
3840
3915
  */
3841
3916
  export declare const DescribePolicyResponseFilterSensitiveLog: (obj: DescribePolicyResponse) => any;
3917
+ /**
3918
+ * @internal
3919
+ */
3920
+ export declare const ResourcePolicySummaryFilterSensitiveLog: (obj: ResourcePolicySummary) => any;
3921
+ /**
3922
+ * @internal
3923
+ */
3924
+ export declare const ResourcePolicyFilterSensitiveLog: (obj: ResourcePolicy) => any;
3925
+ /**
3926
+ * @internal
3927
+ */
3928
+ export declare const DescribeResourcePolicyResponseFilterSensitiveLog: (obj: DescribeResourcePolicyResponse) => any;
3842
3929
  /**
3843
3930
  * @internal
3844
3931
  */
@@ -4031,6 +4118,14 @@ export declare const ListTargetsForPolicyResponseFilterSensitiveLog: (obj: ListT
4031
4118
  * @internal
4032
4119
  */
4033
4120
  export declare const MoveAccountRequestFilterSensitiveLog: (obj: MoveAccountRequest) => any;
4121
+ /**
4122
+ * @internal
4123
+ */
4124
+ export declare const PutResourcePolicyRequestFilterSensitiveLog: (obj: PutResourcePolicyRequest) => any;
4125
+ /**
4126
+ * @internal
4127
+ */
4128
+ export declare const PutResourcePolicyResponseFilterSensitiveLog: (obj: PutResourcePolicyResponse) => any;
4034
4129
  /**
4035
4130
  * @internal
4036
4131
  */
@@ -13,6 +13,7 @@ import { DeclineHandshakeCommandInput, DeclineHandshakeCommandOutput } from "../
13
13
  import { DeleteOrganizationalUnitCommandInput, DeleteOrganizationalUnitCommandOutput } from "../commands/DeleteOrganizationalUnitCommand";
14
14
  import { DeleteOrganizationCommandInput, DeleteOrganizationCommandOutput } from "../commands/DeleteOrganizationCommand";
15
15
  import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "../commands/DeletePolicyCommand";
16
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "../commands/DeleteResourcePolicyCommand";
16
17
  import { DeregisterDelegatedAdministratorCommandInput, DeregisterDelegatedAdministratorCommandOutput } from "../commands/DeregisterDelegatedAdministratorCommand";
17
18
  import { DescribeAccountCommandInput, DescribeAccountCommandOutput } from "../commands/DescribeAccountCommand";
18
19
  import { DescribeCreateAccountStatusCommandInput, DescribeCreateAccountStatusCommandOutput } from "../commands/DescribeCreateAccountStatusCommand";
@@ -21,6 +22,7 @@ import { DescribeHandshakeCommandInput, DescribeHandshakeCommandOutput } from ".
21
22
  import { DescribeOrganizationalUnitCommandInput, DescribeOrganizationalUnitCommandOutput } from "../commands/DescribeOrganizationalUnitCommand";
22
23
  import { DescribeOrganizationCommandInput, DescribeOrganizationCommandOutput } from "../commands/DescribeOrganizationCommand";
23
24
  import { DescribePolicyCommandInput, DescribePolicyCommandOutput } from "../commands/DescribePolicyCommand";
25
+ import { DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput } from "../commands/DescribeResourcePolicyCommand";
24
26
  import { DetachPolicyCommandInput, DetachPolicyCommandOutput } from "../commands/DetachPolicyCommand";
25
27
  import { DisableAWSServiceAccessCommandInput, DisableAWSServiceAccessCommandOutput } from "../commands/DisableAWSServiceAccessCommand";
26
28
  import { DisablePolicyTypeCommandInput, DisablePolicyTypeCommandOutput } from "../commands/DisablePolicyTypeCommand";
@@ -46,6 +48,7 @@ import { ListRootsCommandInput, ListRootsCommandOutput } from "../commands/ListR
46
48
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
47
49
  import { ListTargetsForPolicyCommandInput, ListTargetsForPolicyCommandOutput } from "../commands/ListTargetsForPolicyCommand";
48
50
  import { MoveAccountCommandInput, MoveAccountCommandOutput } from "../commands/MoveAccountCommand";
51
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand";
49
52
  import { RegisterDelegatedAdministratorCommandInput, RegisterDelegatedAdministratorCommandOutput } from "../commands/RegisterDelegatedAdministratorCommand";
50
53
  import { RemoveAccountFromOrganizationCommandInput, RemoveAccountFromOrganizationCommandOutput } from "../commands/RemoveAccountFromOrganizationCommand";
51
54
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
@@ -65,6 +68,7 @@ export declare const serializeAws_json1_1DeclineHandshakeCommand: (input: Declin
65
68
  export declare const serializeAws_json1_1DeleteOrganizationCommand: (input: DeleteOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
66
69
  export declare const serializeAws_json1_1DeleteOrganizationalUnitCommand: (input: DeleteOrganizationalUnitCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
70
  export declare const serializeAws_json1_1DeletePolicyCommand: (input: DeletePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
+ export declare const serializeAws_json1_1DeleteResourcePolicyCommand: (input: DeleteResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
72
  export declare const serializeAws_json1_1DeregisterDelegatedAdministratorCommand: (input: DeregisterDelegatedAdministratorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
69
73
  export declare const serializeAws_json1_1DescribeAccountCommand: (input: DescribeAccountCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
74
  export declare const serializeAws_json1_1DescribeCreateAccountStatusCommand: (input: DescribeCreateAccountStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -73,6 +77,7 @@ export declare const serializeAws_json1_1DescribeHandshakeCommand: (input: Descr
73
77
  export declare const serializeAws_json1_1DescribeOrganizationCommand: (input: DescribeOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
74
78
  export declare const serializeAws_json1_1DescribeOrganizationalUnitCommand: (input: DescribeOrganizationalUnitCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
79
  export declare const serializeAws_json1_1DescribePolicyCommand: (input: DescribePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
+ export declare const serializeAws_json1_1DescribeResourcePolicyCommand: (input: DescribeResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
81
  export declare const serializeAws_json1_1DetachPolicyCommand: (input: DetachPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
77
82
  export declare const serializeAws_json1_1DisableAWSServiceAccessCommand: (input: DisableAWSServiceAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
83
  export declare const serializeAws_json1_1DisablePolicyTypeCommand: (input: DisablePolicyTypeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -98,6 +103,7 @@ export declare const serializeAws_json1_1ListRootsCommand: (input: ListRootsComm
98
103
  export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
99
104
  export declare const serializeAws_json1_1ListTargetsForPolicyCommand: (input: ListTargetsForPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
100
105
  export declare const serializeAws_json1_1MoveAccountCommand: (input: MoveAccountCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
106
+ export declare const serializeAws_json1_1PutResourcePolicyCommand: (input: PutResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
101
107
  export declare const serializeAws_json1_1RegisterDelegatedAdministratorCommand: (input: RegisterDelegatedAdministratorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
102
108
  export declare const serializeAws_json1_1RemoveAccountFromOrganizationCommand: (input: RemoveAccountFromOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
103
109
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -117,6 +123,7 @@ export declare const deserializeAws_json1_1DeclineHandshakeCommand: (output: __H
117
123
  export declare const deserializeAws_json1_1DeleteOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteOrganizationCommandOutput>;
118
124
  export declare const deserializeAws_json1_1DeleteOrganizationalUnitCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteOrganizationalUnitCommandOutput>;
119
125
  export declare const deserializeAws_json1_1DeletePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePolicyCommandOutput>;
126
+ export declare const deserializeAws_json1_1DeleteResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteResourcePolicyCommandOutput>;
120
127
  export declare const deserializeAws_json1_1DeregisterDelegatedAdministratorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeregisterDelegatedAdministratorCommandOutput>;
121
128
  export declare const deserializeAws_json1_1DescribeAccountCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAccountCommandOutput>;
122
129
  export declare const deserializeAws_json1_1DescribeCreateAccountStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeCreateAccountStatusCommandOutput>;
@@ -125,6 +132,7 @@ export declare const deserializeAws_json1_1DescribeHandshakeCommand: (output: __
125
132
  export declare const deserializeAws_json1_1DescribeOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeOrganizationCommandOutput>;
126
133
  export declare const deserializeAws_json1_1DescribeOrganizationalUnitCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeOrganizationalUnitCommandOutput>;
127
134
  export declare const deserializeAws_json1_1DescribePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribePolicyCommandOutput>;
135
+ export declare const deserializeAws_json1_1DescribeResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeResourcePolicyCommandOutput>;
128
136
  export declare const deserializeAws_json1_1DetachPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetachPolicyCommandOutput>;
129
137
  export declare const deserializeAws_json1_1DisableAWSServiceAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableAWSServiceAccessCommandOutput>;
130
138
  export declare const deserializeAws_json1_1DisablePolicyTypeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisablePolicyTypeCommandOutput>;
@@ -150,6 +158,7 @@ export declare const deserializeAws_json1_1ListRootsCommand: (output: __HttpResp
150
158
  export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
151
159
  export declare const deserializeAws_json1_1ListTargetsForPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTargetsForPolicyCommandOutput>;
152
160
  export declare const deserializeAws_json1_1MoveAccountCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<MoveAccountCommandOutput>;
161
+ export declare const deserializeAws_json1_1PutResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutResourcePolicyCommandOutput>;
153
162
  export declare const deserializeAws_json1_1RegisterDelegatedAdministratorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterDelegatedAdministratorCommandOutput>;
154
163
  export declare const deserializeAws_json1_1RemoveAccountFromOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveAccountFromOrganizationCommandOutput>;
155
164
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
@@ -51,6 +51,10 @@ import {
51
51
  DeletePolicyCommandInput,
52
52
  DeletePolicyCommandOutput,
53
53
  } from "./commands/DeletePolicyCommand";
54
+ import {
55
+ DeleteResourcePolicyCommandInput,
56
+ DeleteResourcePolicyCommandOutput,
57
+ } from "./commands/DeleteResourcePolicyCommand";
54
58
  import {
55
59
  DeregisterDelegatedAdministratorCommandInput,
56
60
  DeregisterDelegatedAdministratorCommandOutput,
@@ -83,6 +87,10 @@ import {
83
87
  DescribePolicyCommandInput,
84
88
  DescribePolicyCommandOutput,
85
89
  } from "./commands/DescribePolicyCommand";
90
+ import {
91
+ DescribeResourcePolicyCommandInput,
92
+ DescribeResourcePolicyCommandOutput,
93
+ } from "./commands/DescribeResourcePolicyCommand";
86
94
  import {
87
95
  DetachPolicyCommandInput,
88
96
  DetachPolicyCommandOutput,
@@ -183,6 +191,10 @@ import {
183
191
  MoveAccountCommandInput,
184
192
  MoveAccountCommandOutput,
185
193
  } from "./commands/MoveAccountCommand";
194
+ import {
195
+ PutResourcePolicyCommandInput,
196
+ PutResourcePolicyCommandOutput,
197
+ } from "./commands/PutResourcePolicyCommand";
186
198
  import {
187
199
  RegisterDelegatedAdministratorCommandInput,
188
200
  RegisterDelegatedAdministratorCommandOutput,
@@ -378,6 +390,19 @@ export declare class Organizations extends OrganizationsClient {
378
390
  options: __HttpHandlerOptions,
379
391
  cb: (err: any, data?: DeletePolicyCommandOutput) => void
380
392
  ): void;
393
+ deleteResourcePolicy(
394
+ args: DeleteResourcePolicyCommandInput,
395
+ options?: __HttpHandlerOptions
396
+ ): Promise<DeleteResourcePolicyCommandOutput>;
397
+ deleteResourcePolicy(
398
+ args: DeleteResourcePolicyCommandInput,
399
+ cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
400
+ ): void;
401
+ deleteResourcePolicy(
402
+ args: DeleteResourcePolicyCommandInput,
403
+ options: __HttpHandlerOptions,
404
+ cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
405
+ ): void;
381
406
  deregisterDelegatedAdministrator(
382
407
  args: DeregisterDelegatedAdministratorCommandInput,
383
408
  options?: __HttpHandlerOptions
@@ -482,6 +507,19 @@ export declare class Organizations extends OrganizationsClient {
482
507
  options: __HttpHandlerOptions,
483
508
  cb: (err: any, data?: DescribePolicyCommandOutput) => void
484
509
  ): void;
510
+ describeResourcePolicy(
511
+ args: DescribeResourcePolicyCommandInput,
512
+ options?: __HttpHandlerOptions
513
+ ): Promise<DescribeResourcePolicyCommandOutput>;
514
+ describeResourcePolicy(
515
+ args: DescribeResourcePolicyCommandInput,
516
+ cb: (err: any, data?: DescribeResourcePolicyCommandOutput) => void
517
+ ): void;
518
+ describeResourcePolicy(
519
+ args: DescribeResourcePolicyCommandInput,
520
+ options: __HttpHandlerOptions,
521
+ cb: (err: any, data?: DescribeResourcePolicyCommandOutput) => void
522
+ ): void;
485
523
  detachPolicy(
486
524
  args: DetachPolicyCommandInput,
487
525
  options?: __HttpHandlerOptions
@@ -813,6 +851,19 @@ export declare class Organizations extends OrganizationsClient {
813
851
  options: __HttpHandlerOptions,
814
852
  cb: (err: any, data?: MoveAccountCommandOutput) => void
815
853
  ): void;
854
+ putResourcePolicy(
855
+ args: PutResourcePolicyCommandInput,
856
+ options?: __HttpHandlerOptions
857
+ ): Promise<PutResourcePolicyCommandOutput>;
858
+ putResourcePolicy(
859
+ args: PutResourcePolicyCommandInput,
860
+ cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
861
+ ): void;
862
+ putResourcePolicy(
863
+ args: PutResourcePolicyCommandInput,
864
+ options: __HttpHandlerOptions,
865
+ cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
866
+ ): void;
816
867
  registerDelegatedAdministrator(
817
868
  args: RegisterDelegatedAdministratorCommandInput,
818
869
  options?: __HttpHandlerOptions