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 |
Returns the metric policy for the specified container.
Synopsis
- data GetMetricPolicy = GetMetricPolicy' {}
- newGetMetricPolicy :: Text -> GetMetricPolicy
- getMetricPolicy_containerName :: Lens' GetMetricPolicy Text
- data GetMetricPolicyResponse = GetMetricPolicyResponse' {}
- newGetMetricPolicyResponse :: Int -> MetricPolicy -> GetMetricPolicyResponse
- getMetricPolicyResponse_httpStatus :: Lens' GetMetricPolicyResponse Int
- getMetricPolicyResponse_metricPolicy :: Lens' GetMetricPolicyResponse MetricPolicy
Creating a Request
data GetMetricPolicy Source #
See: newGetMetricPolicy
smart constructor.
GetMetricPolicy' | |
|
Instances
Create a value of GetMetricPolicy
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:containerName:GetMetricPolicy'
, getMetricPolicy_containerName
- The name of the container that is associated with the metric policy.
Request Lenses
getMetricPolicy_containerName :: Lens' GetMetricPolicy Text Source #
The name of the container that is associated with the metric policy.
Destructuring the Response
data GetMetricPolicyResponse Source #
See: newGetMetricPolicyResponse
smart constructor.
GetMetricPolicyResponse' | |
|
Instances
newGetMetricPolicyResponse Source #
Create a value of GetMetricPolicyResponse
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:GetMetricPolicyResponse'
, getMetricPolicyResponse_httpStatus
- The response's http status code.
$sel:metricPolicy:GetMetricPolicyResponse'
, getMetricPolicyResponse_metricPolicy
- The metric policy that is associated with the specific container.
Response Lenses
getMetricPolicyResponse_httpStatus :: Lens' GetMetricPolicyResponse Int Source #
The response's http status code.
getMetricPolicyResponse_metricPolicy :: Lens' GetMetricPolicyResponse MetricPolicy Source #
The metric policy that is associated with the specific container.