amazonka-organizations-1.6.1: Amazon Organizations SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Organizations.CreateOrganization

Contents

Description

Creates an AWS organization. The account whose user is calling the CreateOrganization operation automatically becomes the master account of the new organization.

This operation must be called using credentials from the account that is to become the new organization's master account. The principal must also have the relevant IAM permissions.

By default (or if you set the FeatureSet parameter to ALL ), the new organization is created with all features enabled and service control policies automatically enabled in the root. If you instead choose to create the organization supporting only the consolidated billing features by setting the FeatureSet parameter to CONSOLIDATED_BILLING" , then no policy types are enabled by default and you cannot use organization policies.

Synopsis

Creating a Request

createOrganization :: CreateOrganization Source #

Creates a value of CreateOrganization with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • coFeatureSet - Specifies the feature set supported by the new organization. Each feature set supports different levels of functionality. * CONSOLIDATED_BILLING : All member accounts have their bills consolidated to and paid by the master account. For more information, see Consolidated Billing in the AWS Organizations User Guide . * ALL : In addition to all the features supported by the consolidated billing feature set, the master account can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide .

data CreateOrganization Source #

See: createOrganization smart constructor.

Instances
Eq CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Data CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateOrganization -> c CreateOrganization #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateOrganization #

toConstr :: CreateOrganization -> Constr #

dataTypeOf :: CreateOrganization -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateOrganization) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateOrganization) #

gmapT :: (forall b. Data b => b -> b) -> CreateOrganization -> CreateOrganization #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateOrganization -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateOrganization -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateOrganization -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateOrganization -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateOrganization -> m CreateOrganization #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateOrganization -> m CreateOrganization #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateOrganization -> m CreateOrganization #

Read CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Show CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Generic CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Associated Types

type Rep CreateOrganization :: Type -> Type #

Hashable CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

ToJSON CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

AWSRequest CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Associated Types

type Rs CreateOrganization :: Type #

ToHeaders CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

ToPath CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

ToQuery CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

NFData CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Methods

rnf :: CreateOrganization -> () #

type Rep CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

type Rep CreateOrganization = D1 (MetaData "CreateOrganization" "Network.AWS.Organizations.CreateOrganization" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" True) (C1 (MetaCons "CreateOrganization'" PrefixI True) (S1 (MetaSel (Just "_coFeatureSet") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe OrganizationFeatureSet))))
type Rs CreateOrganization Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Request Lenses

coFeatureSet :: Lens' CreateOrganization (Maybe OrganizationFeatureSet) Source #

Specifies the feature set supported by the new organization. Each feature set supports different levels of functionality. * CONSOLIDATED_BILLING : All member accounts have their bills consolidated to and paid by the master account. For more information, see Consolidated Billing in the AWS Organizations User Guide . * ALL : In addition to all the features supported by the consolidated billing feature set, the master account can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide .

Destructuring the Response

createOrganizationResponse Source #

Creates a value of CreateOrganizationResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateOrganizationResponse Source #

See: createOrganizationResponse smart constructor.

Instances
Eq CreateOrganizationResponse Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Data CreateOrganizationResponse Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateOrganizationResponse -> c CreateOrganizationResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateOrganizationResponse #

toConstr :: CreateOrganizationResponse -> Constr #

dataTypeOf :: CreateOrganizationResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateOrganizationResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateOrganizationResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateOrganizationResponse -> CreateOrganizationResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateOrganizationResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateOrganizationResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateOrganizationResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateOrganizationResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateOrganizationResponse -> m CreateOrganizationResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateOrganizationResponse -> m CreateOrganizationResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateOrganizationResponse -> m CreateOrganizationResponse #

Show CreateOrganizationResponse Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Generic CreateOrganizationResponse Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

Associated Types

type Rep CreateOrganizationResponse :: Type -> Type #

NFData CreateOrganizationResponse Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

type Rep CreateOrganizationResponse Source # 
Instance details

Defined in Network.AWS.Organizations.CreateOrganization

type Rep CreateOrganizationResponse = D1 (MetaData "CreateOrganizationResponse" "Network.AWS.Organizations.CreateOrganization" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "CreateOrganizationResponse'" PrefixI True) (S1 (MetaSel (Just "_corsOrganization") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Organization)) :*: S1 (MetaSel (Just "_corsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

corsOrganization :: Lens' CreateOrganizationResponse (Maybe Organization) Source #

A structure that contains details about the newly created organization.