| 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.Shield.GetSubscriptionState
Description
Returns the SubscriptionState, either Active or Inactive.
Synopsis
- data GetSubscriptionState = GetSubscriptionState' {
- newGetSubscriptionState :: GetSubscriptionState
- data GetSubscriptionStateResponse = GetSubscriptionStateResponse' {}
- newGetSubscriptionStateResponse :: Int -> SubscriptionState -> GetSubscriptionStateResponse
- getSubscriptionStateResponse_httpStatus :: Lens' GetSubscriptionStateResponse Int
- getSubscriptionStateResponse_subscriptionState :: Lens' GetSubscriptionStateResponse SubscriptionState
Creating a Request
data GetSubscriptionState Source #
See: newGetSubscriptionState smart constructor.
Constructors
| GetSubscriptionState' | |
Instances
newGetSubscriptionState :: GetSubscriptionState Source #
Create a value of GetSubscriptionState with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetSubscriptionStateResponse Source #
See: newGetSubscriptionStateResponse smart constructor.
Constructors
| GetSubscriptionStateResponse' | |
Fields
| |
Instances
newGetSubscriptionStateResponse Source #
Arguments
| :: Int | |
| -> SubscriptionState | |
| -> GetSubscriptionStateResponse |
Create a value of GetSubscriptionStateResponse 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:GetSubscriptionStateResponse', getSubscriptionStateResponse_httpStatus - The response's http status code.
$sel:subscriptionState:GetSubscriptionStateResponse', getSubscriptionStateResponse_subscriptionState - The status of the subscription.
Response Lenses
getSubscriptionStateResponse_httpStatus :: Lens' GetSubscriptionStateResponse Int Source #
The response's http status code.
getSubscriptionStateResponse_subscriptionState :: Lens' GetSubscriptionStateResponse SubscriptionState Source #
The status of the subscription.