Class: Aws::EC2::Types::CreateNetworkInterfacePermissionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::CreateNetworkInterfacePermissionRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass CreateNetworkInterfacePermissionRequest data as a hash:
{
network_interface_id: "String", # required
aws_account_id: "String",
aws_service: "String",
permission: "INSTANCE-ATTACH", # required, accepts INSTANCE-ATTACH, EIP-ASSOCIATE
dry_run: false,
}
Contains the parameters for CreateNetworkInterfacePermission.
Instance Attribute Summary collapse
-
#aws_account_id ⇒ String
The AWS account ID.
-
#aws_service ⇒ String
The AWS service.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#network_interface_id ⇒ String
The ID of the network interface.
-
#permission ⇒ String
The type of permission to grant.
Instance Attribute Details
#aws_account_id ⇒ String
The AWS account ID.
3158 3159 3160 3161 3162 3163 3164 3165 |
# File 'lib/aws-sdk-ec2/types.rb', line 3158 class CreateNetworkInterfacePermissionRequest < Struct.new( :network_interface_id, :aws_account_id, :aws_service, :permission, :dry_run) include Aws::Structure end |
#aws_service ⇒ String
The AWS service. Currently not supported.
3158 3159 3160 3161 3162 3163 3164 3165 |
# File 'lib/aws-sdk-ec2/types.rb', line 3158 class CreateNetworkInterfacePermissionRequest < Struct.new( :network_interface_id, :aws_account_id, :aws_service, :permission, :dry_run) include Aws::Structure end |
#dry_run ⇒ Boolean
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`.
3158 3159 3160 3161 3162 3163 3164 3165 |
# File 'lib/aws-sdk-ec2/types.rb', line 3158 class CreateNetworkInterfacePermissionRequest < Struct.new( :network_interface_id, :aws_account_id, :aws_service, :permission, :dry_run) include Aws::Structure end |
#network_interface_id ⇒ String
The ID of the network interface.
3158 3159 3160 3161 3162 3163 3164 3165 |
# File 'lib/aws-sdk-ec2/types.rb', line 3158 class CreateNetworkInterfacePermissionRequest < Struct.new( :network_interface_id, :aws_account_id, :aws_service, :permission, :dry_run) include Aws::Structure end |
#permission ⇒ String
The type of permission to grant.
3158 3159 3160 3161 3162 3163 3164 3165 |
# File 'lib/aws-sdk-ec2/types.rb', line 3158 class CreateNetworkInterfacePermissionRequest < Struct.new( :network_interface_id, :aws_account_id, :aws_service, :permission, :dry_run) include Aws::Structure end |