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 |
Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.
To use this operation, you must have permission to perform the
MediaStore:DeleteCorsPolicy
action. The container owner has this
permission by default and can grant this permission to others.
Synopsis
- data DeleteCorsPolicy = DeleteCorsPolicy' {}
- newDeleteCorsPolicy :: Text -> DeleteCorsPolicy
- deleteCorsPolicy_containerName :: Lens' DeleteCorsPolicy Text
- data DeleteCorsPolicyResponse = DeleteCorsPolicyResponse' {
- httpStatus :: Int
- newDeleteCorsPolicyResponse :: Int -> DeleteCorsPolicyResponse
- deleteCorsPolicyResponse_httpStatus :: Lens' DeleteCorsPolicyResponse Int
Creating a Request
data DeleteCorsPolicy Source #
See: newDeleteCorsPolicy
smart constructor.
DeleteCorsPolicy' | |
|
Instances
Create a value of DeleteCorsPolicy
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:DeleteCorsPolicy'
, deleteCorsPolicy_containerName
- The name of the container to remove the policy from.
Request Lenses
deleteCorsPolicy_containerName :: Lens' DeleteCorsPolicy Text Source #
The name of the container to remove the policy from.
Destructuring the Response
data DeleteCorsPolicyResponse Source #
See: newDeleteCorsPolicyResponse
smart constructor.
DeleteCorsPolicyResponse' | |
|
Instances
newDeleteCorsPolicyResponse Source #
Create a value of DeleteCorsPolicyResponse
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:DeleteCorsPolicyResponse'
, deleteCorsPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteCorsPolicyResponse_httpStatus :: Lens' DeleteCorsPolicyResponse Int Source #
The response's http status code.