| 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.MediaConnect.GrantFlowEntitlements
Description
Grants entitlements to an existing flow.
Synopsis
- data GrantFlowEntitlements = GrantFlowEntitlements' {}
- newGrantFlowEntitlements :: Text -> GrantFlowEntitlements
- grantFlowEntitlements_flowArn :: Lens' GrantFlowEntitlements Text
- grantFlowEntitlements_entitlements :: Lens' GrantFlowEntitlements [GrantEntitlementRequest]
- data GrantFlowEntitlementsResponse = GrantFlowEntitlementsResponse' {
- entitlements :: Maybe [Entitlement]
- flowArn :: Maybe Text
- httpStatus :: Int
- newGrantFlowEntitlementsResponse :: Int -> GrantFlowEntitlementsResponse
- grantFlowEntitlementsResponse_entitlements :: Lens' GrantFlowEntitlementsResponse (Maybe [Entitlement])
- grantFlowEntitlementsResponse_flowArn :: Lens' GrantFlowEntitlementsResponse (Maybe Text)
- grantFlowEntitlementsResponse_httpStatus :: Lens' GrantFlowEntitlementsResponse Int
Creating a Request
data GrantFlowEntitlements Source #
A request to grant entitlements on a flow.
See: newGrantFlowEntitlements smart constructor.
Constructors
| GrantFlowEntitlements' | |
Fields
| |
Instances
newGrantFlowEntitlements Source #
Arguments
| :: Text | |
| -> GrantFlowEntitlements |
Create a value of GrantFlowEntitlements 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:
GrantFlowEntitlements, grantFlowEntitlements_flowArn - The flow that you want to grant entitlements on.
GrantFlowEntitlements, grantFlowEntitlements_entitlements - The list of entitlements that you want to grant.
Request Lenses
grantFlowEntitlements_flowArn :: Lens' GrantFlowEntitlements Text Source #
The flow that you want to grant entitlements on.
grantFlowEntitlements_entitlements :: Lens' GrantFlowEntitlements [GrantEntitlementRequest] Source #
The list of entitlements that you want to grant.
Destructuring the Response
data GrantFlowEntitlementsResponse Source #
See: newGrantFlowEntitlementsResponse smart constructor.
Constructors
| GrantFlowEntitlementsResponse' | |
Fields
| |
Instances
newGrantFlowEntitlementsResponse Source #
Create a value of GrantFlowEntitlementsResponse 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:
GrantFlowEntitlements, grantFlowEntitlementsResponse_entitlements - The entitlements that were just granted.
GrantFlowEntitlements, grantFlowEntitlementsResponse_flowArn - The ARN of the flow that these entitlements were granted to.
$sel:httpStatus:GrantFlowEntitlementsResponse', grantFlowEntitlementsResponse_httpStatus - The response's http status code.
Response Lenses
grantFlowEntitlementsResponse_entitlements :: Lens' GrantFlowEntitlementsResponse (Maybe [Entitlement]) Source #
The entitlements that were just granted.
grantFlowEntitlementsResponse_flowArn :: Lens' GrantFlowEntitlementsResponse (Maybe Text) Source #
The ARN of the flow that these entitlements were granted to.
grantFlowEntitlementsResponse_httpStatus :: Lens' GrantFlowEntitlementsResponse Int Source #
The response's http status code.