| 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.DeleteMetricPolicy
Description
Deletes the metric policy that is associated with the specified container. If there is no metric policy associated with the container, MediaStore doesn't send metrics to CloudWatch.
Synopsis
- data DeleteMetricPolicy = DeleteMetricPolicy' {}
- newDeleteMetricPolicy :: Text -> DeleteMetricPolicy
- deleteMetricPolicy_containerName :: Lens' DeleteMetricPolicy Text
- data DeleteMetricPolicyResponse = DeleteMetricPolicyResponse' {
- httpStatus :: Int
- newDeleteMetricPolicyResponse :: Int -> DeleteMetricPolicyResponse
- deleteMetricPolicyResponse_httpStatus :: Lens' DeleteMetricPolicyResponse Int
Creating a Request
data DeleteMetricPolicy Source #
See: newDeleteMetricPolicy smart constructor.
Constructors
| DeleteMetricPolicy' | |
Fields
| |
Instances
newDeleteMetricPolicy Source #
Arguments
| :: Text | |
| -> DeleteMetricPolicy |
Create a value of DeleteMetricPolicy 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:DeleteMetricPolicy', deleteMetricPolicy_containerName - The name of the container that is associated with the metric policy that
you want to delete.
Request Lenses
deleteMetricPolicy_containerName :: Lens' DeleteMetricPolicy Text Source #
The name of the container that is associated with the metric policy that you want to delete.
Destructuring the Response
data DeleteMetricPolicyResponse Source #
See: newDeleteMetricPolicyResponse smart constructor.
Constructors
| DeleteMetricPolicyResponse' | |
Fields
| |
Instances
newDeleteMetricPolicyResponse Source #
Create a value of DeleteMetricPolicyResponse 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:DeleteMetricPolicyResponse', deleteMetricPolicyResponse_httpStatus - The response's http status code.
Response Lenses
deleteMetricPolicyResponse_httpStatus :: Lens' DeleteMetricPolicyResponse Int Source #
The response's http status code.