| 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 |
Amazonka.ServiceCatalog.AssociateBudgetWithResource
Description
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.
Constructors
| AssociateBudgetWithResource' | |
Fields
| |
Instances
newAssociateBudgetWithResource Source #
Arguments
| :: 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.
Constructors
| AssociateBudgetWithResourceResponse' | |
Fields
| |
Instances
newAssociateBudgetWithResourceResponse Source #
Arguments
| :: Int | |
| -> AssociateBudgetWithResourceResponse |
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.