ec2_confirm_product_instance: Determines whether a product code is associated with an...

Description Usage Arguments Value Request syntax Examples

View source: R/ec2_operations.R

Description

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user's instance is eligible for support.

Usage

1
ec2_confirm_product_instance(InstanceId, ProductCode, DryRun)

Arguments

InstanceId

[required] The ID of the instance.

ProductCode

[required] The product code. This must be a product code that you own.

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.

Value

A list with the following syntax:

1
2
3
4
list(
  OwnerId = "string",
  Return = TRUE|FALSE
)

Request syntax

1
2
3
4
5
svc$confirm_product_instance(
  InstanceId = "string",
  ProductCode = "string",
  DryRun = TRUE|FALSE
)

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# This example determines whether the specified product code is associated
# with the specified instance.
svc$confirm_product_instance(
  InstanceId = "i-1234567890abcdef0",
  ProductCode = "774F4FF8"
)

## End(Not run)

paws.compute documentation built on March 7, 2021, 5:10 p.m.