Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.Lightsail.EnableAddOn
Description
Enables or modifies an add-on for an Amazon Lightsail resource. For more information, see the Amazon Lightsail Developer Guide.
Synopsis
- data EnableAddOn = EnableAddOn' {}
- newEnableAddOn :: Text -> AddOnRequest -> EnableAddOn
- enableAddOn_resourceName :: Lens' EnableAddOn Text
- enableAddOn_addOnRequest :: Lens' EnableAddOn AddOnRequest
- data EnableAddOnResponse = EnableAddOnResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newEnableAddOnResponse :: Int -> EnableAddOnResponse
- enableAddOnResponse_operations :: Lens' EnableAddOnResponse (Maybe [Operation])
- enableAddOnResponse_httpStatus :: Lens' EnableAddOnResponse Int
Creating a Request
data EnableAddOn Source #
See: newEnableAddOn
smart constructor.
Constructors
EnableAddOn' | |
Fields
|
Instances
Arguments
:: Text | |
-> AddOnRequest | |
-> EnableAddOn |
Create a value of EnableAddOn
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:resourceName:EnableAddOn'
, enableAddOn_resourceName
- The name of the source resource for which to enable or modify the
add-on.
$sel:addOnRequest:EnableAddOn'
, enableAddOn_addOnRequest
- An array of strings representing the add-on to enable or modify.
Request Lenses
enableAddOn_resourceName :: Lens' EnableAddOn Text Source #
The name of the source resource for which to enable or modify the add-on.
enableAddOn_addOnRequest :: Lens' EnableAddOn AddOnRequest Source #
An array of strings representing the add-on to enable or modify.
Destructuring the Response
data EnableAddOnResponse Source #
See: newEnableAddOnResponse
smart constructor.
Constructors
EnableAddOnResponse' | |
Fields
|
Instances
newEnableAddOnResponse Source #
Arguments
:: Int | |
-> EnableAddOnResponse |
Create a value of EnableAddOnResponse
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:operations:EnableAddOnResponse'
, enableAddOnResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:EnableAddOnResponse'
, enableAddOnResponse_httpStatus
- The response's http status code.
Response Lenses
enableAddOnResponse_operations :: Lens' EnableAddOnResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
enableAddOnResponse_httpStatus :: Lens' EnableAddOnResponse Int Source #
The response's http status code.