@effect-aws/client-organizations 1.0.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/CHANGELOG.md +7 -0
- package/LICENSE +19 -0
- package/README.md +58 -0
- package/docgen.json +8 -0
- package/lib/Errors.d.ts +59 -0
- package/lib/Errors.js +55 -0
- package/lib/OrganizationsClientInstance.d.ts +31 -0
- package/lib/OrganizationsClientInstance.js +57 -0
- package/lib/OrganizationsClientInstanceConfig.d.ts +23 -0
- package/lib/OrganizationsClientInstanceConfig.js +44 -0
- package/lib/OrganizationsService.d.ts +340 -0
- package/lib/OrganizationsService.js +143 -0
- package/lib/esm/Errors.js +52 -0
- package/lib/esm/OrganizationsClientInstance.js +30 -0
- package/lib/esm/OrganizationsClientInstanceConfig.js +40 -0
- package/lib/esm/OrganizationsService.js +139 -0
- package/lib/esm/index.js +5 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +21 -0
- package/package.json +54 -0
- package/project.json +77 -0
- package/vitest.config.ts +3 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { type OrganizationsClient, type OrganizationsClientConfig, type AcceptHandshakeCommandInput, type AcceptHandshakeCommandOutput, type AttachPolicyCommandInput, type AttachPolicyCommandOutput, type CancelHandshakeCommandInput, type CancelHandshakeCommandOutput, type CloseAccountCommandInput, type CloseAccountCommandOutput, type CreateAccountCommandInput, type CreateAccountCommandOutput, type CreateGovCloudAccountCommandInput, type CreateGovCloudAccountCommandOutput, type CreateOrganizationCommandInput, type CreateOrganizationCommandOutput, type CreateOrganizationalUnitCommandInput, type CreateOrganizationalUnitCommandOutput, type CreatePolicyCommandInput, type CreatePolicyCommandOutput, type DeclineHandshakeCommandInput, type DeclineHandshakeCommandOutput, type DeleteOrganizationCommandInput, type DeleteOrganizationCommandOutput, type DeleteOrganizationalUnitCommandInput, type DeleteOrganizationalUnitCommandOutput, type DeletePolicyCommandInput, type DeletePolicyCommandOutput, type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput, type DeregisterDelegatedAdministratorCommandInput, type DeregisterDelegatedAdministratorCommandOutput, type DescribeAccountCommandInput, type DescribeAccountCommandOutput, type DescribeCreateAccountStatusCommandInput, type DescribeCreateAccountStatusCommandOutput, type DescribeEffectivePolicyCommandInput, type DescribeEffectivePolicyCommandOutput, type DescribeHandshakeCommandInput, type DescribeHandshakeCommandOutput, type DescribeOrganizationCommandInput, type DescribeOrganizationCommandOutput, type DescribeOrganizationalUnitCommandInput, type DescribeOrganizationalUnitCommandOutput, type DescribePolicyCommandInput, type DescribePolicyCommandOutput, type DescribeResourcePolicyCommandInput, type DescribeResourcePolicyCommandOutput, type DetachPolicyCommandInput, type DetachPolicyCommandOutput, type DisableAWSServiceAccessCommandInput, type DisableAWSServiceAccessCommandOutput, type DisablePolicyTypeCommandInput, type DisablePolicyTypeCommandOutput, type EnableAWSServiceAccessCommandInput, type EnableAWSServiceAccessCommandOutput, type EnableAllFeaturesCommandInput, type EnableAllFeaturesCommandOutput, type EnablePolicyTypeCommandInput, type EnablePolicyTypeCommandOutput, type InviteAccountToOrganizationCommandInput, type InviteAccountToOrganizationCommandOutput, type LeaveOrganizationCommandInput, type LeaveOrganizationCommandOutput, type ListAWSServiceAccessForOrganizationCommandInput, type ListAWSServiceAccessForOrganizationCommandOutput, type ListAccountsCommandInput, type ListAccountsCommandOutput, type ListAccountsForParentCommandInput, type ListAccountsForParentCommandOutput, type ListChildrenCommandInput, type ListChildrenCommandOutput, type ListCreateAccountStatusCommandInput, type ListCreateAccountStatusCommandOutput, type ListDelegatedAdministratorsCommandInput, type ListDelegatedAdministratorsCommandOutput, type ListDelegatedServicesForAccountCommandInput, type ListDelegatedServicesForAccountCommandOutput, type ListHandshakesForAccountCommandInput, type ListHandshakesForAccountCommandOutput, type ListHandshakesForOrganizationCommandInput, type ListHandshakesForOrganizationCommandOutput, type ListOrganizationalUnitsForParentCommandInput, type ListOrganizationalUnitsForParentCommandOutput, type ListParentsCommandInput, type ListParentsCommandOutput, type ListPoliciesCommandInput, type ListPoliciesCommandOutput, type ListPoliciesForTargetCommandInput, type ListPoliciesForTargetCommandOutput, type ListRootsCommandInput, type ListRootsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListTargetsForPolicyCommandInput, type ListTargetsForPolicyCommandOutput, type MoveAccountCommandInput, type MoveAccountCommandOutput, type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput, type RegisterDelegatedAdministratorCommandInput, type RegisterDelegatedAdministratorCommandOutput, type RemoveAccountFromOrganizationCommandInput, type RemoveAccountFromOrganizationCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateOrganizationalUnitCommandInput, type UpdateOrganizationalUnitCommandOutput, type UpdatePolicyCommandInput, type UpdatePolicyCommandOutput } from "@aws-sdk/client-organizations";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import { AWSOrganizationsNotInUseError, AccessDeniedError, AccessDeniedForDependencyError, AccountAlreadyClosedError, AccountAlreadyRegisteredError, AccountNotFoundError, AccountNotRegisteredError, AccountOwnerNotVerifiedError, AlreadyInOrganizationError, ChildNotFoundError, ConcurrentModificationError, ConflictError, ConstraintViolationError, CreateAccountStatusNotFoundError, DestinationParentNotFoundError, DuplicateAccountError, DuplicateHandshakeError, DuplicateOrganizationalUnitError, DuplicatePolicyAttachmentError, DuplicatePolicyError, EffectivePolicyNotFoundError, FinalizingOrganizationError, HandshakeAlreadyInStateError, HandshakeConstraintViolationError, HandshakeNotFoundError, InvalidHandshakeTransitionError, InvalidInputError, MalformedPolicyDocumentError, MasterCannotLeaveOrganizationError, OrganizationNotEmptyError, OrganizationalUnitNotEmptyError, OrganizationalUnitNotFoundError, ParentNotFoundError, PolicyChangesInProgressError, PolicyInUseError, PolicyNotAttachedError, PolicyNotFoundError, PolicyTypeAlreadyEnabledError, PolicyTypeNotAvailableForOrganizationError, PolicyTypeNotEnabledError, ResourcePolicyNotFoundError, RootNotFoundError, ServiceError, SourceParentNotFoundError, TargetNotFoundError, TooManyRequestsError, UnsupportedAPIEndpointError, SdkError } from "./Errors";
|
|
7
|
+
import { OrganizationsClientInstance } from "./OrganizationsClientInstance";
|
|
8
|
+
import { OrganizationsClientInstanceConfig } from "./OrganizationsClientInstanceConfig";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export interface HttpHandlerOptions {
|
|
13
|
+
/**
|
|
14
|
+
* The maximum time in milliseconds that the connection phase of a request
|
|
15
|
+
* may take before the connection attempt is abandoned.
|
|
16
|
+
*/
|
|
17
|
+
requestTimeout?: number;
|
|
18
|
+
}
|
|
19
|
+
interface OrganizationsService$ {
|
|
20
|
+
readonly _: unique symbol;
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link AcceptHandshakeCommand}
|
|
23
|
+
*/
|
|
24
|
+
acceptHandshake(args: AcceptHandshakeCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptHandshakeCommandOutput, SdkError | AccessDeniedError | AccessDeniedForDependencyError | AWSOrganizationsNotInUseError | ConcurrentModificationError | HandshakeAlreadyInStateError | HandshakeConstraintViolationError | HandshakeNotFoundError | InvalidHandshakeTransitionError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
25
|
+
/**
|
|
26
|
+
* @see {@link AttachPolicyCommand}
|
|
27
|
+
*/
|
|
28
|
+
attachPolicy(args: AttachPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<AttachPolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | DuplicatePolicyAttachmentError | InvalidInputError | PolicyChangesInProgressError | PolicyNotFoundError | PolicyTypeNotEnabledError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link CancelHandshakeCommand}
|
|
31
|
+
*/
|
|
32
|
+
cancelHandshake(args: CancelHandshakeCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelHandshakeCommandOutput, SdkError | AccessDeniedError | ConcurrentModificationError | HandshakeAlreadyInStateError | HandshakeNotFoundError | InvalidHandshakeTransitionError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
33
|
+
/**
|
|
34
|
+
* @see {@link CloseAccountCommand}
|
|
35
|
+
*/
|
|
36
|
+
closeAccount(args: CloseAccountCommandInput, options?: HttpHandlerOptions): Effect.Effect<CloseAccountCommandOutput, SdkError | AccessDeniedError | AccountAlreadyClosedError | AccountNotFoundError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConflictError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link CreateAccountCommand}
|
|
39
|
+
*/
|
|
40
|
+
createAccount(args: CreateAccountCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAccountCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | FinalizingOrganizationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
41
|
+
/**
|
|
42
|
+
* @see {@link CreateGovCloudAccountCommand}
|
|
43
|
+
*/
|
|
44
|
+
createGovCloudAccount(args: CreateGovCloudAccountCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateGovCloudAccountCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | FinalizingOrganizationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
45
|
+
/**
|
|
46
|
+
* @see {@link CreateOrganizationCommand}
|
|
47
|
+
*/
|
|
48
|
+
createOrganization(args: CreateOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateOrganizationCommandOutput, SdkError | AccessDeniedError | AccessDeniedForDependencyError | AlreadyInOrganizationError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link CreateOrganizationalUnitCommand}
|
|
51
|
+
*/
|
|
52
|
+
createOrganizationalUnit(args: CreateOrganizationalUnitCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateOrganizationalUnitCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | DuplicateOrganizationalUnitError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError>;
|
|
53
|
+
/**
|
|
54
|
+
* @see {@link CreatePolicyCommand}
|
|
55
|
+
*/
|
|
56
|
+
createPolicy(args: CreatePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreatePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | DuplicatePolicyError | InvalidInputError | MalformedPolicyDocumentError | PolicyTypeNotAvailableForOrganizationError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
57
|
+
/**
|
|
58
|
+
* @see {@link DeclineHandshakeCommand}
|
|
59
|
+
*/
|
|
60
|
+
declineHandshake(args: DeclineHandshakeCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeclineHandshakeCommandOutput, SdkError | AccessDeniedError | ConcurrentModificationError | HandshakeAlreadyInStateError | HandshakeNotFoundError | InvalidHandshakeTransitionError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
61
|
+
/**
|
|
62
|
+
* @see {@link DeleteOrganizationCommand}
|
|
63
|
+
*/
|
|
64
|
+
deleteOrganization(args: DeleteOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteOrganizationCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | InvalidInputError | OrganizationNotEmptyError | ServiceError | TooManyRequestsError>;
|
|
65
|
+
/**
|
|
66
|
+
* @see {@link DeleteOrganizationalUnitCommand}
|
|
67
|
+
*/
|
|
68
|
+
deleteOrganizationalUnit(args: DeleteOrganizationalUnitCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteOrganizationalUnitCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | InvalidInputError | OrganizationalUnitNotEmptyError | OrganizationalUnitNotFoundError | ServiceError | TooManyRequestsError>;
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link DeletePolicyCommand}
|
|
71
|
+
*/
|
|
72
|
+
deletePolicy(args: DeletePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeletePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | InvalidInputError | PolicyInUseError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
73
|
+
/**
|
|
74
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
75
|
+
*/
|
|
76
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteResourcePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | ResourcePolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
77
|
+
/**
|
|
78
|
+
* @see {@link DeregisterDelegatedAdministratorCommand}
|
|
79
|
+
*/
|
|
80
|
+
deregisterDelegatedAdministrator(args: DeregisterDelegatedAdministratorCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeregisterDelegatedAdministratorCommandOutput, SdkError | AccessDeniedError | AccountNotFoundError | AccountNotRegisteredError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
81
|
+
/**
|
|
82
|
+
* @see {@link DescribeAccountCommand}
|
|
83
|
+
*/
|
|
84
|
+
describeAccount(args: DescribeAccountCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeAccountCommandOutput, SdkError | AccessDeniedError | AccountNotFoundError | AWSOrganizationsNotInUseError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
85
|
+
/**
|
|
86
|
+
* @see {@link DescribeCreateAccountStatusCommand}
|
|
87
|
+
*/
|
|
88
|
+
describeCreateAccountStatus(args: DescribeCreateAccountStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeCreateAccountStatusCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | CreateAccountStatusNotFoundError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link DescribeEffectivePolicyCommand}
|
|
91
|
+
*/
|
|
92
|
+
describeEffectivePolicy(args: DescribeEffectivePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeEffectivePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConstraintViolationError | EffectivePolicyNotFoundError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
93
|
+
/**
|
|
94
|
+
* @see {@link DescribeHandshakeCommand}
|
|
95
|
+
*/
|
|
96
|
+
describeHandshake(args: DescribeHandshakeCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeHandshakeCommandOutput, SdkError | AccessDeniedError | ConcurrentModificationError | HandshakeNotFoundError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
97
|
+
/**
|
|
98
|
+
* @see {@link DescribeOrganizationCommand}
|
|
99
|
+
*/
|
|
100
|
+
describeOrganization(args: DescribeOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeOrganizationCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ServiceError | TooManyRequestsError>;
|
|
101
|
+
/**
|
|
102
|
+
* @see {@link DescribeOrganizationalUnitCommand}
|
|
103
|
+
*/
|
|
104
|
+
describeOrganizationalUnit(args: DescribeOrganizationalUnitCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeOrganizationalUnitCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | OrganizationalUnitNotFoundError | ServiceError | TooManyRequestsError>;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link DescribePolicyCommand}
|
|
107
|
+
*/
|
|
108
|
+
describePolicy(args: DescribePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
109
|
+
/**
|
|
110
|
+
* @see {@link DescribeResourcePolicyCommand}
|
|
111
|
+
*/
|
|
112
|
+
describeResourcePolicy(args: DescribeResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeResourcePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConstraintViolationError | ResourcePolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
113
|
+
/**
|
|
114
|
+
* @see {@link DetachPolicyCommand}
|
|
115
|
+
*/
|
|
116
|
+
detachPolicy(args: DetachPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DetachPolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | PolicyChangesInProgressError | PolicyNotAttachedError | PolicyNotFoundError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
117
|
+
/**
|
|
118
|
+
* @see {@link DisableAWSServiceAccessCommand}
|
|
119
|
+
*/
|
|
120
|
+
disableAWSServiceAccess(args: DisableAWSServiceAccessCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableAWSServiceAccessCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
121
|
+
/**
|
|
122
|
+
* @see {@link DisablePolicyTypeCommand}
|
|
123
|
+
*/
|
|
124
|
+
disablePolicyType(args: DisablePolicyTypeCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisablePolicyTypeCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | PolicyChangesInProgressError | PolicyTypeNotEnabledError | RootNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
125
|
+
/**
|
|
126
|
+
* @see {@link EnableAWSServiceAccessCommand}
|
|
127
|
+
*/
|
|
128
|
+
enableAWSServiceAccess(args: EnableAWSServiceAccessCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableAWSServiceAccessCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
129
|
+
/**
|
|
130
|
+
* @see {@link EnableAllFeaturesCommand}
|
|
131
|
+
*/
|
|
132
|
+
enableAllFeatures(args: EnableAllFeaturesCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableAllFeaturesCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | HandshakeConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
133
|
+
/**
|
|
134
|
+
* @see {@link EnablePolicyTypeCommand}
|
|
135
|
+
*/
|
|
136
|
+
enablePolicyType(args: EnablePolicyTypeCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnablePolicyTypeCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | PolicyChangesInProgressError | PolicyTypeAlreadyEnabledError | PolicyTypeNotAvailableForOrganizationError | RootNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
137
|
+
/**
|
|
138
|
+
* @see {@link InviteAccountToOrganizationCommand}
|
|
139
|
+
*/
|
|
140
|
+
inviteAccountToOrganization(args: InviteAccountToOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<InviteAccountToOrganizationCommandOutput, SdkError | AccessDeniedError | AccountOwnerNotVerifiedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | DuplicateHandshakeError | FinalizingOrganizationError | HandshakeConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
141
|
+
/**
|
|
142
|
+
* @see {@link LeaveOrganizationCommand}
|
|
143
|
+
*/
|
|
144
|
+
leaveOrganization(args: LeaveOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<LeaveOrganizationCommandOutput, SdkError | AccessDeniedError | AccountNotFoundError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | MasterCannotLeaveOrganizationError | ServiceError | TooManyRequestsError>;
|
|
145
|
+
/**
|
|
146
|
+
* @see {@link ListAWSServiceAccessForOrganizationCommand}
|
|
147
|
+
*/
|
|
148
|
+
listAWSServiceAccessForOrganization(args: ListAWSServiceAccessForOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAWSServiceAccessForOrganizationCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
149
|
+
/**
|
|
150
|
+
* @see {@link ListAccountsCommand}
|
|
151
|
+
*/
|
|
152
|
+
listAccounts(args: ListAccountsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAccountsCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link ListAccountsForParentCommand}
|
|
155
|
+
*/
|
|
156
|
+
listAccountsForParent(args: ListAccountsForParentCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAccountsForParentCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError>;
|
|
157
|
+
/**
|
|
158
|
+
* @see {@link ListChildrenCommand}
|
|
159
|
+
*/
|
|
160
|
+
listChildren(args: ListChildrenCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListChildrenCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError>;
|
|
161
|
+
/**
|
|
162
|
+
* @see {@link ListCreateAccountStatusCommand}
|
|
163
|
+
*/
|
|
164
|
+
listCreateAccountStatus(args: ListCreateAccountStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListCreateAccountStatusCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
165
|
+
/**
|
|
166
|
+
* @see {@link ListDelegatedAdministratorsCommand}
|
|
167
|
+
*/
|
|
168
|
+
listDelegatedAdministrators(args: ListDelegatedAdministratorsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDelegatedAdministratorsCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
169
|
+
/**
|
|
170
|
+
* @see {@link ListDelegatedServicesForAccountCommand}
|
|
171
|
+
*/
|
|
172
|
+
listDelegatedServicesForAccount(args: ListDelegatedServicesForAccountCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDelegatedServicesForAccountCommandOutput, SdkError | AccessDeniedError | AccountNotFoundError | AccountNotRegisteredError | AWSOrganizationsNotInUseError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
173
|
+
/**
|
|
174
|
+
* @see {@link ListHandshakesForAccountCommand}
|
|
175
|
+
*/
|
|
176
|
+
listHandshakesForAccount(args: ListHandshakesForAccountCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListHandshakesForAccountCommandOutput, SdkError | AccessDeniedError | ConcurrentModificationError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
177
|
+
/**
|
|
178
|
+
* @see {@link ListHandshakesForOrganizationCommand}
|
|
179
|
+
*/
|
|
180
|
+
listHandshakesForOrganization(args: ListHandshakesForOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListHandshakesForOrganizationCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
181
|
+
/**
|
|
182
|
+
* @see {@link ListOrganizationalUnitsForParentCommand}
|
|
183
|
+
*/
|
|
184
|
+
listOrganizationalUnitsForParent(args: ListOrganizationalUnitsForParentCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListOrganizationalUnitsForParentCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError>;
|
|
185
|
+
/**
|
|
186
|
+
* @see {@link ListParentsCommand}
|
|
187
|
+
*/
|
|
188
|
+
listParents(args: ListParentsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListParentsCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ChildNotFoundError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
189
|
+
/**
|
|
190
|
+
* @see {@link ListPoliciesCommand}
|
|
191
|
+
*/
|
|
192
|
+
listPolicies(args: ListPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListPoliciesCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
193
|
+
/**
|
|
194
|
+
* @see {@link ListPoliciesForTargetCommand}
|
|
195
|
+
*/
|
|
196
|
+
listPoliciesForTarget(args: ListPoliciesForTargetCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListPoliciesForTargetCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
197
|
+
/**
|
|
198
|
+
* @see {@link ListRootsCommand}
|
|
199
|
+
*/
|
|
200
|
+
listRoots(args: ListRootsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRootsCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ServiceError | TooManyRequestsError>;
|
|
201
|
+
/**
|
|
202
|
+
* @see {@link ListTagsForResourceCommand}
|
|
203
|
+
*/
|
|
204
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError>;
|
|
205
|
+
/**
|
|
206
|
+
* @see {@link ListTargetsForPolicyCommand}
|
|
207
|
+
*/
|
|
208
|
+
listTargetsForPolicy(args: ListTargetsForPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTargetsForPolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | InvalidInputError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
209
|
+
/**
|
|
210
|
+
* @see {@link MoveAccountCommand}
|
|
211
|
+
*/
|
|
212
|
+
moveAccount(args: MoveAccountCommandInput, options?: HttpHandlerOptions): Effect.Effect<MoveAccountCommandOutput, SdkError | AccessDeniedError | AccountNotFoundError | AWSOrganizationsNotInUseError | ConcurrentModificationError | DestinationParentNotFoundError | DuplicateAccountError | InvalidInputError | ServiceError | SourceParentNotFoundError | TooManyRequestsError>;
|
|
213
|
+
/**
|
|
214
|
+
* @see {@link PutResourcePolicyCommand}
|
|
215
|
+
*/
|
|
216
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutResourcePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
217
|
+
/**
|
|
218
|
+
* @see {@link RegisterDelegatedAdministratorCommand}
|
|
219
|
+
*/
|
|
220
|
+
registerDelegatedAdministrator(args: RegisterDelegatedAdministratorCommandInput, options?: HttpHandlerOptions): Effect.Effect<RegisterDelegatedAdministratorCommandOutput, SdkError | AccessDeniedError | AccountAlreadyRegisteredError | AccountNotFoundError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
221
|
+
/**
|
|
222
|
+
* @see {@link RemoveAccountFromOrganizationCommand}
|
|
223
|
+
*/
|
|
224
|
+
removeAccountFromOrganization(args: RemoveAccountFromOrganizationCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemoveAccountFromOrganizationCommandOutput, SdkError | AccessDeniedError | AccountNotFoundError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | MasterCannotLeaveOrganizationError | ServiceError | TooManyRequestsError>;
|
|
225
|
+
/**
|
|
226
|
+
* @see {@link TagResourceCommand}
|
|
227
|
+
*/
|
|
228
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError>;
|
|
229
|
+
/**
|
|
230
|
+
* @see {@link UntagResourceCommand}
|
|
231
|
+
*/
|
|
232
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError>;
|
|
233
|
+
/**
|
|
234
|
+
* @see {@link UpdateOrganizationalUnitCommand}
|
|
235
|
+
*/
|
|
236
|
+
updateOrganizationalUnit(args: UpdateOrganizationalUnitCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateOrganizationalUnitCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | DuplicateOrganizationalUnitError | InvalidInputError | OrganizationalUnitNotFoundError | ServiceError | TooManyRequestsError>;
|
|
237
|
+
/**
|
|
238
|
+
* @see {@link UpdatePolicyCommand}
|
|
239
|
+
*/
|
|
240
|
+
updatePolicy(args: UpdatePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdatePolicyCommandOutput, SdkError | AccessDeniedError | AWSOrganizationsNotInUseError | ConcurrentModificationError | ConstraintViolationError | DuplicatePolicyError | InvalidInputError | MalformedPolicyDocumentError | PolicyChangesInProgressError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError>;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* @since 1.0.0
|
|
244
|
+
* @category constructors
|
|
245
|
+
*/
|
|
246
|
+
export declare const makeOrganizationsService: Effect.Effect<OrganizationsService$, never, OrganizationsClientInstance>;
|
|
247
|
+
declare const OrganizationsService_base: import("effect/Context").TagClass<OrganizationsService, "@effect-aws/client-organizations/OrganizationsService", OrganizationsService$> & {
|
|
248
|
+
readonly _: Effect.Effect<OrganizationsService$["_"], never, OrganizationsService>;
|
|
249
|
+
acceptHandshake: (args: AcceptHandshakeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AcceptHandshakeCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccessDeniedForDependencyError | ConcurrentModificationError | HandshakeAlreadyInStateError | HandshakeConstraintViolationError | HandshakeNotFoundError | InvalidHandshakeTransitionError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
250
|
+
attachPolicy: (args: AttachPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AttachPolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | DuplicatePolicyAttachmentError | InvalidInputError | PolicyChangesInProgressError | PolicyNotFoundError | PolicyTypeNotEnabledError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
251
|
+
cancelHandshake: (args: CancelHandshakeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CancelHandshakeCommandOutput, AccessDeniedError | ConcurrentModificationError | HandshakeAlreadyInStateError | HandshakeNotFoundError | InvalidHandshakeTransitionError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
252
|
+
closeAccount: (args: CloseAccountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CloseAccountCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountAlreadyClosedError | AccountNotFoundError | ConcurrentModificationError | ConflictError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
253
|
+
createAccount: (args: CreateAccountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateAccountCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | FinalizingOrganizationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
254
|
+
createGovCloudAccount: (args: CreateGovCloudAccountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateGovCloudAccountCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | FinalizingOrganizationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
255
|
+
createOrganization: (args: CreateOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateOrganizationCommandOutput, AccessDeniedError | AccessDeniedForDependencyError | AlreadyInOrganizationError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
256
|
+
createOrganizationalUnit: (args: CreateOrganizationalUnitCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateOrganizationalUnitCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | DuplicateOrganizationalUnitError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
257
|
+
createPolicy: (args: CreatePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreatePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | DuplicatePolicyError | InvalidInputError | MalformedPolicyDocumentError | PolicyTypeNotAvailableForOrganizationError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
258
|
+
declineHandshake: (args: DeclineHandshakeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeclineHandshakeCommandOutput, AccessDeniedError | ConcurrentModificationError | HandshakeAlreadyInStateError | HandshakeNotFoundError | InvalidHandshakeTransitionError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
259
|
+
deleteOrganization: (args: DeleteOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteOrganizationCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | InvalidInputError | OrganizationNotEmptyError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
260
|
+
deleteOrganizationalUnit: (args: DeleteOrganizationalUnitCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteOrganizationalUnitCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | InvalidInputError | OrganizationalUnitNotEmptyError | OrganizationalUnitNotFoundError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
261
|
+
deletePolicy: (args: DeletePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeletePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | InvalidInputError | PolicyInUseError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
262
|
+
deleteResourcePolicy: (args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteResourcePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | ResourcePolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
263
|
+
deregisterDelegatedAdministrator: (args: DeregisterDelegatedAdministratorCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeregisterDelegatedAdministratorCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountNotFoundError | AccountNotRegisteredError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
264
|
+
describeAccount: (args: DescribeAccountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeAccountCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountNotFoundError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
265
|
+
describeCreateAccountStatus: (args: DescribeCreateAccountStatusCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeCreateAccountStatusCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | CreateAccountStatusNotFoundError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
266
|
+
describeEffectivePolicy: (args: DescribeEffectivePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeEffectivePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConstraintViolationError | EffectivePolicyNotFoundError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
267
|
+
describeHandshake: (args: DescribeHandshakeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeHandshakeCommandOutput, AccessDeniedError | ConcurrentModificationError | HandshakeNotFoundError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
268
|
+
describeOrganization: (args: DescribeOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeOrganizationCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
269
|
+
describeOrganizationalUnit: (args: DescribeOrganizationalUnitCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeOrganizationalUnitCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | OrganizationalUnitNotFoundError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
270
|
+
describePolicy: (args: DescribePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
271
|
+
describeResourcePolicy: (args: DescribeResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeResourcePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConstraintViolationError | ResourcePolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
272
|
+
detachPolicy: (args: DetachPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DetachPolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | PolicyChangesInProgressError | PolicyNotAttachedError | PolicyNotFoundError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
273
|
+
disableAWSServiceAccess: (args: DisableAWSServiceAccessCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DisableAWSServiceAccessCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
274
|
+
disablePolicyType: (args: DisablePolicyTypeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DisablePolicyTypeCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | PolicyChangesInProgressError | PolicyTypeNotEnabledError | RootNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
275
|
+
enableAWSServiceAccess: (args: EnableAWSServiceAccessCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<EnableAWSServiceAccessCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
276
|
+
enableAllFeatures: (args: EnableAllFeaturesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<EnableAllFeaturesCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | HandshakeConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
277
|
+
enablePolicyType: (args: EnablePolicyTypeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<EnablePolicyTypeCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | PolicyChangesInProgressError | PolicyTypeAlreadyEnabledError | PolicyTypeNotAvailableForOrganizationError | RootNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
278
|
+
inviteAccountToOrganization: (args: InviteAccountToOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<InviteAccountToOrganizationCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountOwnerNotVerifiedError | ConcurrentModificationError | ConstraintViolationError | DuplicateHandshakeError | FinalizingOrganizationError | HandshakeConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
279
|
+
leaveOrganization: (args: LeaveOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<LeaveOrganizationCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountNotFoundError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | MasterCannotLeaveOrganizationError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
280
|
+
listAWSServiceAccessForOrganization: (args: ListAWSServiceAccessForOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListAWSServiceAccessForOrganizationCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
281
|
+
listAccounts: (args: ListAccountsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListAccountsCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
282
|
+
listAccountsForParent: (args: ListAccountsForParentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListAccountsForParentCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
283
|
+
listChildren: (args: ListChildrenCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListChildrenCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
284
|
+
listCreateAccountStatus: (args: ListCreateAccountStatusCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListCreateAccountStatusCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
285
|
+
listDelegatedAdministrators: (args: ListDelegatedAdministratorsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListDelegatedAdministratorsCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
286
|
+
listDelegatedServicesForAccount: (args: ListDelegatedServicesForAccountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListDelegatedServicesForAccountCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountNotFoundError | AccountNotRegisteredError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
287
|
+
listHandshakesForAccount: (args: ListHandshakesForAccountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListHandshakesForAccountCommandOutput, AccessDeniedError | ConcurrentModificationError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
288
|
+
listHandshakesForOrganization: (args: ListHandshakesForOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListHandshakesForOrganizationCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
289
|
+
listOrganizationalUnitsForParent: (args: ListOrganizationalUnitsForParentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListOrganizationalUnitsForParentCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ParentNotFoundError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
290
|
+
listParents: (args: ListParentsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListParentsCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ChildNotFoundError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
291
|
+
listPolicies: (args: ListPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListPoliciesCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
292
|
+
listPoliciesForTarget: (args: ListPoliciesForTargetCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListPoliciesForTargetCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
293
|
+
listRoots: (args: ListRootsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListRootsCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
294
|
+
listTagsForResource: (args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTagsForResourceCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
295
|
+
listTargetsForPolicy: (args: ListTargetsForPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTargetsForPolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | InvalidInputError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
296
|
+
moveAccount: (args: MoveAccountCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<MoveAccountCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountNotFoundError | ConcurrentModificationError | DestinationParentNotFoundError | DuplicateAccountError | InvalidInputError | ServiceError | SourceParentNotFoundError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
297
|
+
putResourcePolicy: (args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutResourcePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
298
|
+
registerDelegatedAdministrator: (args: RegisterDelegatedAdministratorCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RegisterDelegatedAdministratorCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountAlreadyRegisteredError | AccountNotFoundError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
299
|
+
removeAccountFromOrganization: (args: RemoveAccountFromOrganizationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RemoveAccountFromOrganizationCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | AccountNotFoundError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | MasterCannotLeaveOrganizationError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
300
|
+
tagResource: (args: TagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<TagResourceCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
301
|
+
untagResource: (args: UntagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagResourceCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | InvalidInputError | ServiceError | TargetNotFoundError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
302
|
+
updateOrganizationalUnit: (args: UpdateOrganizationalUnitCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateOrganizationalUnitCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | DuplicateOrganizationalUnitError | InvalidInputError | OrganizationalUnitNotFoundError | ServiceError | TooManyRequestsError | SdkError, OrganizationsService>;
|
|
303
|
+
updatePolicy: (args: UpdatePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdatePolicyCommandOutput, AWSOrganizationsNotInUseError | AccessDeniedError | ConcurrentModificationError | ConstraintViolationError | DuplicatePolicyError | InvalidInputError | MalformedPolicyDocumentError | PolicyChangesInProgressError | PolicyNotFoundError | ServiceError | TooManyRequestsError | UnsupportedAPIEndpointError | SdkError, OrganizationsService>;
|
|
304
|
+
} & {
|
|
305
|
+
use: <X>(body: (_: OrganizationsService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | OrganizationsService> : Effect.Effect<X, never, OrganizationsService>;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* @since 1.0.0
|
|
309
|
+
* @category models
|
|
310
|
+
*/
|
|
311
|
+
export declare class OrganizationsService extends OrganizationsService_base {
|
|
312
|
+
static readonly defaultLayer: Layer.Layer<OrganizationsService, never, never>;
|
|
313
|
+
static readonly layer: (config: OrganizationsClientConfig) => Layer.Layer<OrganizationsService, never, never>;
|
|
314
|
+
static readonly baseLayer: (evaluate: (defaultConfig: OrganizationsClientConfig) => OrganizationsClient) => Layer.Layer<OrganizationsService, never, never>;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* @since 1.0.0
|
|
318
|
+
* @category models
|
|
319
|
+
* @alias OrganizationsService
|
|
320
|
+
*/
|
|
321
|
+
export declare const Organizations: typeof OrganizationsService;
|
|
322
|
+
/**
|
|
323
|
+
* @since 1.0.0
|
|
324
|
+
* @category layers
|
|
325
|
+
* @deprecated use Organizations.baseLayer instead
|
|
326
|
+
*/
|
|
327
|
+
export declare const BaseOrganizationsServiceLayer: Layer.Layer<OrganizationsService, never, OrganizationsClientInstance>;
|
|
328
|
+
/**
|
|
329
|
+
* @since 1.0.0
|
|
330
|
+
* @category layers
|
|
331
|
+
* @deprecated use Organizations.layer instead
|
|
332
|
+
*/
|
|
333
|
+
export declare const OrganizationsServiceLayer: Layer.Layer<OrganizationsService, never, OrganizationsClientInstanceConfig>;
|
|
334
|
+
/**
|
|
335
|
+
* @since 1.0.0
|
|
336
|
+
* @category layers
|
|
337
|
+
* @deprecated use Organizations.defaultLayer instead
|
|
338
|
+
*/
|
|
339
|
+
export declare const DefaultOrganizationsServiceLayer: Layer.Layer<OrganizationsService, never, never>;
|
|
340
|
+
export {};
|