amazonka-billingconductor-2.0: Amazon BillingConductor 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.BillingConductor.AssociateAccounts

Description

Connects an array of account IDs in a consolidated billing family to a predefined billing group. The account IDs must be a part of the consolidated billing family during the current month, and not already associated with another billing group. The maximum number of accounts that can be associated in one call is 30.

Synopsis

Creating a Request

data AssociateAccounts Source #

See: newAssociateAccounts smart constructor.

Constructors

AssociateAccounts' 

Fields

  • arn :: Text

    The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.

  • accountIds :: NonEmpty Text

    The associating array of account IDs.

Instances

Instances details
ToJSON AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

ToHeaders AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

ToPath AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

ToQuery AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

AWSRequest AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Associated Types

type AWSResponse AssociateAccounts #

Generic AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Associated Types

type Rep AssociateAccounts :: Type -> Type #

Read AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Show AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

NFData AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Methods

rnf :: AssociateAccounts -> () #

Eq AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Hashable AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

type AWSResponse AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

type Rep AssociateAccounts Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

type Rep AssociateAccounts = D1 ('MetaData "AssociateAccounts" "Amazonka.BillingConductor.AssociateAccounts" "amazonka-billingconductor-2.0-1YoxVi69FkN1Nj28JbXXJ5" 'False) (C1 ('MetaCons "AssociateAccounts'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text))))

newAssociateAccounts Source #

Create a value of AssociateAccounts 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:

AssociateAccounts, associateAccounts_arn - The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.

$sel:accountIds:AssociateAccounts', associateAccounts_accountIds - The associating array of account IDs.

Request Lenses

associateAccounts_arn :: Lens' AssociateAccounts Text Source #

The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.

associateAccounts_accountIds :: Lens' AssociateAccounts (NonEmpty Text) Source #

The associating array of account IDs.

Destructuring the Response

data AssociateAccountsResponse Source #

See: newAssociateAccountsResponse smart constructor.

Constructors

AssociateAccountsResponse' 

Fields

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic AssociateAccountsResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Associated Types

type Rep AssociateAccountsResponse :: Type -> Type #

Read AssociateAccountsResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Show AssociateAccountsResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

NFData AssociateAccountsResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

Eq AssociateAccountsResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

type Rep AssociateAccountsResponse Source # 
Instance details

Defined in Amazonka.BillingConductor.AssociateAccounts

type Rep AssociateAccountsResponse = D1 ('MetaData "AssociateAccountsResponse" "Amazonka.BillingConductor.AssociateAccounts" "amazonka-billingconductor-2.0-1YoxVi69FkN1Nj28JbXXJ5" 'False) (C1 ('MetaCons "AssociateAccountsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociateAccountsResponse Source #

Create a value of AssociateAccountsResponse 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:

AssociateAccounts, associateAccountsResponse_arn - The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.

$sel:httpStatus:AssociateAccountsResponse', associateAccountsResponse_httpStatus - The response's http status code.

Response Lenses

associateAccountsResponse_arn :: Lens' AssociateAccountsResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.