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 |
Retrieve the JSON for your policy.
Synopsis
- data GetPolicy = GetPolicy' {
- newGetPolicy :: GetPolicy
- data GetPolicyResponse = GetPolicyResponse' {
- policy :: Maybe Policy
- httpStatus :: Int
- newGetPolicyResponse :: Int -> GetPolicyResponse
- getPolicyResponse_policy :: Lens' GetPolicyResponse (Maybe Policy)
- getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int
Creating a Request
See: newGetPolicy
smart constructor.
Instances
Eq GetPolicy Source # | |
Read GetPolicy Source # | |
Show GetPolicy Source # | |
Generic GetPolicy Source # | |
NFData GetPolicy Source # | |
Defined in Amazonka.MediaConvert.GetPolicy | |
Hashable GetPolicy Source # | |
Defined in Amazonka.MediaConvert.GetPolicy | |
AWSRequest GetPolicy Source # | |
Defined in Amazonka.MediaConvert.GetPolicy type AWSResponse GetPolicy # request :: GetPolicy -> Request GetPolicy # response :: MonadResource m => Logger -> Service -> Proxy GetPolicy -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetPolicy))) # | |
ToHeaders GetPolicy Source # | |
Defined in Amazonka.MediaConvert.GetPolicy | |
ToPath GetPolicy Source # | |
Defined in Amazonka.MediaConvert.GetPolicy toPath :: GetPolicy -> ByteString # | |
ToQuery GetPolicy Source # | |
Defined in Amazonka.MediaConvert.GetPolicy toQuery :: GetPolicy -> QueryString # | |
type Rep GetPolicy Source # | |
type AWSResponse GetPolicy Source # | |
Defined in Amazonka.MediaConvert.GetPolicy |
newGetPolicy :: GetPolicy Source #
Create a value of GetPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetPolicyResponse Source #
See: newGetPolicyResponse
smart constructor.
GetPolicyResponse' | |
|
Instances
Create a value of GetPolicyResponse
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:policy:GetPolicyResponse'
, getPolicyResponse_policy
- A policy configures behavior that you allow or disallow for your
account. For information about MediaConvert policies, see the user guide
at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
$sel:httpStatus:GetPolicyResponse'
, getPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getPolicyResponse_policy :: Lens' GetPolicyResponse (Maybe Policy) Source #
A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int Source #
The response's http status code.