# NOT RUN {
# This example associates the specified Elastic IP address with the
# specified instance in a VPC.
# }
# NOT RUN {
svc$associate_address(
AllocationId = "eipalloc-64d5890a",
InstanceId = "i-0b263919b6498b123"
)
# }
# NOT RUN {
# This example associates the specified Elastic IP address with the
# specified network interface.
# }
# NOT RUN {
svc$associate_address(
AllocationId = "eipalloc-64d5890a",
NetworkInterfaceId = "eni-1a2b3c4d"
)
# }
# NOT RUN {
# This example associates an Elastic IP address with an instance in
# EC2-Classic.
# }
# NOT RUN {
svc$associate_address(
InstanceId = "i-07ffe74c7330ebf53",
PublicIp = "198.51.100.0"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab