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 |
Creates a billing group that resembles a consolidated billing family that Amazon Web Services charges, based off of the predefined pricing plan computation.
Synopsis
- data CreateBillingGroup = CreateBillingGroup' {}
- newCreateBillingGroup :: Text -> AccountGrouping -> ComputationPreference -> CreateBillingGroup
- createBillingGroup_clientToken :: Lens' CreateBillingGroup (Maybe Text)
- createBillingGroup_description :: Lens' CreateBillingGroup (Maybe Text)
- createBillingGroup_primaryAccountId :: Lens' CreateBillingGroup (Maybe Text)
- createBillingGroup_tags :: Lens' CreateBillingGroup (Maybe (HashMap Text Text))
- createBillingGroup_name :: Lens' CreateBillingGroup Text
- createBillingGroup_accountGrouping :: Lens' CreateBillingGroup AccountGrouping
- createBillingGroup_computationPreference :: Lens' CreateBillingGroup ComputationPreference
- data CreateBillingGroupResponse = CreateBillingGroupResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newCreateBillingGroupResponse :: Int -> CreateBillingGroupResponse
- createBillingGroupResponse_arn :: Lens' CreateBillingGroupResponse (Maybe Text)
- createBillingGroupResponse_httpStatus :: Lens' CreateBillingGroupResponse Int
Creating a Request
data CreateBillingGroup Source #
See: newCreateBillingGroup
smart constructor.
CreateBillingGroup' | |
|
Instances
newCreateBillingGroup Source #
Create a value of CreateBillingGroup
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:clientToken:CreateBillingGroup'
, createBillingGroup_clientToken
- The token that is needed to support idempotency. Idempotency isn't
currently supported, but will be implemented in a future update.
CreateBillingGroup
, createBillingGroup_description
- The description of the billing group.
CreateBillingGroup
, createBillingGroup_primaryAccountId
- The account ID that serves as the main account in a billing group.
$sel:tags:CreateBillingGroup'
, createBillingGroup_tags
- A map that contains tag keys and tag values that are attached to a
billing group. This feature isn't available during the beta.
CreateBillingGroup
, createBillingGroup_name
- The billing group name. The names must be unique.
$sel:accountGrouping:CreateBillingGroup'
, createBillingGroup_accountGrouping
- The set of accounts that will be under the billing group. The set of
accounts resemble the linked accounts in a consolidated family.
CreateBillingGroup
, createBillingGroup_computationPreference
- The preferences and settings that will be used to compute the Amazon Web
Services charges for a billing group.
Request Lenses
createBillingGroup_clientToken :: Lens' CreateBillingGroup (Maybe Text) Source #
The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
createBillingGroup_description :: Lens' CreateBillingGroup (Maybe Text) Source #
The description of the billing group.
createBillingGroup_primaryAccountId :: Lens' CreateBillingGroup (Maybe Text) Source #
The account ID that serves as the main account in a billing group.
createBillingGroup_tags :: Lens' CreateBillingGroup (Maybe (HashMap Text Text)) Source #
A map that contains tag keys and tag values that are attached to a billing group. This feature isn't available during the beta.
createBillingGroup_name :: Lens' CreateBillingGroup Text Source #
The billing group name. The names must be unique.
createBillingGroup_accountGrouping :: Lens' CreateBillingGroup AccountGrouping Source #
The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated family.
createBillingGroup_computationPreference :: Lens' CreateBillingGroup ComputationPreference Source #
The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group.
Destructuring the Response
data CreateBillingGroupResponse Source #
See: newCreateBillingGroupResponse
smart constructor.
CreateBillingGroupResponse' | |
|
Instances
newCreateBillingGroupResponse Source #
Create a value of CreateBillingGroupResponse
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:
CreateBillingGroupResponse
, createBillingGroupResponse_arn
- The Amazon Resource Name (ARN) of the created billing group.
$sel:httpStatus:CreateBillingGroupResponse'
, createBillingGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createBillingGroupResponse_arn :: Lens' CreateBillingGroupResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the created billing group.
createBillingGroupResponse_httpStatus :: Lens' CreateBillingGroupResponse Int Source #
The response's http status code.