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 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:GetCorsPolicy
action. By default, the container owner has
this permission and can grant it to others.
Synopsis
- data GetCorsPolicy = GetCorsPolicy' {}
- newGetCorsPolicy :: Text -> GetCorsPolicy
- getCorsPolicy_containerName :: Lens' GetCorsPolicy Text
- data GetCorsPolicyResponse = GetCorsPolicyResponse' {}
- newGetCorsPolicyResponse :: Int -> NonEmpty CorsRule -> GetCorsPolicyResponse
- getCorsPolicyResponse_httpStatus :: Lens' GetCorsPolicyResponse Int
- getCorsPolicyResponse_corsPolicy :: Lens' GetCorsPolicyResponse (NonEmpty CorsRule)
Creating a Request
data GetCorsPolicy Source #
See: newGetCorsPolicy
smart constructor.
GetCorsPolicy' | |
|
Instances
Create a value of GetCorsPolicy
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:GetCorsPolicy'
, getCorsPolicy_containerName
- The name of the container that the policy is assigned to.
Request Lenses
getCorsPolicy_containerName :: Lens' GetCorsPolicy Text Source #
The name of the container that the policy is assigned to.
Destructuring the Response
data GetCorsPolicyResponse Source #
See: newGetCorsPolicyResponse
smart constructor.
GetCorsPolicyResponse' | |
|
Instances
newGetCorsPolicyResponse Source #
:: Int | |
-> NonEmpty CorsRule | |
-> GetCorsPolicyResponse |
Create a value of GetCorsPolicyResponse
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:GetCorsPolicyResponse'
, getCorsPolicyResponse_httpStatus
- The response's http status code.
$sel:corsPolicy:GetCorsPolicyResponse'
, getCorsPolicyResponse_corsPolicy
- The CORS policy assigned to the container.
Response Lenses
getCorsPolicyResponse_httpStatus :: Lens' GetCorsPolicyResponse Int Source #
The response's http status code.
getCorsPolicyResponse_corsPolicy :: Lens' GetCorsPolicyResponse (NonEmpty CorsRule) Source #
The CORS policy assigned to the container.