| 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.MediaConvert.GetPolicy
Description
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.
Constructors
| GetPolicy' | |
Instances
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.
Constructors
| GetPolicyResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetPolicyResponse |
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.