| 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.MediaStore.GetMetricPolicy
Description
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.
Constructors
| GetMetricPolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetMetricPolicy |
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.
Constructors
| GetMetricPolicyResponse' | |
Fields
| |
Instances
newGetMetricPolicyResponse Source #
Arguments
| :: Int | |
| -> MetricPolicy | |
| -> GetMetricPolicyResponse |
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.