You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateNetworkInterfacePermissionRequest as input to an Aws::Client method, you can use a vanilla 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)

    The AWS account ID.

#aws_serviceString

The AWS service. Currently not supported.

Returns:

  • (String)

    The AWS service.

#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)

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)

    The ID of the network interface.

#permissionString

The type of permission to grant.

Possible values:

  • INSTANCE-ATTACH
  • EIP-ASSOCIATE

Returns:

  • (String)

    The type of permission to grant.