paws.compute (version 0.1.0)

ec2_disassociate_address: Disassociates an Elastic IP address from the instance or network interface it's associated with

Description

Disassociates an Elastic IP address from the instance or network interface it's associated with.

Usage

ec2_disassociate_address(AssociationId, PublicIp, DryRun)

Arguments

AssociationId

[EC2-VPC] The association ID. Required for EC2-VPC.

PublicIp

[EC2-Classic] The Elastic IP address. Required for EC2-Classic.

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.

Request syntax

svc$disassociate_address(
  AssociationId = "string",
  PublicIp = "string",
  DryRun = TRUE|FALSE
)

Details

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

Examples

Run this code
# NOT RUN {
# This example disassociates an Elastic IP address from an instance in a
# VPC.
# }
# NOT RUN {
svc$disassociate_address(
  AssociationId = "eipassoc-2bebb745"
)
# }
# NOT RUN {
# This example disassociates an Elastic IP address from an instance in
# EC2-Classic.
# }
# NOT RUN {
svc$disassociate_address(
  PublicIp = "198.51.100.0"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace