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 |
Retrieves the current traffic distribution for a given traffic distribution group.
Synopsis
- data GetTrafficDistribution = GetTrafficDistribution' {}
- newGetTrafficDistribution :: Text -> GetTrafficDistribution
- getTrafficDistribution_id :: Lens' GetTrafficDistribution Text
- data GetTrafficDistributionResponse = GetTrafficDistributionResponse' {
- arn :: Maybe Text
- id :: Maybe Text
- telephonyConfig :: Maybe TelephonyConfig
- httpStatus :: Int
- newGetTrafficDistributionResponse :: Int -> GetTrafficDistributionResponse
- getTrafficDistributionResponse_arn :: Lens' GetTrafficDistributionResponse (Maybe Text)
- getTrafficDistributionResponse_id :: Lens' GetTrafficDistributionResponse (Maybe Text)
- getTrafficDistributionResponse_telephonyConfig :: Lens' GetTrafficDistributionResponse (Maybe TelephonyConfig)
- getTrafficDistributionResponse_httpStatus :: Lens' GetTrafficDistributionResponse Int
Creating a Request
data GetTrafficDistribution Source #
See: newGetTrafficDistribution
smart constructor.
Instances
newGetTrafficDistribution Source #
Create a value of GetTrafficDistribution
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:
GetTrafficDistribution
, getTrafficDistribution_id
- The identifier of the traffic distribution group.
Request Lenses
getTrafficDistribution_id :: Lens' GetTrafficDistribution Text Source #
The identifier of the traffic distribution group.
Destructuring the Response
data GetTrafficDistributionResponse Source #
See: newGetTrafficDistributionResponse
smart constructor.
GetTrafficDistributionResponse' | |
|
Instances
newGetTrafficDistributionResponse Source #
Create a value of GetTrafficDistributionResponse
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:
GetTrafficDistributionResponse
, getTrafficDistributionResponse_arn
- The Amazon Resource Name (ARN) of the traffic distribution group.
GetTrafficDistribution
, getTrafficDistributionResponse_id
- The identifier of the traffic distribution group. This can be the ID or
the ARN if the API is being called in the Region where the traffic
distribution group was created. The ARN must be provided if the call is
from the replicated Region.
$sel:telephonyConfig:GetTrafficDistributionResponse'
, getTrafficDistributionResponse_telephonyConfig
- The distribution of traffic between the instance and its replicas.
$sel:httpStatus:GetTrafficDistributionResponse'
, getTrafficDistributionResponse_httpStatus
- The response's http status code.
Response Lenses
getTrafficDistributionResponse_arn :: Lens' GetTrafficDistributionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the traffic distribution group.
getTrafficDistributionResponse_id :: Lens' GetTrafficDistributionResponse (Maybe Text) Source #
The identifier of the traffic distribution group. This can be the ID or the ARN if the API is being called in the Region where the traffic distribution group was created. The ARN must be provided if the call is from the replicated Region.
getTrafficDistributionResponse_telephonyConfig :: Lens' GetTrafficDistributionResponse (Maybe TelephonyConfig) Source #
The distribution of traffic between the instance and its replicas.
getTrafficDistributionResponse_httpStatus :: Lens' GetTrafficDistributionResponse Int Source #
The response's http status code.