RAM.Client.
list_resource_types
(**kwargs)¶Lists the resource types that can be shared by RAM.
See also: AWS API Documentation
Request Syntax
response = client.list_resource_types(
nextToken='string',
maxResults=123,
resourceRegionScope='ALL'|'REGIONAL'|'GLOBAL'
)
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken
response to request the next page of results.NextToken
response element is returned with a value (not null). Include the specified value as the NextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken
after every operation to ensure that you receive all of the results.Specifies that you want the results to include only resources that have the specified scope.
ALL
– the results include both global and regional resources or resource types.GLOBAL
– the results include only global resources or resource types.REGIONAL
– the results include only regional resources or resource types.The default value is ALL
.
dict
Response Syntax
{
'resourceTypes': [
{
'resourceType': 'string',
'serviceName': 'string',
'resourceRegionScope': 'REGIONAL'|'GLOBAL'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
resourceTypes (list) --
An array of objects that contain information about the resource types that can be shared using RAM.
(dict) --
Information about a shareable resource type and the Amazon Web Services service to which resources of that type belong.
resourceType (string) --
The type of the resource.
serviceName (string) --
The name of the Amazon Web Services service to which resources of this type belong.
resourceRegionScope (string) --
Specifies the scope of visibility of resources of this type:
nextToken (string) --
If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
. This indicates that this is the last page of results.
Exceptions
RAM.Client.exceptions.InvalidNextTokenException
RAM.Client.exceptions.InvalidParameterException
RAM.Client.exceptions.ServerInternalException
RAM.Client.exceptions.ServiceUnavailableException