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 |
Associates the specified budget with the specified resource.
Synopsis
- data AssociateBudgetWithResource = AssociateBudgetWithResource' {
- budgetName :: Text
- resourceId :: Text
- newAssociateBudgetWithResource :: Text -> Text -> AssociateBudgetWithResource
- associateBudgetWithResource_budgetName :: Lens' AssociateBudgetWithResource Text
- associateBudgetWithResource_resourceId :: Lens' AssociateBudgetWithResource Text
- data AssociateBudgetWithResourceResponse = AssociateBudgetWithResourceResponse' {
- httpStatus :: Int
- newAssociateBudgetWithResourceResponse :: Int -> AssociateBudgetWithResourceResponse
- associateBudgetWithResourceResponse_httpStatus :: Lens' AssociateBudgetWithResourceResponse Int
Creating a Request
data AssociateBudgetWithResource Source #
See: newAssociateBudgetWithResource
smart constructor.
AssociateBudgetWithResource' | |
|
Instances
newAssociateBudgetWithResource Source #
:: Text | |
-> Text | |
-> AssociateBudgetWithResource |
Create a value of AssociateBudgetWithResource
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:
AssociateBudgetWithResource
, associateBudgetWithResource_budgetName
- The name of the budget you want to associate.
$sel:resourceId:AssociateBudgetWithResource'
, associateBudgetWithResource_resourceId
- The resource identifier. Either a portfolio-id or a product-id.
Request Lenses
associateBudgetWithResource_budgetName :: Lens' AssociateBudgetWithResource Text Source #
The name of the budget you want to associate.
associateBudgetWithResource_resourceId :: Lens' AssociateBudgetWithResource Text Source #
The resource identifier. Either a portfolio-id or a product-id.
Destructuring the Response
data AssociateBudgetWithResourceResponse Source #
See: newAssociateBudgetWithResourceResponse
smart constructor.
AssociateBudgetWithResourceResponse' | |
|
Instances
Generic AssociateBudgetWithResourceResponse Source # | |
Defined in Amazonka.ServiceCatalog.AssociateBudgetWithResource type Rep AssociateBudgetWithResourceResponse :: Type -> Type # | |
Read AssociateBudgetWithResourceResponse Source # | |
Show AssociateBudgetWithResourceResponse Source # | |
NFData AssociateBudgetWithResourceResponse Source # | |
Defined in Amazonka.ServiceCatalog.AssociateBudgetWithResource rnf :: AssociateBudgetWithResourceResponse -> () # | |
Eq AssociateBudgetWithResourceResponse Source # | |
type Rep AssociateBudgetWithResourceResponse Source # | |
Defined in Amazonka.ServiceCatalog.AssociateBudgetWithResource type Rep AssociateBudgetWithResourceResponse = D1 ('MetaData "AssociateBudgetWithResourceResponse" "Amazonka.ServiceCatalog.AssociateBudgetWithResource" "amazonka-servicecatalog-2.0-HQc7wwDA1XY4nlo6issXoI" 'False) (C1 ('MetaCons "AssociateBudgetWithResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateBudgetWithResourceResponse Source #
Create a value of AssociateBudgetWithResourceResponse
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:httpStatus:AssociateBudgetWithResourceResponse'
, associateBudgetWithResourceResponse_httpStatus
- The response's http status code.
Response Lenses
associateBudgetWithResourceResponse_httpStatus :: Lens' AssociateBudgetWithResourceResponse Int Source #
The response's http status code.