associate_ip: (Dis)Associate IP

Description Usage Arguments Value References See Also

View source: R/associate_ip.R

Description

Associate/Disassociate IP with Instance

Usage

1
2
3
4
associate_ip(instance, ip, private = NULL, netinterface = NULL,
  allow = FALSE, ...)

disassociate_ip(ip, ...)

Arguments

instance

A character string containing an EC2 instance ID or an object of class “ec2_instance”. Or, actions can be taken on multiple instances in one call by passing a character vector of instance IDs, or a list of objects of class “ec2_instance”.

ip

An object of class “ec2_ip” or an allocationId (for a VPC IP) or publicIp (for a standard IP).

private

For a VPC ip, the primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

netinterface

For a VCP ip, the ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.

allow

...

...

Additional arguments passed to [ec2HTTP()].

Value

A list.

References

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AssociateAddress.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DisassociateAddress.html

See Also

allocate_ip(), describe_ips(), release_ip()


HanjoStudy/awsR documentation built on May 6, 2019, 9:06 a.m.