Learn R Programming

paws.security.identity (version 0.1.8)

ram_get_resource_share_associations: Gets the resources or principals for the resource shares that you own

Description

Gets the resources or principals for the resource shares that you own.

Usage

ram_get_resource_share_associations(associationType, resourceShareArns,
  resourceArn, principal, associationStatus, nextToken, maxResults)

Arguments

associationType

[required] The association type. Specify PRINCIPAL to list the principals that are associated with the specified resource share. Specify RESOURCE to list the resources that are associated with the specified resource share.

resourceShareArns

The Amazon Resource Names (ARN) of the resource shares.

resourceArn

The Amazon Resource Name (ARN) of the resource. You cannot specify this parameter if the association type is PRINCIPAL.

principal

The principal. You cannot specify this parameter if the association type is RESOURCE.

associationStatus

The association status.

nextToken

The token for the next page of results.

maxResults

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Request syntax

svc$get_resource_share_associations(
  associationType = "PRINCIPAL"|"RESOURCE",
  resourceShareArns = list(
    "string"
  ),
  resourceArn = "string",
  principal = "string",
  associationStatus = "ASSOCIATING"|"ASSOCIATED"|"FAILED"|"DISASSOCIATING"|"DISASSOCIATED",
  nextToken = "string",
  maxResults = 123
)