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 |
Create or change your policy. For more information about policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
Synopsis
- data PutPolicy = PutPolicy' {}
- newPutPolicy :: Policy -> PutPolicy
- putPolicy_policy :: Lens' PutPolicy Policy
- data PutPolicyResponse = PutPolicyResponse' {
- policy :: Maybe Policy
- httpStatus :: Int
- newPutPolicyResponse :: Int -> PutPolicyResponse
- putPolicyResponse_policy :: Lens' PutPolicyResponse (Maybe Policy)
- putPolicyResponse_httpStatus :: Lens' PutPolicyResponse Int
Creating a Request
See: newPutPolicy
smart constructor.
Instances
Create a value of PutPolicy
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:PutPolicy'
, putPolicy_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
Request Lenses
putPolicy_policy :: Lens' PutPolicy 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
Destructuring the Response
data PutPolicyResponse Source #
See: newPutPolicyResponse
smart constructor.
PutPolicyResponse' | |
|
Instances
Create a value of PutPolicyResponse
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:PutPolicy'
, putPolicyResponse_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:PutPolicyResponse'
, putPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putPolicyResponse_policy :: Lens' PutPolicyResponse (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
putPolicyResponse_httpStatus :: Lens' PutPolicyResponse Int Source #
The response's http status code.