| Copyright | (c) 2013-2018 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 |
Network.AWS.EC2.CreateNetworkInterfacePermission
Description
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.
Synopsis
- 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 #
Arguments
| :: Text | |
| -> InterfacePermissionType | |
| -> CreateNetworkInterfacePermission |
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 #
Contains the parameters for CreateNetworkInterfacePermission.
See: createNetworkInterfacePermission smart constructor.
Instances
Request Lenses
cnipAWSAccountId :: Lens' CreateNetworkInterfacePermission (Maybe Text) #
The AWS account ID.
cnipAWSService :: Lens' CreateNetworkInterfacePermission (Maybe Text) #
The AWS service. Currently not supported.
cnipDryRun :: Lens' CreateNetworkInterfacePermission (Maybe Bool) #
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 #
The ID of the network interface.
cnipPermission :: Lens' CreateNetworkInterfacePermission InterfacePermissionType #
The type of permission to grant.
Destructuring the Response
createNetworkInterfacePermissionResponse #
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 #
Contains the output of CreateNetworkInterfacePermission.
See: createNetworkInterfacePermissionResponse smart constructor.
Instances
Response Lenses
cniprsInterfacePermission :: Lens' CreateNetworkInterfacePermissionResponse (Maybe NetworkInterfacePermission) #
Information about the permission for the network interface.
cniprsResponseStatus :: Lens' CreateNetworkInterfacePermissionResponse Int #
- - | The response status code.