Class: Aws::EC2::Types::CreateNetworkInterfacePermissionRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Note:

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

Instance Attribute Details

#aws_account_idString

The AWS account ID.

Returns:

  • (String)


5794
5795
5796
5797
5798
5799
5800
5801
# File 'lib/aws-sdk-ec2/types.rb', line 5794

class CreateNetworkInterfacePermissionRequest < Struct.new(
  :network_interface_id,
  :aws_account_id,
  :aws_service,
  :permission,
  :dry_run)
  include Aws::Structure
end

#aws_serviceString

The AWS service. Currently not supported.

Returns:

  • (String)


5794
5795
5796
5797
5798
5799
5800
5801
# File 'lib/aws-sdk-ec2/types.rb', line 5794

class CreateNetworkInterfacePermissionRequest < Struct.new(
  :network_interface_id,
  :aws_account_id,
  :aws_service,
  :permission,
  :dry_run)
  include Aws::Structure
end

#dry_runBoolean

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`.

Returns:

  • (Boolean)


5794
5795
5796
5797
5798
5799
5800
5801
# File 'lib/aws-sdk-ec2/types.rb', line 5794

class CreateNetworkInterfacePermissionRequest < Struct.new(
  :network_interface_id,
  :aws_account_id,
  :aws_service,
  :permission,
  :dry_run)
  include Aws::Structure
end

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)


5794
5795
5796
5797
5798
5799
5800
5801
# File 'lib/aws-sdk-ec2/types.rb', line 5794

class CreateNetworkInterfacePermissionRequest < Struct.new(
  :network_interface_id,
  :aws_account_id,
  :aws_service,
  :permission,
  :dry_run)
  include Aws::Structure
end

#permissionString

The type of permission to grant.

Returns:

  • (String)


5794
5795
5796
5797
5798
5799
5800
5801
# File 'lib/aws-sdk-ec2/types.rb', line 5794

class CreateNetworkInterfacePermissionRequest < Struct.new(
  :network_interface_id,
  :aws_account_id,
  :aws_service,
  :permission,
  :dry_run)
  include Aws::Structure
end