// Grants an AWS-authorized 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.
Grants an AWS-authorized 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.
// Grants an AWS - authorized 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 .
func (c *Client) CreateNetworkInterfacePermission(ctx context.Context, params *CreateNetworkInterfacePermissionInput, optFns ...func(*Options)) (*CreateNetworkInterfacePermissionOutput, error) {
	if params == nil {
		params = &CreateNetworkInterfacePermissionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInterfacePermission", params, optFns, addOperationCreateNetworkInterfacePermissionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateNetworkInterfacePermissionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateNetworkInterfacePermission ( ctx context . Context , params * CreateNetworkInterfacePermissionInput , optFns ... func ( * Options ) ) ( * CreateNetworkInterfacePermissionOutput , error ) { if params == nil { params = & CreateNetworkInterfacePermissionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateNetworkInterfacePermissionMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateNetworkInterfacePermissionOutput ) out . ResultMetadata = metadata return out , nil }
Grants an AWS-authorized account permission to attach the specified network
interface to an instance in their account.
Grants an AWS - authorized account permission to attach the specified network interface to an instance in their account .