Skip to content

/AWS1/CL_CTL=>LISTRESOURCES()

About ListResources

Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.

You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.

Method Signature

IMPORTING

Required arguments:

IV_TYPENAME TYPE /AWS1/CTLTYPENAME /AWS1/CTLTYPENAME

The name of the resource type.

Optional arguments:

IV_TYPEVERSIONID TYPE /AWS1/CTLTYPEVERSIONID /AWS1/CTLTYPEVERSIONID

For private resource types, the type version to use in this resource operation. If you do not specify a resource version, CloudFormation uses the default version.

IV_ROLEARN TYPE /AWS1/CTLROLEARN /AWS1/CTLROLEARN

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers section of the resource type definition schema.

If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.

For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.

IV_NEXTTOKEN TYPE /AWS1/CTLHANDLERNEXTTOKEN /AWS1/CTLHANDLERNEXTTOKEN

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

IV_MAXRESULTS TYPE /AWS1/CTLMAXRESULTS /AWS1/CTLMAXRESULTS

Reserved.

IV_RESOURCEMODEL TYPE /AWS1/CTLPROPERTIES /AWS1/CTLPROPERTIES

The resource model to use to select the resources to return.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CTLLISTRESRCSOUTPUT /AWS1/CL_CTLLISTRESRCSOUTPUT