amazonka-ram-2.0: Amazon Resource Access Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RAM.EnableSharingWithAwsOrganization

Description

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

Creating a Request

data EnableSharingWithAwsOrganization Source #

See: newEnableSharingWithAwsOrganization smart constructor.

Instances

Instances details
ToJSON EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

ToHeaders EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

ToPath EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

ToQuery EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

AWSRequest EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Generic EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Associated Types

type Rep EnableSharingWithAwsOrganization :: Type -> Type #

Read EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Show EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

NFData EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Eq EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Hashable EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

type AWSResponse EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

type Rep EnableSharingWithAwsOrganization Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

type Rep EnableSharingWithAwsOrganization = D1 ('MetaData "EnableSharingWithAwsOrganization" "Amazonka.RAM.EnableSharingWithAwsOrganization" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "EnableSharingWithAwsOrganization'" 'PrefixI 'False) (U1 :: Type -> Type))

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 #

Constructors

EnableSharingWithAwsOrganizationResponse' 

Fields

  • returnValue :: Maybe Bool

    A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic EnableSharingWithAwsOrganizationResponse Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Read EnableSharingWithAwsOrganizationResponse Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Show EnableSharingWithAwsOrganizationResponse Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

NFData EnableSharingWithAwsOrganizationResponse Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

Eq EnableSharingWithAwsOrganizationResponse Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

type Rep EnableSharingWithAwsOrganizationResponse Source # 
Instance details

Defined in Amazonka.RAM.EnableSharingWithAwsOrganization

type Rep EnableSharingWithAwsOrganizationResponse = D1 ('MetaData "EnableSharingWithAwsOrganizationResponse" "Amazonka.RAM.EnableSharingWithAwsOrganization" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "EnableSharingWithAwsOrganizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "returnValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.