opsworkscm_list_tags_for_resource: Returns a list of tags that are applied to the specified AWS...

Description Usage Arguments Value Request syntax

View source: R/opsworkscm_operations.R

Description

Returns a list of tags that are applied to the specified AWS OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise servers or backups.

Usage

1
opsworkscm_list_tags_for_resource(ResourceArn, NextToken, MaxResults)

Arguments

ResourceArn

[required] The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise server for which you want to show applied tags. For example, arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE.

NextToken

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call list_tags_for_resource again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null. Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

MaxResults

To receive a paginated response, use this parameter to specify the maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

Value

A list with the following syntax:

1
2
3
4
5
6
7
8
9
list(
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  NextToken = "string"
)

Request syntax

1
2
3
4
5
svc$list_tags_for_resource(
  ResourceArn = "string",
  NextToken = "string",
  MaxResults = 123
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.