Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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
- getCORSPolicy :: Text -> GetCORSPolicy
- data GetCORSPolicy
- gcpContainerName :: Lens' GetCORSPolicy Text
- getCORSPolicyResponse :: Int -> NonEmpty CORSRule -> GetCORSPolicyResponse
- data GetCORSPolicyResponse
- gcorsprsResponseStatus :: Lens' GetCORSPolicyResponse Int
- gcorsprsCORSPolicy :: Lens' GetCORSPolicyResponse (NonEmpty CORSRule)
Creating a Request
Creates a value of GetCORSPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcpContainerName
- The name of the container that the policy is assigned to.
data GetCORSPolicy Source #
See: getCORSPolicy
smart constructor.
Instances
Request Lenses
gcpContainerName :: Lens' GetCORSPolicy Text Source #
The name of the container that the policy is assigned to.
Destructuring the Response
getCORSPolicyResponse Source #
Creates a value of GetCORSPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcorsprsResponseStatus
- -- | The response status code.gcorsprsCORSPolicy
- Undocumented member.
data GetCORSPolicyResponse Source #
See: getCORSPolicyResponse
smart constructor.
Instances
Response Lenses
gcorsprsResponseStatus :: Lens' GetCORSPolicyResponse Int Source #
- - | The response status code.
gcorsprsCORSPolicy :: Lens' GetCORSPolicyResponse (NonEmpty CORSRule) Source #
Undocumented member.