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 |
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single Amazon Web Services account only, and only one account at a time.
Synopsis
- data CreateNetworkInterfacePermission = CreateNetworkInterfacePermission' {}
- newCreateNetworkInterfacePermission :: Text -> InterfacePermissionType -> CreateNetworkInterfacePermission
- createNetworkInterfacePermission_awsAccountId :: Lens' CreateNetworkInterfacePermission (Maybe Text)
- createNetworkInterfacePermission_awsService :: Lens' CreateNetworkInterfacePermission (Maybe Text)
- createNetworkInterfacePermission_dryRun :: Lens' CreateNetworkInterfacePermission (Maybe Bool)
- createNetworkInterfacePermission_networkInterfaceId :: Lens' CreateNetworkInterfacePermission Text
- createNetworkInterfacePermission_permission :: Lens' CreateNetworkInterfacePermission InterfacePermissionType
- data CreateNetworkInterfacePermissionResponse = CreateNetworkInterfacePermissionResponse' {}
- newCreateNetworkInterfacePermissionResponse :: Int -> CreateNetworkInterfacePermissionResponse
- createNetworkInterfacePermissionResponse_interfacePermission :: Lens' CreateNetworkInterfacePermissionResponse (Maybe NetworkInterfacePermission)
- createNetworkInterfacePermissionResponse_httpStatus :: Lens' CreateNetworkInterfacePermissionResponse Int
Creating a Request
data CreateNetworkInterfacePermission Source #
Contains the parameters for CreateNetworkInterfacePermission.
See: newCreateNetworkInterfacePermission
smart constructor.
CreateNetworkInterfacePermission' | |
|
Instances
newCreateNetworkInterfacePermission Source #
Create a value of CreateNetworkInterfacePermission
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:
CreateNetworkInterfacePermission
, createNetworkInterfacePermission_awsAccountId
- The Amazon Web Services account ID.
CreateNetworkInterfacePermission
, createNetworkInterfacePermission_awsService
- The Amazon Web Service. Currently not supported.
$sel:dryRun:CreateNetworkInterfacePermission'
, createNetworkInterfacePermission_dryRun
- 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
.
CreateNetworkInterfacePermission
, createNetworkInterfacePermission_networkInterfaceId
- The ID of the network interface.
CreateNetworkInterfacePermission
, createNetworkInterfacePermission_permission
- The type of permission to grant.
Request Lenses
createNetworkInterfacePermission_awsAccountId :: Lens' CreateNetworkInterfacePermission (Maybe Text) Source #
The Amazon Web Services account ID.
createNetworkInterfacePermission_awsService :: Lens' CreateNetworkInterfacePermission (Maybe Text) Source #
The Amazon Web Service. Currently not supported.
createNetworkInterfacePermission_dryRun :: 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
.
createNetworkInterfacePermission_networkInterfaceId :: Lens' CreateNetworkInterfacePermission Text Source #
The ID of the network interface.
createNetworkInterfacePermission_permission :: Lens' CreateNetworkInterfacePermission InterfacePermissionType Source #
The type of permission to grant.
Destructuring the Response
data CreateNetworkInterfacePermissionResponse Source #
Contains the output of CreateNetworkInterfacePermission.
See: newCreateNetworkInterfacePermissionResponse
smart constructor.
CreateNetworkInterfacePermissionResponse' | |
|
Instances
newCreateNetworkInterfacePermissionResponse Source #
Create a value of CreateNetworkInterfacePermissionResponse
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:interfacePermission:CreateNetworkInterfacePermissionResponse'
, createNetworkInterfacePermissionResponse_interfacePermission
- Information about the permission for the network interface.
$sel:httpStatus:CreateNetworkInterfacePermissionResponse'
, createNetworkInterfacePermissionResponse_httpStatus
- The response's http status code.
Response Lenses
createNetworkInterfacePermissionResponse_interfacePermission :: Lens' CreateNetworkInterfacePermissionResponse (Maybe NetworkInterfacePermission) Source #
Information about the permission for the network interface.
createNetworkInterfacePermissionResponse_httpStatus :: Lens' CreateNetworkInterfacePermissionResponse Int Source #
The response's http status code.