Copyright | (c) 2013-2017 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 |
Grants an AWS authorized partner account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single AWS account only, and only one account at a time.
- createNetworkInterfacePermission :: Text -> InterfacePermissionType -> CreateNetworkInterfacePermission
- data CreateNetworkInterfacePermission
- cnipAWSAccountId :: Lens' CreateNetworkInterfacePermission (Maybe Text)
- cnipAWSService :: Lens' CreateNetworkInterfacePermission (Maybe Text)
- cnipDryRun :: Lens' CreateNetworkInterfacePermission (Maybe Bool)
- cnipNetworkInterfaceId :: Lens' CreateNetworkInterfacePermission Text
- cnipPermission :: Lens' CreateNetworkInterfacePermission InterfacePermissionType
- createNetworkInterfacePermissionResponse :: Int -> CreateNetworkInterfacePermissionResponse
- data CreateNetworkInterfacePermissionResponse
- cniprsInterfacePermission :: Lens' CreateNetworkInterfacePermissionResponse (Maybe NetworkInterfacePermission)
- cniprsResponseStatus :: Lens' CreateNetworkInterfacePermissionResponse Int
Creating a Request
createNetworkInterfacePermission Source #
Creates a value of CreateNetworkInterfacePermission
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnipAWSAccountId
- The AWS account ID.cnipAWSService
- The AWS service. Currently not supported.cnipDryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.cnipNetworkInterfaceId
- The ID of the network interface.cnipPermission
- The type of permission to grant.
data CreateNetworkInterfacePermission Source #
Contains the parameters for CreateNetworkInterfacePermission.
See: createNetworkInterfacePermission
smart constructor.
Request Lenses
cnipAWSAccountId :: Lens' CreateNetworkInterfacePermission (Maybe Text) Source #
The AWS account ID.
cnipAWSService :: Lens' CreateNetworkInterfacePermission (Maybe Text) Source #
The AWS service. Currently not supported.
cnipDryRun :: Lens' CreateNetworkInterfacePermission (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
cnipNetworkInterfaceId :: Lens' CreateNetworkInterfacePermission Text Source #
The ID of the network interface.
cnipPermission :: Lens' CreateNetworkInterfacePermission InterfacePermissionType Source #
The type of permission to grant.
Destructuring the Response
createNetworkInterfacePermissionResponse Source #
Creates a value of CreateNetworkInterfacePermissionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cniprsInterfacePermission
- Information about the permission for the network interface.cniprsResponseStatus
- -- | The response status code.
data CreateNetworkInterfacePermissionResponse Source #
Contains the output of CreateNetworkInterfacePermission.
See: createNetworkInterfacePermissionResponse
smart constructor.
Response Lenses
cniprsInterfacePermission :: Lens' CreateNetworkInterfacePermissionResponse (Maybe NetworkInterfacePermission) Source #
Information about the permission for the network interface.
cniprsResponseStatus :: Lens' CreateNetworkInterfacePermissionResponse Int Source #
- - | The response status code.