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 |
Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for zonal shifts are managed resources in Route 53 ARC.
At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
Synopsis
- data GetManagedResource = GetManagedResource' {}
- newGetManagedResource :: Text -> GetManagedResource
- getManagedResource_resourceIdentifier :: Lens' GetManagedResource Text
- data GetManagedResourceResponse = GetManagedResourceResponse' {
- arn :: Maybe Text
- name :: Maybe Text
- httpStatus :: Int
- appliedWeights :: HashMap Text Double
- zonalShifts :: [ZonalShiftInResource]
- newGetManagedResourceResponse :: Int -> GetManagedResourceResponse
- getManagedResourceResponse_arn :: Lens' GetManagedResourceResponse (Maybe Text)
- getManagedResourceResponse_name :: Lens' GetManagedResourceResponse (Maybe Text)
- getManagedResourceResponse_httpStatus :: Lens' GetManagedResourceResponse Int
- getManagedResourceResponse_appliedWeights :: Lens' GetManagedResourceResponse (HashMap Text Double)
- getManagedResourceResponse_zonalShifts :: Lens' GetManagedResourceResponse [ZonalShiftInResource]
Creating a Request
data GetManagedResource Source #
See: newGetManagedResource
smart constructor.
GetManagedResource' | |
|
Instances
newGetManagedResource Source #
Create a value of GetManagedResource
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:
GetManagedResource
, getManagedResource_resourceIdentifier
- The identifier for the resource to include in a zonal shift. The
identifier is the Amazon Resource Name (ARN) for the resource.
At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
Request Lenses
getManagedResource_resourceIdentifier :: Lens' GetManagedResource Text Source #
The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
Destructuring the Response
data GetManagedResourceResponse Source #
See: newGetManagedResourceResponse
smart constructor.
GetManagedResourceResponse' | |
|
Instances
newGetManagedResourceResponse Source #
Create a value of GetManagedResourceResponse
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:
GetManagedResourceResponse
, getManagedResourceResponse_arn
- The Amazon Resource Name (ARN) for the resource.
GetManagedResourceResponse
, getManagedResourceResponse_name
- The name of the resource.
$sel:httpStatus:GetManagedResourceResponse'
, getManagedResourceResponse_httpStatus
- The response's http status code.
$sel:appliedWeights:GetManagedResourceResponse'
, getManagedResourceResponse_appliedWeights
- A collection of key-value pairs that indicate whether resources are
active in Availability Zones or not. The key name is the Availability
Zone where the resource is deployed. The value is 1 or 0.
$sel:zonalShifts:GetManagedResourceResponse'
, getManagedResourceResponse_zonalShifts
- The zonal shifts that are currently active for a resource.
Response Lenses
getManagedResourceResponse_arn :: Lens' GetManagedResourceResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the resource.
getManagedResourceResponse_name :: Lens' GetManagedResourceResponse (Maybe Text) Source #
The name of the resource.
getManagedResourceResponse_httpStatus :: Lens' GetManagedResourceResponse Int Source #
The response's http status code.
getManagedResourceResponse_appliedWeights :: Lens' GetManagedResourceResponse (HashMap Text Double) Source #
A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.
getManagedResourceResponse_zonalShifts :: Lens' GetManagedResourceResponse [ZonalShiftInResource] Source #
The zonal shifts that are currently active for a resource.