Skip to content

Delete Secondary Network

ec2_delete_secondary_network R Documentation

Deletes a secondary network

Description

Deletes a secondary network. You must delete all secondary subnets in the secondary network before you can delete the secondary network.

Usage

ec2_delete_secondary_network(ClientToken, DryRun, SecondaryNetworkId)

Arguments

ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.

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.

SecondaryNetworkId

[required] The ID of the secondary network.

Value

A list with the following syntax:

list(
  SecondaryNetwork = list(
    SecondaryNetworkId = "string",
    SecondaryNetworkArn = "string",
    OwnerId = "string",
    Type = "rdma",
    State = "create-in-progress"|"create-complete"|"create-failed"|"delete-in-progress"|"delete-complete"|"delete-failed",
    StateReason = "string",
    Ipv4CidrBlockAssociations = list(
      list(
        AssociationId = "string",
        CidrBlock = "string",
        State = "associating"|"associated"|"association-failed"|"disassociating"|"disassociated"|"disassociation-failed",
        StateReason = "string"
      )
    ),
    Tags = list(
      list(
        Key = "string",
        Value = "string"
      )
    )
  ),
  ClientToken = "string"
)

Request syntax

svc$delete_secondary_network(
  ClientToken = "string",
  DryRun = TRUE|FALSE,
  SecondaryNetworkId = "string"
)