Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Enables resource sharing within your organization in Organizations. Calling this operation enables RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in an organization by specifying the organization's ID, or all of the accounts in an organizational unit (OU) by specifying the OU's ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM users and roles.
You must call this operation from an IAM user or role in the organization's management account.
Synopsis
- data EnableSharingWithAwsOrganization = EnableSharingWithAwsOrganization' {
- newEnableSharingWithAwsOrganization :: EnableSharingWithAwsOrganization
- data EnableSharingWithAwsOrganizationResponse = EnableSharingWithAwsOrganizationResponse' {
- returnValue :: Maybe Bool
- httpStatus :: Int
- newEnableSharingWithAwsOrganizationResponse :: Int -> EnableSharingWithAwsOrganizationResponse
- enableSharingWithAwsOrganizationResponse_returnValue :: Lens' EnableSharingWithAwsOrganizationResponse (Maybe Bool)
- enableSharingWithAwsOrganizationResponse_httpStatus :: Lens' EnableSharingWithAwsOrganizationResponse Int
Creating a Request
data EnableSharingWithAwsOrganization Source #
See: newEnableSharingWithAwsOrganization
smart constructor.
Instances
newEnableSharingWithAwsOrganization :: EnableSharingWithAwsOrganization Source #
Create a value of EnableSharingWithAwsOrganization
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data EnableSharingWithAwsOrganizationResponse Source #
See: newEnableSharingWithAwsOrganizationResponse
smart constructor.
EnableSharingWithAwsOrganizationResponse' | |
|
Instances
newEnableSharingWithAwsOrganizationResponse Source #
Create a value of EnableSharingWithAwsOrganizationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:returnValue:EnableSharingWithAwsOrganizationResponse'
, enableSharingWithAwsOrganizationResponse_returnValue
- A return value of true
indicates that the request succeeded. A value
of false
indicates that the request failed.
$sel:httpStatus:EnableSharingWithAwsOrganizationResponse'
, enableSharingWithAwsOrganizationResponse_httpStatus
- The response's http status code.
Response Lenses
enableSharingWithAwsOrganizationResponse_returnValue :: Lens' EnableSharingWithAwsOrganizationResponse (Maybe Bool) Source #
A return value of true
indicates that the request succeeded. A value
of false
indicates that the request failed.
enableSharingWithAwsOrganizationResponse_httpStatus :: Lens' EnableSharingWithAwsOrganizationResponse Int Source #
The response's http status code.