types-boto3-organizations 1.35.71__py3-none-any.whl
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.
- types_boto3_organizations/__init__.py +95 -0
- types_boto3_organizations/__init__.pyi +94 -0
- types_boto3_organizations/__main__.py +42 -0
- types_boto3_organizations/client.py +970 -0
- types_boto3_organizations/client.pyi +966 -0
- types_boto3_organizations/literals.py +564 -0
- types_boto3_organizations/literals.pyi +562 -0
- types_boto3_organizations/paginator.py +384 -0
- types_boto3_organizations/paginator.pyi +349 -0
- types_boto3_organizations/py.typed +0 -0
- types_boto3_organizations/type_defs.py +963 -0
- types_boto3_organizations/type_defs.pyi +831 -0
- types_boto3_organizations/version.py +7 -0
- types_boto3_organizations-1.35.71.dist-info/LICENSE +21 -0
- types_boto3_organizations-1.35.71.dist-info/METADATA +483 -0
- types_boto3_organizations-1.35.71.dist-info/RECORD +18 -0
- types_boto3_organizations-1.35.71.dist-info/WHEEL +5 -0
- types_boto3_organizations-1.35.71.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for organizations service client.
|
|
3
|
+
|
|
4
|
+
[Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from boto3.session import Session
|
|
10
|
+
from types_boto3_organizations.client import OrganizationsClient
|
|
11
|
+
|
|
12
|
+
session = Session()
|
|
13
|
+
client: OrganizationsClient = session.client("organizations")
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Copyright 2024 Vlad Emelianov
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import sys
|
|
20
|
+
from typing import Any, Dict, Mapping, Type, overload
|
|
21
|
+
|
|
22
|
+
from botocore.client import BaseClient, ClientMeta
|
|
23
|
+
|
|
24
|
+
from .paginator import (
|
|
25
|
+
ListAccountsForParentPaginator,
|
|
26
|
+
ListAccountsPaginator,
|
|
27
|
+
ListAWSServiceAccessForOrganizationPaginator,
|
|
28
|
+
ListChildrenPaginator,
|
|
29
|
+
ListCreateAccountStatusPaginator,
|
|
30
|
+
ListDelegatedAdministratorsPaginator,
|
|
31
|
+
ListDelegatedServicesForAccountPaginator,
|
|
32
|
+
ListHandshakesForAccountPaginator,
|
|
33
|
+
ListHandshakesForOrganizationPaginator,
|
|
34
|
+
ListOrganizationalUnitsForParentPaginator,
|
|
35
|
+
ListParentsPaginator,
|
|
36
|
+
ListPoliciesForTargetPaginator,
|
|
37
|
+
ListPoliciesPaginator,
|
|
38
|
+
ListRootsPaginator,
|
|
39
|
+
ListTagsForResourcePaginator,
|
|
40
|
+
ListTargetsForPolicyPaginator,
|
|
41
|
+
)
|
|
42
|
+
from .type_defs import (
|
|
43
|
+
AcceptHandshakeRequestRequestTypeDef,
|
|
44
|
+
AcceptHandshakeResponseTypeDef,
|
|
45
|
+
AttachPolicyRequestRequestTypeDef,
|
|
46
|
+
CancelHandshakeRequestRequestTypeDef,
|
|
47
|
+
CancelHandshakeResponseTypeDef,
|
|
48
|
+
CloseAccountRequestRequestTypeDef,
|
|
49
|
+
CreateAccountRequestRequestTypeDef,
|
|
50
|
+
CreateAccountResponseTypeDef,
|
|
51
|
+
CreateGovCloudAccountRequestRequestTypeDef,
|
|
52
|
+
CreateGovCloudAccountResponseTypeDef,
|
|
53
|
+
CreateOrganizationalUnitRequestRequestTypeDef,
|
|
54
|
+
CreateOrganizationalUnitResponseTypeDef,
|
|
55
|
+
CreateOrganizationRequestRequestTypeDef,
|
|
56
|
+
CreateOrganizationResponseTypeDef,
|
|
57
|
+
CreatePolicyRequestRequestTypeDef,
|
|
58
|
+
CreatePolicyResponseTypeDef,
|
|
59
|
+
DeclineHandshakeRequestRequestTypeDef,
|
|
60
|
+
DeclineHandshakeResponseTypeDef,
|
|
61
|
+
DeleteOrganizationalUnitRequestRequestTypeDef,
|
|
62
|
+
DeletePolicyRequestRequestTypeDef,
|
|
63
|
+
DeregisterDelegatedAdministratorRequestRequestTypeDef,
|
|
64
|
+
DescribeAccountRequestRequestTypeDef,
|
|
65
|
+
DescribeAccountResponseTypeDef,
|
|
66
|
+
DescribeCreateAccountStatusRequestRequestTypeDef,
|
|
67
|
+
DescribeCreateAccountStatusResponseTypeDef,
|
|
68
|
+
DescribeEffectivePolicyRequestRequestTypeDef,
|
|
69
|
+
DescribeEffectivePolicyResponseTypeDef,
|
|
70
|
+
DescribeHandshakeRequestRequestTypeDef,
|
|
71
|
+
DescribeHandshakeResponseTypeDef,
|
|
72
|
+
DescribeOrganizationalUnitRequestRequestTypeDef,
|
|
73
|
+
DescribeOrganizationalUnitResponseTypeDef,
|
|
74
|
+
DescribeOrganizationResponseTypeDef,
|
|
75
|
+
DescribePolicyRequestRequestTypeDef,
|
|
76
|
+
DescribePolicyResponseTypeDef,
|
|
77
|
+
DescribeResourcePolicyResponseTypeDef,
|
|
78
|
+
DetachPolicyRequestRequestTypeDef,
|
|
79
|
+
DisableAWSServiceAccessRequestRequestTypeDef,
|
|
80
|
+
DisablePolicyTypeRequestRequestTypeDef,
|
|
81
|
+
DisablePolicyTypeResponseTypeDef,
|
|
82
|
+
EmptyResponseMetadataTypeDef,
|
|
83
|
+
EnableAllFeaturesResponseTypeDef,
|
|
84
|
+
EnableAWSServiceAccessRequestRequestTypeDef,
|
|
85
|
+
EnablePolicyTypeRequestRequestTypeDef,
|
|
86
|
+
EnablePolicyTypeResponseTypeDef,
|
|
87
|
+
InviteAccountToOrganizationRequestRequestTypeDef,
|
|
88
|
+
InviteAccountToOrganizationResponseTypeDef,
|
|
89
|
+
ListAccountsForParentRequestRequestTypeDef,
|
|
90
|
+
ListAccountsForParentResponseTypeDef,
|
|
91
|
+
ListAccountsRequestRequestTypeDef,
|
|
92
|
+
ListAccountsResponseTypeDef,
|
|
93
|
+
ListAWSServiceAccessForOrganizationRequestRequestTypeDef,
|
|
94
|
+
ListAWSServiceAccessForOrganizationResponseTypeDef,
|
|
95
|
+
ListChildrenRequestRequestTypeDef,
|
|
96
|
+
ListChildrenResponseTypeDef,
|
|
97
|
+
ListCreateAccountStatusRequestRequestTypeDef,
|
|
98
|
+
ListCreateAccountStatusResponseTypeDef,
|
|
99
|
+
ListDelegatedAdministratorsRequestRequestTypeDef,
|
|
100
|
+
ListDelegatedAdministratorsResponseTypeDef,
|
|
101
|
+
ListDelegatedServicesForAccountRequestRequestTypeDef,
|
|
102
|
+
ListDelegatedServicesForAccountResponseTypeDef,
|
|
103
|
+
ListHandshakesForAccountRequestRequestTypeDef,
|
|
104
|
+
ListHandshakesForAccountResponseTypeDef,
|
|
105
|
+
ListHandshakesForOrganizationRequestRequestTypeDef,
|
|
106
|
+
ListHandshakesForOrganizationResponseTypeDef,
|
|
107
|
+
ListOrganizationalUnitsForParentRequestRequestTypeDef,
|
|
108
|
+
ListOrganizationalUnitsForParentResponseTypeDef,
|
|
109
|
+
ListParentsRequestRequestTypeDef,
|
|
110
|
+
ListParentsResponseTypeDef,
|
|
111
|
+
ListPoliciesForTargetRequestRequestTypeDef,
|
|
112
|
+
ListPoliciesForTargetResponseTypeDef,
|
|
113
|
+
ListPoliciesRequestRequestTypeDef,
|
|
114
|
+
ListPoliciesResponseTypeDef,
|
|
115
|
+
ListRootsRequestRequestTypeDef,
|
|
116
|
+
ListRootsResponseTypeDef,
|
|
117
|
+
ListTagsForResourceRequestRequestTypeDef,
|
|
118
|
+
ListTagsForResourceResponseTypeDef,
|
|
119
|
+
ListTargetsForPolicyRequestRequestTypeDef,
|
|
120
|
+
ListTargetsForPolicyResponseTypeDef,
|
|
121
|
+
MoveAccountRequestRequestTypeDef,
|
|
122
|
+
PutResourcePolicyRequestRequestTypeDef,
|
|
123
|
+
PutResourcePolicyResponseTypeDef,
|
|
124
|
+
RegisterDelegatedAdministratorRequestRequestTypeDef,
|
|
125
|
+
RemoveAccountFromOrganizationRequestRequestTypeDef,
|
|
126
|
+
TagResourceRequestRequestTypeDef,
|
|
127
|
+
UntagResourceRequestRequestTypeDef,
|
|
128
|
+
UpdateOrganizationalUnitRequestRequestTypeDef,
|
|
129
|
+
UpdateOrganizationalUnitResponseTypeDef,
|
|
130
|
+
UpdatePolicyRequestRequestTypeDef,
|
|
131
|
+
UpdatePolicyResponseTypeDef,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
if sys.version_info >= (3, 12):
|
|
135
|
+
from typing import Literal, Unpack
|
|
136
|
+
else:
|
|
137
|
+
from typing_extensions import Literal, Unpack
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
__all__ = ("OrganizationsClient",)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class BotocoreClientError(Exception):
|
|
144
|
+
MSG_TEMPLATE: str
|
|
145
|
+
|
|
146
|
+
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
147
|
+
self.response: Dict[str, Any]
|
|
148
|
+
self.operation_name: str
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class Exceptions:
|
|
152
|
+
AWSOrganizationsNotInUseException: Type[BotocoreClientError]
|
|
153
|
+
AccessDeniedException: Type[BotocoreClientError]
|
|
154
|
+
AccessDeniedForDependencyException: Type[BotocoreClientError]
|
|
155
|
+
AccountAlreadyClosedException: Type[BotocoreClientError]
|
|
156
|
+
AccountAlreadyRegisteredException: Type[BotocoreClientError]
|
|
157
|
+
AccountNotFoundException: Type[BotocoreClientError]
|
|
158
|
+
AccountNotRegisteredException: Type[BotocoreClientError]
|
|
159
|
+
AccountOwnerNotVerifiedException: Type[BotocoreClientError]
|
|
160
|
+
AlreadyInOrganizationException: Type[BotocoreClientError]
|
|
161
|
+
ChildNotFoundException: Type[BotocoreClientError]
|
|
162
|
+
ClientError: Type[BotocoreClientError]
|
|
163
|
+
ConcurrentModificationException: Type[BotocoreClientError]
|
|
164
|
+
ConflictException: Type[BotocoreClientError]
|
|
165
|
+
ConstraintViolationException: Type[BotocoreClientError]
|
|
166
|
+
CreateAccountStatusNotFoundException: Type[BotocoreClientError]
|
|
167
|
+
DestinationParentNotFoundException: Type[BotocoreClientError]
|
|
168
|
+
DuplicateAccountException: Type[BotocoreClientError]
|
|
169
|
+
DuplicateHandshakeException: Type[BotocoreClientError]
|
|
170
|
+
DuplicateOrganizationalUnitException: Type[BotocoreClientError]
|
|
171
|
+
DuplicatePolicyAttachmentException: Type[BotocoreClientError]
|
|
172
|
+
DuplicatePolicyException: Type[BotocoreClientError]
|
|
173
|
+
EffectivePolicyNotFoundException: Type[BotocoreClientError]
|
|
174
|
+
FinalizingOrganizationException: Type[BotocoreClientError]
|
|
175
|
+
HandshakeAlreadyInStateException: Type[BotocoreClientError]
|
|
176
|
+
HandshakeConstraintViolationException: Type[BotocoreClientError]
|
|
177
|
+
HandshakeNotFoundException: Type[BotocoreClientError]
|
|
178
|
+
InvalidHandshakeTransitionException: Type[BotocoreClientError]
|
|
179
|
+
InvalidInputException: Type[BotocoreClientError]
|
|
180
|
+
MalformedPolicyDocumentException: Type[BotocoreClientError]
|
|
181
|
+
MasterCannotLeaveOrganizationException: Type[BotocoreClientError]
|
|
182
|
+
OrganizationNotEmptyException: Type[BotocoreClientError]
|
|
183
|
+
OrganizationalUnitNotEmptyException: Type[BotocoreClientError]
|
|
184
|
+
OrganizationalUnitNotFoundException: Type[BotocoreClientError]
|
|
185
|
+
ParentNotFoundException: Type[BotocoreClientError]
|
|
186
|
+
PolicyChangesInProgressException: Type[BotocoreClientError]
|
|
187
|
+
PolicyInUseException: Type[BotocoreClientError]
|
|
188
|
+
PolicyNotAttachedException: Type[BotocoreClientError]
|
|
189
|
+
PolicyNotFoundException: Type[BotocoreClientError]
|
|
190
|
+
PolicyTypeAlreadyEnabledException: Type[BotocoreClientError]
|
|
191
|
+
PolicyTypeNotAvailableForOrganizationException: Type[BotocoreClientError]
|
|
192
|
+
PolicyTypeNotEnabledException: Type[BotocoreClientError]
|
|
193
|
+
ResourcePolicyNotFoundException: Type[BotocoreClientError]
|
|
194
|
+
RootNotFoundException: Type[BotocoreClientError]
|
|
195
|
+
ServiceException: Type[BotocoreClientError]
|
|
196
|
+
SourceParentNotFoundException: Type[BotocoreClientError]
|
|
197
|
+
TargetNotFoundException: Type[BotocoreClientError]
|
|
198
|
+
TooManyRequestsException: Type[BotocoreClientError]
|
|
199
|
+
UnsupportedAPIEndpointException: Type[BotocoreClientError]
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
class OrganizationsClient(BaseClient):
|
|
203
|
+
"""
|
|
204
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations.html#Organizations.Client)
|
|
205
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/)
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
meta: ClientMeta
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
def exceptions(self) -> Exceptions:
|
|
212
|
+
"""
|
|
213
|
+
OrganizationsClient exceptions.
|
|
214
|
+
|
|
215
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations.html#Organizations.Client)
|
|
216
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#exceptions)
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
220
|
+
"""
|
|
221
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/can_paginate.html)
|
|
222
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#can_paginate)
|
|
223
|
+
"""
|
|
224
|
+
|
|
225
|
+
def generate_presigned_url(
|
|
226
|
+
self,
|
|
227
|
+
ClientMethod: str,
|
|
228
|
+
Params: Mapping[str, Any] = ...,
|
|
229
|
+
ExpiresIn: int = 3600,
|
|
230
|
+
HttpMethod: str = ...,
|
|
231
|
+
) -> str:
|
|
232
|
+
"""
|
|
233
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/generate_presigned_url.html)
|
|
234
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#generate_presigned_url)
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
def close(self) -> None:
|
|
238
|
+
"""
|
|
239
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/close.html)
|
|
240
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#close)
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
def accept_handshake(
|
|
244
|
+
self, **kwargs: Unpack[AcceptHandshakeRequestRequestTypeDef]
|
|
245
|
+
) -> AcceptHandshakeResponseTypeDef:
|
|
246
|
+
"""
|
|
247
|
+
Sends a response to the originator of a handshake agreeing to the action
|
|
248
|
+
proposed by the handshake request.
|
|
249
|
+
|
|
250
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/accept_handshake.html)
|
|
251
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#accept_handshake)
|
|
252
|
+
"""
|
|
253
|
+
|
|
254
|
+
def attach_policy(
|
|
255
|
+
self, **kwargs: Unpack[AttachPolicyRequestRequestTypeDef]
|
|
256
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
257
|
+
"""
|
|
258
|
+
Attaches a policy to a root, an organizational unit (OU), or an individual
|
|
259
|
+
account.
|
|
260
|
+
|
|
261
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/attach_policy.html)
|
|
262
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#attach_policy)
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
def cancel_handshake(
|
|
266
|
+
self, **kwargs: Unpack[CancelHandshakeRequestRequestTypeDef]
|
|
267
|
+
) -> CancelHandshakeResponseTypeDef:
|
|
268
|
+
"""
|
|
269
|
+
Cancels a handshake.
|
|
270
|
+
|
|
271
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/cancel_handshake.html)
|
|
272
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#cancel_handshake)
|
|
273
|
+
"""
|
|
274
|
+
|
|
275
|
+
def close_account(
|
|
276
|
+
self, **kwargs: Unpack[CloseAccountRequestRequestTypeDef]
|
|
277
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
278
|
+
"""
|
|
279
|
+
Closes an Amazon Web Services member account within an organization.
|
|
280
|
+
|
|
281
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/close_account.html)
|
|
282
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#close_account)
|
|
283
|
+
"""
|
|
284
|
+
|
|
285
|
+
def create_account(
|
|
286
|
+
self, **kwargs: Unpack[CreateAccountRequestRequestTypeDef]
|
|
287
|
+
) -> CreateAccountResponseTypeDef:
|
|
288
|
+
"""
|
|
289
|
+
Creates an Amazon Web Services account that is automatically a member of the
|
|
290
|
+
organization whose credentials made the request.
|
|
291
|
+
|
|
292
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/create_account.html)
|
|
293
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#create_account)
|
|
294
|
+
"""
|
|
295
|
+
|
|
296
|
+
def create_gov_cloud_account(
|
|
297
|
+
self, **kwargs: Unpack[CreateGovCloudAccountRequestRequestTypeDef]
|
|
298
|
+
) -> CreateGovCloudAccountResponseTypeDef:
|
|
299
|
+
"""
|
|
300
|
+
This action is available if all of the following are true:.
|
|
301
|
+
|
|
302
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/create_gov_cloud_account.html)
|
|
303
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#create_gov_cloud_account)
|
|
304
|
+
"""
|
|
305
|
+
|
|
306
|
+
def create_organization(
|
|
307
|
+
self, **kwargs: Unpack[CreateOrganizationRequestRequestTypeDef]
|
|
308
|
+
) -> CreateOrganizationResponseTypeDef:
|
|
309
|
+
"""
|
|
310
|
+
Creates an Amazon Web Services organization.
|
|
311
|
+
|
|
312
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/create_organization.html)
|
|
313
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#create_organization)
|
|
314
|
+
"""
|
|
315
|
+
|
|
316
|
+
def create_organizational_unit(
|
|
317
|
+
self, **kwargs: Unpack[CreateOrganizationalUnitRequestRequestTypeDef]
|
|
318
|
+
) -> CreateOrganizationalUnitResponseTypeDef:
|
|
319
|
+
"""
|
|
320
|
+
Creates an organizational unit (OU) within a root or parent OU.
|
|
321
|
+
|
|
322
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/create_organizational_unit.html)
|
|
323
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#create_organizational_unit)
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
def create_policy(
|
|
327
|
+
self, **kwargs: Unpack[CreatePolicyRequestRequestTypeDef]
|
|
328
|
+
) -> CreatePolicyResponseTypeDef:
|
|
329
|
+
"""
|
|
330
|
+
Creates a policy of a specified type that you can attach to a root, an
|
|
331
|
+
organizational unit (OU), or an individual Amazon Web Services account.
|
|
332
|
+
|
|
333
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/create_policy.html)
|
|
334
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#create_policy)
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
def decline_handshake(
|
|
338
|
+
self, **kwargs: Unpack[DeclineHandshakeRequestRequestTypeDef]
|
|
339
|
+
) -> DeclineHandshakeResponseTypeDef:
|
|
340
|
+
"""
|
|
341
|
+
Declines a handshake request.
|
|
342
|
+
|
|
343
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/decline_handshake.html)
|
|
344
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#decline_handshake)
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
def delete_organization(self) -> EmptyResponseMetadataTypeDef:
|
|
348
|
+
"""
|
|
349
|
+
Deletes the organization.
|
|
350
|
+
|
|
351
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/delete_organization.html)
|
|
352
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#delete_organization)
|
|
353
|
+
"""
|
|
354
|
+
|
|
355
|
+
def delete_organizational_unit(
|
|
356
|
+
self, **kwargs: Unpack[DeleteOrganizationalUnitRequestRequestTypeDef]
|
|
357
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
358
|
+
"""
|
|
359
|
+
Deletes an organizational unit (OU) from a root or another OU.
|
|
360
|
+
|
|
361
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/delete_organizational_unit.html)
|
|
362
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#delete_organizational_unit)
|
|
363
|
+
"""
|
|
364
|
+
|
|
365
|
+
def delete_policy(
|
|
366
|
+
self, **kwargs: Unpack[DeletePolicyRequestRequestTypeDef]
|
|
367
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
368
|
+
"""
|
|
369
|
+
Deletes the specified policy from your organization.
|
|
370
|
+
|
|
371
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/delete_policy.html)
|
|
372
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#delete_policy)
|
|
373
|
+
"""
|
|
374
|
+
|
|
375
|
+
def delete_resource_policy(self) -> EmptyResponseMetadataTypeDef:
|
|
376
|
+
"""
|
|
377
|
+
Deletes the resource policy from your organization.
|
|
378
|
+
|
|
379
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/delete_resource_policy.html)
|
|
380
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#delete_resource_policy)
|
|
381
|
+
"""
|
|
382
|
+
|
|
383
|
+
def deregister_delegated_administrator(
|
|
384
|
+
self, **kwargs: Unpack[DeregisterDelegatedAdministratorRequestRequestTypeDef]
|
|
385
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
386
|
+
"""
|
|
387
|
+
Removes the specified member Amazon Web Services account as a delegated
|
|
388
|
+
administrator for the specified Amazon Web Services service.
|
|
389
|
+
|
|
390
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/deregister_delegated_administrator.html)
|
|
391
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#deregister_delegated_administrator)
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
def describe_account(
|
|
395
|
+
self, **kwargs: Unpack[DescribeAccountRequestRequestTypeDef]
|
|
396
|
+
) -> DescribeAccountResponseTypeDef:
|
|
397
|
+
"""
|
|
398
|
+
Retrieves Organizations-related information about the specified account.
|
|
399
|
+
|
|
400
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_account.html)
|
|
401
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_account)
|
|
402
|
+
"""
|
|
403
|
+
|
|
404
|
+
def describe_create_account_status(
|
|
405
|
+
self, **kwargs: Unpack[DescribeCreateAccountStatusRequestRequestTypeDef]
|
|
406
|
+
) -> DescribeCreateAccountStatusResponseTypeDef:
|
|
407
|
+
"""
|
|
408
|
+
Retrieves the current status of an asynchronous request to create an account.
|
|
409
|
+
|
|
410
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_create_account_status.html)
|
|
411
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_create_account_status)
|
|
412
|
+
"""
|
|
413
|
+
|
|
414
|
+
def describe_effective_policy(
|
|
415
|
+
self, **kwargs: Unpack[DescribeEffectivePolicyRequestRequestTypeDef]
|
|
416
|
+
) -> DescribeEffectivePolicyResponseTypeDef:
|
|
417
|
+
"""
|
|
418
|
+
Returns the contents of the effective policy for specified policy type and
|
|
419
|
+
account.
|
|
420
|
+
|
|
421
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_effective_policy.html)
|
|
422
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_effective_policy)
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
def describe_handshake(
|
|
426
|
+
self, **kwargs: Unpack[DescribeHandshakeRequestRequestTypeDef]
|
|
427
|
+
) -> DescribeHandshakeResponseTypeDef:
|
|
428
|
+
"""
|
|
429
|
+
Retrieves information about a previously requested handshake.
|
|
430
|
+
|
|
431
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_handshake.html)
|
|
432
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_handshake)
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
def describe_organization(self) -> DescribeOrganizationResponseTypeDef:
|
|
436
|
+
"""
|
|
437
|
+
Retrieves information about the organization that the user's account belongs to.
|
|
438
|
+
|
|
439
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_organization.html)
|
|
440
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_organization)
|
|
441
|
+
"""
|
|
442
|
+
|
|
443
|
+
def describe_organizational_unit(
|
|
444
|
+
self, **kwargs: Unpack[DescribeOrganizationalUnitRequestRequestTypeDef]
|
|
445
|
+
) -> DescribeOrganizationalUnitResponseTypeDef:
|
|
446
|
+
"""
|
|
447
|
+
Retrieves information about an organizational unit (OU).
|
|
448
|
+
|
|
449
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_organizational_unit.html)
|
|
450
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_organizational_unit)
|
|
451
|
+
"""
|
|
452
|
+
|
|
453
|
+
def describe_policy(
|
|
454
|
+
self, **kwargs: Unpack[DescribePolicyRequestRequestTypeDef]
|
|
455
|
+
) -> DescribePolicyResponseTypeDef:
|
|
456
|
+
"""
|
|
457
|
+
Retrieves information about a policy.
|
|
458
|
+
|
|
459
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_policy.html)
|
|
460
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_policy)
|
|
461
|
+
"""
|
|
462
|
+
|
|
463
|
+
def describe_resource_policy(self) -> DescribeResourcePolicyResponseTypeDef:
|
|
464
|
+
"""
|
|
465
|
+
Retrieves information about a resource policy.
|
|
466
|
+
|
|
467
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/describe_resource_policy.html)
|
|
468
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#describe_resource_policy)
|
|
469
|
+
"""
|
|
470
|
+
|
|
471
|
+
def detach_policy(
|
|
472
|
+
self, **kwargs: Unpack[DetachPolicyRequestRequestTypeDef]
|
|
473
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
474
|
+
"""
|
|
475
|
+
Detaches a policy from a target root, organizational unit (OU), or account.
|
|
476
|
+
|
|
477
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/detach_policy.html)
|
|
478
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#detach_policy)
|
|
479
|
+
"""
|
|
480
|
+
|
|
481
|
+
def disable_aws_service_access(
|
|
482
|
+
self, **kwargs: Unpack[DisableAWSServiceAccessRequestRequestTypeDef]
|
|
483
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
484
|
+
"""
|
|
485
|
+
Disables the integration of an Amazon Web Services service (the service that is
|
|
486
|
+
specified by <code>ServicePrincipal</code>) with Organizations.
|
|
487
|
+
|
|
488
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/disable_aws_service_access.html)
|
|
489
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#disable_aws_service_access)
|
|
490
|
+
"""
|
|
491
|
+
|
|
492
|
+
def disable_policy_type(
|
|
493
|
+
self, **kwargs: Unpack[DisablePolicyTypeRequestRequestTypeDef]
|
|
494
|
+
) -> DisablePolicyTypeResponseTypeDef:
|
|
495
|
+
"""
|
|
496
|
+
Disables an organizational policy type in a root.
|
|
497
|
+
|
|
498
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/disable_policy_type.html)
|
|
499
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#disable_policy_type)
|
|
500
|
+
"""
|
|
501
|
+
|
|
502
|
+
def enable_aws_service_access(
|
|
503
|
+
self, **kwargs: Unpack[EnableAWSServiceAccessRequestRequestTypeDef]
|
|
504
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
505
|
+
"""
|
|
506
|
+
Provides an Amazon Web Services service (the service that is specified by
|
|
507
|
+
<code>ServicePrincipal</code>) with permissions to view the structure of an
|
|
508
|
+
organization, create a <a
|
|
509
|
+
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html">service-linked
|
|
510
|
+
role</a> in all th...
|
|
511
|
+
|
|
512
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/enable_aws_service_access.html)
|
|
513
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#enable_aws_service_access)
|
|
514
|
+
"""
|
|
515
|
+
|
|
516
|
+
def enable_all_features(self) -> EnableAllFeaturesResponseTypeDef:
|
|
517
|
+
"""
|
|
518
|
+
Enables all features in an organization.
|
|
519
|
+
|
|
520
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/enable_all_features.html)
|
|
521
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#enable_all_features)
|
|
522
|
+
"""
|
|
523
|
+
|
|
524
|
+
def enable_policy_type(
|
|
525
|
+
self, **kwargs: Unpack[EnablePolicyTypeRequestRequestTypeDef]
|
|
526
|
+
) -> EnablePolicyTypeResponseTypeDef:
|
|
527
|
+
"""
|
|
528
|
+
Enables a policy type in a root.
|
|
529
|
+
|
|
530
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/enable_policy_type.html)
|
|
531
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#enable_policy_type)
|
|
532
|
+
"""
|
|
533
|
+
|
|
534
|
+
def invite_account_to_organization(
|
|
535
|
+
self, **kwargs: Unpack[InviteAccountToOrganizationRequestRequestTypeDef]
|
|
536
|
+
) -> InviteAccountToOrganizationResponseTypeDef:
|
|
537
|
+
"""
|
|
538
|
+
Sends an invitation to another account to join your organization as a member
|
|
539
|
+
account.
|
|
540
|
+
|
|
541
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/invite_account_to_organization.html)
|
|
542
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#invite_account_to_organization)
|
|
543
|
+
"""
|
|
544
|
+
|
|
545
|
+
def leave_organization(self) -> EmptyResponseMetadataTypeDef:
|
|
546
|
+
"""
|
|
547
|
+
Removes a member account from its parent organization.
|
|
548
|
+
|
|
549
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/leave_organization.html)
|
|
550
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#leave_organization)
|
|
551
|
+
"""
|
|
552
|
+
|
|
553
|
+
def list_aws_service_access_for_organization(
|
|
554
|
+
self, **kwargs: Unpack[ListAWSServiceAccessForOrganizationRequestRequestTypeDef]
|
|
555
|
+
) -> ListAWSServiceAccessForOrganizationResponseTypeDef:
|
|
556
|
+
"""
|
|
557
|
+
Returns a list of the Amazon Web Services services that you enabled to
|
|
558
|
+
integrate with your organization.
|
|
559
|
+
|
|
560
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_aws_service_access_for_organization.html)
|
|
561
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_aws_service_access_for_organization)
|
|
562
|
+
"""
|
|
563
|
+
|
|
564
|
+
def list_accounts(
|
|
565
|
+
self, **kwargs: Unpack[ListAccountsRequestRequestTypeDef]
|
|
566
|
+
) -> ListAccountsResponseTypeDef:
|
|
567
|
+
"""
|
|
568
|
+
Lists all the accounts in the organization.
|
|
569
|
+
|
|
570
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_accounts.html)
|
|
571
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_accounts)
|
|
572
|
+
"""
|
|
573
|
+
|
|
574
|
+
def list_accounts_for_parent(
|
|
575
|
+
self, **kwargs: Unpack[ListAccountsForParentRequestRequestTypeDef]
|
|
576
|
+
) -> ListAccountsForParentResponseTypeDef:
|
|
577
|
+
"""
|
|
578
|
+
Lists the accounts in an organization that are contained by the specified
|
|
579
|
+
target root or organizational unit (OU).
|
|
580
|
+
|
|
581
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_accounts_for_parent.html)
|
|
582
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_accounts_for_parent)
|
|
583
|
+
"""
|
|
584
|
+
|
|
585
|
+
def list_children(
|
|
586
|
+
self, **kwargs: Unpack[ListChildrenRequestRequestTypeDef]
|
|
587
|
+
) -> ListChildrenResponseTypeDef:
|
|
588
|
+
"""
|
|
589
|
+
Lists all of the organizational units (OUs) or accounts that are contained in
|
|
590
|
+
the specified parent OU or root.
|
|
591
|
+
|
|
592
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_children.html)
|
|
593
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_children)
|
|
594
|
+
"""
|
|
595
|
+
|
|
596
|
+
def list_create_account_status(
|
|
597
|
+
self, **kwargs: Unpack[ListCreateAccountStatusRequestRequestTypeDef]
|
|
598
|
+
) -> ListCreateAccountStatusResponseTypeDef:
|
|
599
|
+
"""
|
|
600
|
+
Lists the account creation requests that match the specified status that is
|
|
601
|
+
currently being tracked for the organization.
|
|
602
|
+
|
|
603
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_create_account_status.html)
|
|
604
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_create_account_status)
|
|
605
|
+
"""
|
|
606
|
+
|
|
607
|
+
def list_delegated_administrators(
|
|
608
|
+
self, **kwargs: Unpack[ListDelegatedAdministratorsRequestRequestTypeDef]
|
|
609
|
+
) -> ListDelegatedAdministratorsResponseTypeDef:
|
|
610
|
+
"""
|
|
611
|
+
Lists the Amazon Web Services accounts that are designated as delegated
|
|
612
|
+
administrators in this organization.
|
|
613
|
+
|
|
614
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_delegated_administrators.html)
|
|
615
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_delegated_administrators)
|
|
616
|
+
"""
|
|
617
|
+
|
|
618
|
+
def list_delegated_services_for_account(
|
|
619
|
+
self, **kwargs: Unpack[ListDelegatedServicesForAccountRequestRequestTypeDef]
|
|
620
|
+
) -> ListDelegatedServicesForAccountResponseTypeDef:
|
|
621
|
+
"""
|
|
622
|
+
List the Amazon Web Services services for which the specified account is a
|
|
623
|
+
delegated administrator.
|
|
624
|
+
|
|
625
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_delegated_services_for_account.html)
|
|
626
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_delegated_services_for_account)
|
|
627
|
+
"""
|
|
628
|
+
|
|
629
|
+
def list_handshakes_for_account(
|
|
630
|
+
self, **kwargs: Unpack[ListHandshakesForAccountRequestRequestTypeDef]
|
|
631
|
+
) -> ListHandshakesForAccountResponseTypeDef:
|
|
632
|
+
"""
|
|
633
|
+
Lists the current handshakes that are associated with the account of the
|
|
634
|
+
requesting user.
|
|
635
|
+
|
|
636
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_handshakes_for_account.html)
|
|
637
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_handshakes_for_account)
|
|
638
|
+
"""
|
|
639
|
+
|
|
640
|
+
def list_handshakes_for_organization(
|
|
641
|
+
self, **kwargs: Unpack[ListHandshakesForOrganizationRequestRequestTypeDef]
|
|
642
|
+
) -> ListHandshakesForOrganizationResponseTypeDef:
|
|
643
|
+
"""
|
|
644
|
+
Lists the handshakes that are associated with the organization that the
|
|
645
|
+
requesting user is part of.
|
|
646
|
+
|
|
647
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_handshakes_for_organization.html)
|
|
648
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_handshakes_for_organization)
|
|
649
|
+
"""
|
|
650
|
+
|
|
651
|
+
def list_organizational_units_for_parent(
|
|
652
|
+
self, **kwargs: Unpack[ListOrganizationalUnitsForParentRequestRequestTypeDef]
|
|
653
|
+
) -> ListOrganizationalUnitsForParentResponseTypeDef:
|
|
654
|
+
"""
|
|
655
|
+
Lists the organizational units (OUs) in a parent organizational unit or root.
|
|
656
|
+
|
|
657
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_organizational_units_for_parent.html)
|
|
658
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_organizational_units_for_parent)
|
|
659
|
+
"""
|
|
660
|
+
|
|
661
|
+
def list_parents(
|
|
662
|
+
self, **kwargs: Unpack[ListParentsRequestRequestTypeDef]
|
|
663
|
+
) -> ListParentsResponseTypeDef:
|
|
664
|
+
"""
|
|
665
|
+
Lists the root or organizational units (OUs) that serve as the immediate parent
|
|
666
|
+
of the specified child OU or account.
|
|
667
|
+
|
|
668
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_parents.html)
|
|
669
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_parents)
|
|
670
|
+
"""
|
|
671
|
+
|
|
672
|
+
def list_policies(
|
|
673
|
+
self, **kwargs: Unpack[ListPoliciesRequestRequestTypeDef]
|
|
674
|
+
) -> ListPoliciesResponseTypeDef:
|
|
675
|
+
"""
|
|
676
|
+
Retrieves the list of all policies in an organization of a specified type.
|
|
677
|
+
|
|
678
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_policies.html)
|
|
679
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_policies)
|
|
680
|
+
"""
|
|
681
|
+
|
|
682
|
+
def list_policies_for_target(
|
|
683
|
+
self, **kwargs: Unpack[ListPoliciesForTargetRequestRequestTypeDef]
|
|
684
|
+
) -> ListPoliciesForTargetResponseTypeDef:
|
|
685
|
+
"""
|
|
686
|
+
Lists the policies that are directly attached to the specified target root,
|
|
687
|
+
organizational unit (OU), or account.
|
|
688
|
+
|
|
689
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_policies_for_target.html)
|
|
690
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_policies_for_target)
|
|
691
|
+
"""
|
|
692
|
+
|
|
693
|
+
def list_roots(
|
|
694
|
+
self, **kwargs: Unpack[ListRootsRequestRequestTypeDef]
|
|
695
|
+
) -> ListRootsResponseTypeDef:
|
|
696
|
+
"""
|
|
697
|
+
Lists the roots that are defined in the current organization.
|
|
698
|
+
|
|
699
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_roots.html)
|
|
700
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_roots)
|
|
701
|
+
"""
|
|
702
|
+
|
|
703
|
+
def list_tags_for_resource(
|
|
704
|
+
self, **kwargs: Unpack[ListTagsForResourceRequestRequestTypeDef]
|
|
705
|
+
) -> ListTagsForResourceResponseTypeDef:
|
|
706
|
+
"""
|
|
707
|
+
Lists tags that are attached to the specified resource.
|
|
708
|
+
|
|
709
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_tags_for_resource.html)
|
|
710
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_tags_for_resource)
|
|
711
|
+
"""
|
|
712
|
+
|
|
713
|
+
def list_targets_for_policy(
|
|
714
|
+
self, **kwargs: Unpack[ListTargetsForPolicyRequestRequestTypeDef]
|
|
715
|
+
) -> ListTargetsForPolicyResponseTypeDef:
|
|
716
|
+
"""
|
|
717
|
+
Lists all the roots, organizational units (OUs), and accounts that the
|
|
718
|
+
specified policy is attached to.
|
|
719
|
+
|
|
720
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/list_targets_for_policy.html)
|
|
721
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#list_targets_for_policy)
|
|
722
|
+
"""
|
|
723
|
+
|
|
724
|
+
def move_account(
|
|
725
|
+
self, **kwargs: Unpack[MoveAccountRequestRequestTypeDef]
|
|
726
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
727
|
+
"""
|
|
728
|
+
Moves an account from its current source parent root or organizational unit
|
|
729
|
+
(OU) to the specified destination parent root or OU.
|
|
730
|
+
|
|
731
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/move_account.html)
|
|
732
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#move_account)
|
|
733
|
+
"""
|
|
734
|
+
|
|
735
|
+
def put_resource_policy(
|
|
736
|
+
self, **kwargs: Unpack[PutResourcePolicyRequestRequestTypeDef]
|
|
737
|
+
) -> PutResourcePolicyResponseTypeDef:
|
|
738
|
+
"""
|
|
739
|
+
Creates or updates a resource policy.
|
|
740
|
+
|
|
741
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/put_resource_policy.html)
|
|
742
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#put_resource_policy)
|
|
743
|
+
"""
|
|
744
|
+
|
|
745
|
+
def register_delegated_administrator(
|
|
746
|
+
self, **kwargs: Unpack[RegisterDelegatedAdministratorRequestRequestTypeDef]
|
|
747
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
748
|
+
"""
|
|
749
|
+
Enables the specified member account to administer the Organizations features
|
|
750
|
+
of the specified Amazon Web Services service.
|
|
751
|
+
|
|
752
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/register_delegated_administrator.html)
|
|
753
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#register_delegated_administrator)
|
|
754
|
+
"""
|
|
755
|
+
|
|
756
|
+
def remove_account_from_organization(
|
|
757
|
+
self, **kwargs: Unpack[RemoveAccountFromOrganizationRequestRequestTypeDef]
|
|
758
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
759
|
+
"""
|
|
760
|
+
Removes the specified account from the organization.
|
|
761
|
+
|
|
762
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/remove_account_from_organization.html)
|
|
763
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#remove_account_from_organization)
|
|
764
|
+
"""
|
|
765
|
+
|
|
766
|
+
def tag_resource(
|
|
767
|
+
self, **kwargs: Unpack[TagResourceRequestRequestTypeDef]
|
|
768
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
769
|
+
"""
|
|
770
|
+
Adds one or more tags to the specified resource.
|
|
771
|
+
|
|
772
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/tag_resource.html)
|
|
773
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#tag_resource)
|
|
774
|
+
"""
|
|
775
|
+
|
|
776
|
+
def untag_resource(
|
|
777
|
+
self, **kwargs: Unpack[UntagResourceRequestRequestTypeDef]
|
|
778
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
779
|
+
"""
|
|
780
|
+
Removes any tags with the specified keys from the specified resource.
|
|
781
|
+
|
|
782
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/untag_resource.html)
|
|
783
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#untag_resource)
|
|
784
|
+
"""
|
|
785
|
+
|
|
786
|
+
def update_organizational_unit(
|
|
787
|
+
self, **kwargs: Unpack[UpdateOrganizationalUnitRequestRequestTypeDef]
|
|
788
|
+
) -> UpdateOrganizationalUnitResponseTypeDef:
|
|
789
|
+
"""
|
|
790
|
+
Renames the specified organizational unit (OU).
|
|
791
|
+
|
|
792
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/update_organizational_unit.html)
|
|
793
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#update_organizational_unit)
|
|
794
|
+
"""
|
|
795
|
+
|
|
796
|
+
def update_policy(
|
|
797
|
+
self, **kwargs: Unpack[UpdatePolicyRequestRequestTypeDef]
|
|
798
|
+
) -> UpdatePolicyResponseTypeDef:
|
|
799
|
+
"""
|
|
800
|
+
Updates an existing policy with a new name, description, or content.
|
|
801
|
+
|
|
802
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/update_policy.html)
|
|
803
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#update_policy)
|
|
804
|
+
"""
|
|
805
|
+
|
|
806
|
+
@overload
|
|
807
|
+
def get_paginator(
|
|
808
|
+
self, operation_name: Literal["list_aws_service_access_for_organization"]
|
|
809
|
+
) -> ListAWSServiceAccessForOrganizationPaginator:
|
|
810
|
+
"""
|
|
811
|
+
Create a paginator for an operation.
|
|
812
|
+
|
|
813
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
814
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
815
|
+
"""
|
|
816
|
+
|
|
817
|
+
@overload
|
|
818
|
+
def get_paginator(
|
|
819
|
+
self, operation_name: Literal["list_accounts_for_parent"]
|
|
820
|
+
) -> ListAccountsForParentPaginator:
|
|
821
|
+
"""
|
|
822
|
+
Create a paginator for an operation.
|
|
823
|
+
|
|
824
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
825
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
826
|
+
"""
|
|
827
|
+
|
|
828
|
+
@overload
|
|
829
|
+
def get_paginator(self, operation_name: Literal["list_accounts"]) -> ListAccountsPaginator:
|
|
830
|
+
"""
|
|
831
|
+
Create a paginator for an operation.
|
|
832
|
+
|
|
833
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
834
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
835
|
+
"""
|
|
836
|
+
|
|
837
|
+
@overload
|
|
838
|
+
def get_paginator(self, operation_name: Literal["list_children"]) -> ListChildrenPaginator:
|
|
839
|
+
"""
|
|
840
|
+
Create a paginator for an operation.
|
|
841
|
+
|
|
842
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
843
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
844
|
+
"""
|
|
845
|
+
|
|
846
|
+
@overload
|
|
847
|
+
def get_paginator(
|
|
848
|
+
self, operation_name: Literal["list_create_account_status"]
|
|
849
|
+
) -> ListCreateAccountStatusPaginator:
|
|
850
|
+
"""
|
|
851
|
+
Create a paginator for an operation.
|
|
852
|
+
|
|
853
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
854
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
855
|
+
"""
|
|
856
|
+
|
|
857
|
+
@overload
|
|
858
|
+
def get_paginator(
|
|
859
|
+
self, operation_name: Literal["list_delegated_administrators"]
|
|
860
|
+
) -> ListDelegatedAdministratorsPaginator:
|
|
861
|
+
"""
|
|
862
|
+
Create a paginator for an operation.
|
|
863
|
+
|
|
864
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
865
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
866
|
+
"""
|
|
867
|
+
|
|
868
|
+
@overload
|
|
869
|
+
def get_paginator(
|
|
870
|
+
self, operation_name: Literal["list_delegated_services_for_account"]
|
|
871
|
+
) -> ListDelegatedServicesForAccountPaginator:
|
|
872
|
+
"""
|
|
873
|
+
Create a paginator for an operation.
|
|
874
|
+
|
|
875
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
876
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
877
|
+
"""
|
|
878
|
+
|
|
879
|
+
@overload
|
|
880
|
+
def get_paginator(
|
|
881
|
+
self, operation_name: Literal["list_handshakes_for_account"]
|
|
882
|
+
) -> ListHandshakesForAccountPaginator:
|
|
883
|
+
"""
|
|
884
|
+
Create a paginator for an operation.
|
|
885
|
+
|
|
886
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
887
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
888
|
+
"""
|
|
889
|
+
|
|
890
|
+
@overload
|
|
891
|
+
def get_paginator(
|
|
892
|
+
self, operation_name: Literal["list_handshakes_for_organization"]
|
|
893
|
+
) -> ListHandshakesForOrganizationPaginator:
|
|
894
|
+
"""
|
|
895
|
+
Create a paginator for an operation.
|
|
896
|
+
|
|
897
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
898
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
899
|
+
"""
|
|
900
|
+
|
|
901
|
+
@overload
|
|
902
|
+
def get_paginator(
|
|
903
|
+
self, operation_name: Literal["list_organizational_units_for_parent"]
|
|
904
|
+
) -> ListOrganizationalUnitsForParentPaginator:
|
|
905
|
+
"""
|
|
906
|
+
Create a paginator for an operation.
|
|
907
|
+
|
|
908
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
909
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
910
|
+
"""
|
|
911
|
+
|
|
912
|
+
@overload
|
|
913
|
+
def get_paginator(self, operation_name: Literal["list_parents"]) -> ListParentsPaginator:
|
|
914
|
+
"""
|
|
915
|
+
Create a paginator for an operation.
|
|
916
|
+
|
|
917
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
918
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
919
|
+
"""
|
|
920
|
+
|
|
921
|
+
@overload
|
|
922
|
+
def get_paginator(
|
|
923
|
+
self, operation_name: Literal["list_policies_for_target"]
|
|
924
|
+
) -> ListPoliciesForTargetPaginator:
|
|
925
|
+
"""
|
|
926
|
+
Create a paginator for an operation.
|
|
927
|
+
|
|
928
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
929
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
930
|
+
"""
|
|
931
|
+
|
|
932
|
+
@overload
|
|
933
|
+
def get_paginator(self, operation_name: Literal["list_policies"]) -> ListPoliciesPaginator:
|
|
934
|
+
"""
|
|
935
|
+
Create a paginator for an operation.
|
|
936
|
+
|
|
937
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
938
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
939
|
+
"""
|
|
940
|
+
|
|
941
|
+
@overload
|
|
942
|
+
def get_paginator(self, operation_name: Literal["list_roots"]) -> ListRootsPaginator:
|
|
943
|
+
"""
|
|
944
|
+
Create a paginator for an operation.
|
|
945
|
+
|
|
946
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
947
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
948
|
+
"""
|
|
949
|
+
|
|
950
|
+
@overload
|
|
951
|
+
def get_paginator(
|
|
952
|
+
self, operation_name: Literal["list_tags_for_resource"]
|
|
953
|
+
) -> ListTagsForResourcePaginator:
|
|
954
|
+
"""
|
|
955
|
+
Create a paginator for an operation.
|
|
956
|
+
|
|
957
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
958
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
959
|
+
"""
|
|
960
|
+
|
|
961
|
+
@overload
|
|
962
|
+
def get_paginator(
|
|
963
|
+
self, operation_name: Literal["list_targets_for_policy"]
|
|
964
|
+
) -> ListTargetsForPolicyPaginator:
|
|
965
|
+
"""
|
|
966
|
+
Create a paginator for an operation.
|
|
967
|
+
|
|
968
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations/client/get_paginator.html)
|
|
969
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_organizations/client/#get_paginator)
|
|
970
|
+
"""
|