@aws-sdk/client-organizations 3.288.0 → 3.290.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.
- package/dist-types/commands/AcceptHandshakeCommand.d.ts +265 -0
- package/dist-types/commands/AttachPolicyCommand.d.ts +378 -0
- package/dist-types/commands/CancelHandshakeCommand.d.ts +201 -0
- package/dist-types/commands/CloseAccountCommand.d.ts +343 -0
- package/dist-types/commands/CreateAccountCommand.d.ts +358 -0
- package/dist-types/commands/CreateGovCloudAccountCommand.d.ts +336 -0
- package/dist-types/commands/CreateOrganizationCommand.d.ts +389 -0
- package/dist-types/commands/CreateOrganizationalUnitCommand.d.ts +357 -0
- package/dist-types/commands/CreatePolicyCommand.d.ts +377 -0
- package/dist-types/commands/DeclineHandshakeCommand.d.ts +196 -0
- package/dist-types/commands/DeleteOrganizationCommand.d.ts +135 -0
- package/dist-types/commands/DeleteOrganizationalUnitCommand.d.ts +152 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +154 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +230 -0
- package/dist-types/commands/DeregisterDelegatedAdministratorCommand.d.ts +339 -0
- package/dist-types/commands/DescribeAccountCommand.d.ts +153 -0
- package/dist-types/commands/DescribeCreateAccountStatusCommand.d.ts +154 -0
- package/dist-types/commands/DescribeEffectivePolicyCommand.d.ts +337 -0
- package/dist-types/commands/DescribeHandshakeCommand.d.ts +183 -0
- package/dist-types/commands/DescribeOrganizationCommand.d.ts +53 -0
- package/dist-types/commands/DescribeOrganizationalUnitCommand.d.ts +151 -0
- package/dist-types/commands/DescribePolicyCommand.d.ts +159 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +226 -0
- package/dist-types/commands/DetachPolicyCommand.d.ts +357 -0
- package/dist-types/commands/DisableAWSServiceAccessCommand.d.ts +331 -0
- package/dist-types/commands/DisablePolicyTypeCommand.d.ts +367 -0
- package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +331 -0
- package/dist-types/commands/EnableAllFeaturesCommand.d.ts +223 -0
- package/dist-types/commands/EnablePolicyTypeCommand.d.ts +375 -0
- package/dist-types/commands/InviteAccountToOrganizationCommand.d.ts +467 -0
- package/dist-types/commands/LeaveOrganizationCommand.d.ts +347 -0
- package/dist-types/commands/ListAWSServiceAccessForOrganizationCommand.d.ts +327 -0
- package/dist-types/commands/ListAccountsCommand.d.ts +178 -0
- package/dist-types/commands/ListAccountsForParentCommand.d.ts +165 -0
- package/dist-types/commands/ListChildrenCommand.d.ts +156 -0
- package/dist-types/commands/ListCreateAccountStatusCommand.d.ts +182 -0
- package/dist-types/commands/ListDelegatedAdministratorsCommand.d.ts +327 -0
- package/dist-types/commands/ListDelegatedServicesForAccountCommand.d.ts +335 -0
- package/dist-types/commands/ListHandshakesForAccountCommand.d.ts +184 -0
- package/dist-types/commands/ListHandshakesForOrganizationCommand.d.ts +230 -0
- package/dist-types/commands/ListOrganizationalUnitsForParentCommand.d.ts +157 -0
- package/dist-types/commands/ListParentsCommand.d.ts +152 -0
- package/dist-types/commands/ListPoliciesCommand.d.ts +171 -0
- package/dist-types/commands/ListPoliciesForTargetCommand.d.ts +160 -0
- package/dist-types/commands/ListRootsCommand.d.ts +153 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +131 -0
- package/dist-types/commands/ListTargetsForPolicyCommand.d.ts +168 -0
- package/dist-types/commands/MoveAccountCommand.d.ts +160 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +331 -0
- package/dist-types/commands/RegisterDelegatedAdministratorCommand.d.ts +340 -0
- package/dist-types/commands/RemoveAccountFromOrganizationCommand.d.ts +349 -0
- package/dist-types/commands/TagResourceCommand.d.ts +332 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +332 -0
- package/dist-types/commands/UpdateOrganizationalUnitCommand.d.ts +159 -0
- package/dist-types/commands/UpdatePolicyCommand.d.ts +403 -0
- package/package.json +29 -29
|
@@ -29,6 +29,141 @@ export interface DeleteOrganizationCommandOutput extends __MetadataBearer {
|
|
|
29
29
|
* @see {@link DeleteOrganizationCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
33
|
+
* <p>You don't have permissions to perform the requested operation. The user or role that
|
|
34
|
+
* is making the request must have at least one IAM permissions policy attached that
|
|
35
|
+
* grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
|
|
36
|
+
* <i>IAM User Guide.</i>
|
|
37
|
+
* </p>
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link AWSOrganizationsNotInUseException} (client fault)
|
|
40
|
+
* <p>Your account isn't a member of an organization. To make this request, you must use the
|
|
41
|
+
* credentials of an account that belongs to an organization.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link ConcurrentModificationException} (client fault)
|
|
44
|
+
* <p>The target of the operation is currently being modified by a different request. Try
|
|
45
|
+
* again later.</p>
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
48
|
+
* <p>The requested operation failed because you provided invalid values for one or more of
|
|
49
|
+
* the request parameters. This exception includes a reason that contains additional
|
|
50
|
+
* information about the violated limit:</p>
|
|
51
|
+
* <note>
|
|
52
|
+
* <p>Some of the reasons in the following list might not be applicable to this specific
|
|
53
|
+
* API or operation.</p>
|
|
54
|
+
* </note>
|
|
55
|
+
* <ul>
|
|
56
|
+
* <li>
|
|
57
|
+
* <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
|
|
58
|
+
* entity.</p>
|
|
59
|
+
* </li>
|
|
60
|
+
* <li>
|
|
61
|
+
* <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
|
|
62
|
+
* modified.</p>
|
|
63
|
+
* </li>
|
|
64
|
+
* <li>
|
|
65
|
+
* <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
|
|
66
|
+
* </li>
|
|
67
|
+
* <li>
|
|
68
|
+
* <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
|
|
69
|
+
* invited account owner.</p>
|
|
70
|
+
* </li>
|
|
71
|
+
* <li>
|
|
72
|
+
* <p>INVALID_ENUM: You specified an invalid value.</p>
|
|
73
|
+
* </li>
|
|
74
|
+
* <li>
|
|
75
|
+
* <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
|
|
76
|
+
* </li>
|
|
77
|
+
* <li>
|
|
78
|
+
* <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
|
|
79
|
+
* characters.</p>
|
|
80
|
+
* </li>
|
|
81
|
+
* <li>
|
|
82
|
+
* <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
|
|
83
|
+
* one invalid value.</p>
|
|
84
|
+
* </li>
|
|
85
|
+
* <li>
|
|
86
|
+
* <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
|
|
87
|
+
* parameter from the response to a previous call of the operation.</p>
|
|
88
|
+
* </li>
|
|
89
|
+
* <li>
|
|
90
|
+
* <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
|
|
91
|
+
* organization, or email) as a party.</p>
|
|
92
|
+
* </li>
|
|
93
|
+
* <li>
|
|
94
|
+
* <p>INVALID_PATTERN: You provided a value that doesn't match the required
|
|
95
|
+
* pattern.</p>
|
|
96
|
+
* </li>
|
|
97
|
+
* <li>
|
|
98
|
+
* <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
|
|
99
|
+
* the required pattern.</p>
|
|
100
|
+
* </li>
|
|
101
|
+
* <li>
|
|
102
|
+
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
|
|
103
|
+
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
|
|
104
|
+
* </li>
|
|
105
|
+
* <li>
|
|
106
|
+
* <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
|
|
107
|
+
* (ARN) for the organization.</p>
|
|
108
|
+
* </li>
|
|
109
|
+
* <li>
|
|
110
|
+
* <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
|
|
111
|
+
* </li>
|
|
112
|
+
* <li>
|
|
113
|
+
* <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
|
|
114
|
+
* You can’t add, edit, or delete system tag keys because they're reserved for
|
|
115
|
+
* Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
|
|
116
|
+
* </li>
|
|
117
|
+
* <li>
|
|
118
|
+
* <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
|
|
119
|
+
* operation.</p>
|
|
120
|
+
* </li>
|
|
121
|
+
* <li>
|
|
122
|
+
* <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
|
|
123
|
+
* allowed.</p>
|
|
124
|
+
* </li>
|
|
125
|
+
* <li>
|
|
126
|
+
* <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
|
|
127
|
+
* than allowed.</p>
|
|
128
|
+
* </li>
|
|
129
|
+
* <li>
|
|
130
|
+
* <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
|
|
131
|
+
* allowed.</p>
|
|
132
|
+
* </li>
|
|
133
|
+
* <li>
|
|
134
|
+
* <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
|
|
135
|
+
* than allowed.</p>
|
|
136
|
+
* </li>
|
|
137
|
+
* <li>
|
|
138
|
+
* <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
|
|
139
|
+
* entities in the same root.</p>
|
|
140
|
+
* </li>
|
|
141
|
+
* <li>
|
|
142
|
+
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
|
|
143
|
+
* entity.</p>
|
|
144
|
+
* </li>
|
|
145
|
+
* <li>
|
|
146
|
+
* <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
|
|
147
|
+
* recognized.</p>
|
|
148
|
+
* </li>
|
|
149
|
+
* </ul>
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link OrganizationNotEmptyException} (client fault)
|
|
152
|
+
* <p>The organization isn't empty. To delete an organization, you must first remove all
|
|
153
|
+
* accounts except the management account, delete all OUs, and delete all policies.</p>
|
|
154
|
+
*
|
|
155
|
+
* @throws {@link ServiceException} (server fault)
|
|
156
|
+
* <p>Organizations can't complete your request because of an internal service error. Try again
|
|
157
|
+
* later.</p>
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
160
|
+
* <p>You have sent too many requests in too short a period of time. The quota helps protect
|
|
161
|
+
* against denial-of-service attacks. Try again later.</p>
|
|
162
|
+
* <p>For information about quotas that affect Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for Organizations</a>in the
|
|
163
|
+
* <i>Organizations User Guide.</i>
|
|
164
|
+
* </p>
|
|
165
|
+
*
|
|
166
|
+
*
|
|
32
167
|
*/
|
|
33
168
|
export declare class DeleteOrganizationCommand extends $Command<DeleteOrganizationCommandInput, DeleteOrganizationCommandOutput, OrganizationsClientResolvedConfig> {
|
|
34
169
|
readonly input: DeleteOrganizationCommandInput;
|
|
@@ -31,6 +31,158 @@ export interface DeleteOrganizationalUnitCommandOutput extends __MetadataBearer
|
|
|
31
31
|
* @see {@link DeleteOrganizationalUnitCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
35
|
+
* <p>You don't have permissions to perform the requested operation. The user or role that
|
|
36
|
+
* is making the request must have at least one IAM permissions policy attached that
|
|
37
|
+
* grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
|
|
38
|
+
* <i>IAM User Guide.</i>
|
|
39
|
+
* </p>
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link AWSOrganizationsNotInUseException} (client fault)
|
|
42
|
+
* <p>Your account isn't a member of an organization. To make this request, you must use the
|
|
43
|
+
* credentials of an account that belongs to an organization.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ConcurrentModificationException} (client fault)
|
|
46
|
+
* <p>The target of the operation is currently being modified by a different request. Try
|
|
47
|
+
* again later.</p>
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
50
|
+
* <p>The requested operation failed because you provided invalid values for one or more of
|
|
51
|
+
* the request parameters. This exception includes a reason that contains additional
|
|
52
|
+
* information about the violated limit:</p>
|
|
53
|
+
* <note>
|
|
54
|
+
* <p>Some of the reasons in the following list might not be applicable to this specific
|
|
55
|
+
* API or operation.</p>
|
|
56
|
+
* </note>
|
|
57
|
+
* <ul>
|
|
58
|
+
* <li>
|
|
59
|
+
* <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
|
|
60
|
+
* entity.</p>
|
|
61
|
+
* </li>
|
|
62
|
+
* <li>
|
|
63
|
+
* <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
|
|
64
|
+
* modified.</p>
|
|
65
|
+
* </li>
|
|
66
|
+
* <li>
|
|
67
|
+
* <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
|
|
68
|
+
* </li>
|
|
69
|
+
* <li>
|
|
70
|
+
* <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
|
|
71
|
+
* invited account owner.</p>
|
|
72
|
+
* </li>
|
|
73
|
+
* <li>
|
|
74
|
+
* <p>INVALID_ENUM: You specified an invalid value.</p>
|
|
75
|
+
* </li>
|
|
76
|
+
* <li>
|
|
77
|
+
* <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
|
|
78
|
+
* </li>
|
|
79
|
+
* <li>
|
|
80
|
+
* <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
|
|
81
|
+
* characters.</p>
|
|
82
|
+
* </li>
|
|
83
|
+
* <li>
|
|
84
|
+
* <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
|
|
85
|
+
* one invalid value.</p>
|
|
86
|
+
* </li>
|
|
87
|
+
* <li>
|
|
88
|
+
* <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
|
|
89
|
+
* parameter from the response to a previous call of the operation.</p>
|
|
90
|
+
* </li>
|
|
91
|
+
* <li>
|
|
92
|
+
* <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
|
|
93
|
+
* organization, or email) as a party.</p>
|
|
94
|
+
* </li>
|
|
95
|
+
* <li>
|
|
96
|
+
* <p>INVALID_PATTERN: You provided a value that doesn't match the required
|
|
97
|
+
* pattern.</p>
|
|
98
|
+
* </li>
|
|
99
|
+
* <li>
|
|
100
|
+
* <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
|
|
101
|
+
* the required pattern.</p>
|
|
102
|
+
* </li>
|
|
103
|
+
* <li>
|
|
104
|
+
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
|
|
105
|
+
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
|
|
106
|
+
* </li>
|
|
107
|
+
* <li>
|
|
108
|
+
* <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
|
|
109
|
+
* (ARN) for the organization.</p>
|
|
110
|
+
* </li>
|
|
111
|
+
* <li>
|
|
112
|
+
* <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
|
|
113
|
+
* </li>
|
|
114
|
+
* <li>
|
|
115
|
+
* <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
|
|
116
|
+
* You can’t add, edit, or delete system tag keys because they're reserved for
|
|
117
|
+
* Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
|
|
118
|
+
* </li>
|
|
119
|
+
* <li>
|
|
120
|
+
* <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
|
|
121
|
+
* operation.</p>
|
|
122
|
+
* </li>
|
|
123
|
+
* <li>
|
|
124
|
+
* <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
|
|
125
|
+
* allowed.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
|
|
129
|
+
* than allowed.</p>
|
|
130
|
+
* </li>
|
|
131
|
+
* <li>
|
|
132
|
+
* <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
|
|
133
|
+
* allowed.</p>
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>
|
|
136
|
+
* <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
|
|
137
|
+
* than allowed.</p>
|
|
138
|
+
* </li>
|
|
139
|
+
* <li>
|
|
140
|
+
* <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
|
|
141
|
+
* entities in the same root.</p>
|
|
142
|
+
* </li>
|
|
143
|
+
* <li>
|
|
144
|
+
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
|
|
145
|
+
* entity.</p>
|
|
146
|
+
* </li>
|
|
147
|
+
* <li>
|
|
148
|
+
* <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
|
|
149
|
+
* recognized.</p>
|
|
150
|
+
* </li>
|
|
151
|
+
* </ul>
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link OrganizationalUnitNotEmptyException} (client fault)
|
|
154
|
+
* <p>The specified OU is not empty. Move all accounts to another root or to other OUs,
|
|
155
|
+
* remove all child OUs, and try the operation again.</p>
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link OrganizationalUnitNotFoundException} (client fault)
|
|
158
|
+
* <p>We can't find an OU with the <code>OrganizationalUnitId</code> that you
|
|
159
|
+
* specified.</p>
|
|
160
|
+
*
|
|
161
|
+
* @throws {@link ServiceException} (server fault)
|
|
162
|
+
* <p>Organizations can't complete your request because of an internal service error. Try again
|
|
163
|
+
* later.</p>
|
|
164
|
+
*
|
|
165
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
166
|
+
* <p>You have sent too many requests in too short a period of time. The quota helps protect
|
|
167
|
+
* against denial-of-service attacks. Try again later.</p>
|
|
168
|
+
* <p>For information about quotas that affect Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for Organizations</a>in the
|
|
169
|
+
* <i>Organizations User Guide.</i>
|
|
170
|
+
* </p>
|
|
171
|
+
*
|
|
172
|
+
*
|
|
173
|
+
* @example To delete an organization unit
|
|
174
|
+
* ```javascript
|
|
175
|
+
* // The following example shows how to delete an OU. The example assumes that you previously removed all accounts and other OUs from the OU:
|
|
176
|
+
* //
|
|
177
|
+
* //
|
|
178
|
+
* const input = {
|
|
179
|
+
* "OrganizationalUnitId": "ou-examplerootid111-exampleouid111"
|
|
180
|
+
* };
|
|
181
|
+
* const command = new DeleteOrganizationalUnitCommand(input);
|
|
182
|
+
* await client.send(command);
|
|
183
|
+
* // example id: to-delete-an-organizational-unit
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
34
186
|
*/
|
|
35
187
|
export declare class DeleteOrganizationalUnitCommand extends $Command<DeleteOrganizationalUnitCommandInput, DeleteOrganizationalUnitCommandOutput, OrganizationsClientResolvedConfig> {
|
|
36
188
|
readonly input: DeleteOrganizationalUnitCommandInput;
|
|
@@ -32,6 +32,160 @@ export interface DeletePolicyCommandOutput extends __MetadataBearer {
|
|
|
32
32
|
* @see {@link DeletePolicyCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
36
|
+
* <p>You don't have permissions to perform the requested operation. The user or role that
|
|
37
|
+
* is making the request must have at least one IAM permissions policy attached that
|
|
38
|
+
* grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
|
|
39
|
+
* <i>IAM User Guide.</i>
|
|
40
|
+
* </p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link AWSOrganizationsNotInUseException} (client fault)
|
|
43
|
+
* <p>Your account isn't a member of an organization. To make this request, you must use the
|
|
44
|
+
* credentials of an account that belongs to an organization.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ConcurrentModificationException} (client fault)
|
|
47
|
+
* <p>The target of the operation is currently being modified by a different request. Try
|
|
48
|
+
* again later.</p>
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
51
|
+
* <p>The requested operation failed because you provided invalid values for one or more of
|
|
52
|
+
* the request parameters. This exception includes a reason that contains additional
|
|
53
|
+
* information about the violated limit:</p>
|
|
54
|
+
* <note>
|
|
55
|
+
* <p>Some of the reasons in the following list might not be applicable to this specific
|
|
56
|
+
* API or operation.</p>
|
|
57
|
+
* </note>
|
|
58
|
+
* <ul>
|
|
59
|
+
* <li>
|
|
60
|
+
* <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
|
|
61
|
+
* entity.</p>
|
|
62
|
+
* </li>
|
|
63
|
+
* <li>
|
|
64
|
+
* <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
|
|
65
|
+
* modified.</p>
|
|
66
|
+
* </li>
|
|
67
|
+
* <li>
|
|
68
|
+
* <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
|
|
69
|
+
* </li>
|
|
70
|
+
* <li>
|
|
71
|
+
* <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
|
|
72
|
+
* invited account owner.</p>
|
|
73
|
+
* </li>
|
|
74
|
+
* <li>
|
|
75
|
+
* <p>INVALID_ENUM: You specified an invalid value.</p>
|
|
76
|
+
* </li>
|
|
77
|
+
* <li>
|
|
78
|
+
* <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
|
|
79
|
+
* </li>
|
|
80
|
+
* <li>
|
|
81
|
+
* <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
|
|
82
|
+
* characters.</p>
|
|
83
|
+
* </li>
|
|
84
|
+
* <li>
|
|
85
|
+
* <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
|
|
86
|
+
* one invalid value.</p>
|
|
87
|
+
* </li>
|
|
88
|
+
* <li>
|
|
89
|
+
* <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
|
|
90
|
+
* parameter from the response to a previous call of the operation.</p>
|
|
91
|
+
* </li>
|
|
92
|
+
* <li>
|
|
93
|
+
* <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
|
|
94
|
+
* organization, or email) as a party.</p>
|
|
95
|
+
* </li>
|
|
96
|
+
* <li>
|
|
97
|
+
* <p>INVALID_PATTERN: You provided a value that doesn't match the required
|
|
98
|
+
* pattern.</p>
|
|
99
|
+
* </li>
|
|
100
|
+
* <li>
|
|
101
|
+
* <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
|
|
102
|
+
* the required pattern.</p>
|
|
103
|
+
* </li>
|
|
104
|
+
* <li>
|
|
105
|
+
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
|
|
106
|
+
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
|
|
107
|
+
* </li>
|
|
108
|
+
* <li>
|
|
109
|
+
* <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
|
|
110
|
+
* (ARN) for the organization.</p>
|
|
111
|
+
* </li>
|
|
112
|
+
* <li>
|
|
113
|
+
* <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
|
|
114
|
+
* </li>
|
|
115
|
+
* <li>
|
|
116
|
+
* <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
|
|
117
|
+
* You can’t add, edit, or delete system tag keys because they're reserved for
|
|
118
|
+
* Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
|
|
119
|
+
* </li>
|
|
120
|
+
* <li>
|
|
121
|
+
* <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
|
|
122
|
+
* operation.</p>
|
|
123
|
+
* </li>
|
|
124
|
+
* <li>
|
|
125
|
+
* <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
|
|
126
|
+
* allowed.</p>
|
|
127
|
+
* </li>
|
|
128
|
+
* <li>
|
|
129
|
+
* <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
|
|
130
|
+
* than allowed.</p>
|
|
131
|
+
* </li>
|
|
132
|
+
* <li>
|
|
133
|
+
* <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
|
|
134
|
+
* allowed.</p>
|
|
135
|
+
* </li>
|
|
136
|
+
* <li>
|
|
137
|
+
* <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
|
|
138
|
+
* than allowed.</p>
|
|
139
|
+
* </li>
|
|
140
|
+
* <li>
|
|
141
|
+
* <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
|
|
142
|
+
* entities in the same root.</p>
|
|
143
|
+
* </li>
|
|
144
|
+
* <li>
|
|
145
|
+
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
|
|
146
|
+
* entity.</p>
|
|
147
|
+
* </li>
|
|
148
|
+
* <li>
|
|
149
|
+
* <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
|
|
150
|
+
* recognized.</p>
|
|
151
|
+
* </li>
|
|
152
|
+
* </ul>
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link PolicyInUseException} (client fault)
|
|
155
|
+
* <p>The policy is attached to one or more entities. You must detach it from all roots,
|
|
156
|
+
* OUs, and accounts before performing this operation.</p>
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link PolicyNotFoundException} (client fault)
|
|
159
|
+
* <p>We can't find a policy with the <code>PolicyId</code> that you specified.</p>
|
|
160
|
+
*
|
|
161
|
+
* @throws {@link ServiceException} (server fault)
|
|
162
|
+
* <p>Organizations can't complete your request because of an internal service error. Try again
|
|
163
|
+
* later.</p>
|
|
164
|
+
*
|
|
165
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
166
|
+
* <p>You have sent too many requests in too short a period of time. The quota helps protect
|
|
167
|
+
* against denial-of-service attacks. Try again later.</p>
|
|
168
|
+
* <p>For information about quotas that affect Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for Organizations</a>in the
|
|
169
|
+
* <i>Organizations User Guide.</i>
|
|
170
|
+
* </p>
|
|
171
|
+
*
|
|
172
|
+
* @throws {@link UnsupportedAPIEndpointException} (client fault)
|
|
173
|
+
* <p>This action isn't available in the current Amazon Web Services Region.</p>
|
|
174
|
+
*
|
|
175
|
+
*
|
|
176
|
+
* @example To delete a policy
|
|
177
|
+
* ```javascript
|
|
178
|
+
* // The following example shows how to delete a policy from an organization. The example assumes that you previously detached the policy from all entities:
|
|
179
|
+
* //
|
|
180
|
+
* //
|
|
181
|
+
* const input = {
|
|
182
|
+
* "PolicyId": "p-examplepolicyid111"
|
|
183
|
+
* };
|
|
184
|
+
* const command = new DeletePolicyCommand(input);
|
|
185
|
+
* await client.send(command);
|
|
186
|
+
* // example id: to-delete-a-policy
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
35
189
|
*/
|
|
36
190
|
export declare class DeletePolicyCommand extends $Command<DeletePolicyCommandInput, DeletePolicyCommandOutput, OrganizationsClientResolvedConfig> {
|
|
37
191
|
readonly input: DeletePolicyCommandInput;
|