list_resources
async
¶
list_resources(
type_name: TypeName,
*,
config_overrides: Optional[AsyncCloudControlClientConfig] = None,
type_version_id: Optional[TypeVersionId] = None,
role_arn: Optional[RoleArn] = None,
next_token: Optional[HandlerNextToken] = None,
max_results: Optional[MaxResults] = None,
resource_model: Optional[Properties] = None,
) -> ListResourcesOutput
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.
Parameters:
-
type_name(TypeName) –The name of the resource type.
-
type_version_id(Optional[TypeVersionId], default:None) –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.
-
role_arn(Optional[RoleArn], default:None) –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
handlerssection 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.
-
next_token(Optional[HandlerNextToken], default:None) –If the previous paginated request didn't return all of the remaining results, the response object's
NextTokenparameter 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'sNextTokenparameter. If there are no remaining results, the previous response object'sNextTokenparameter is set tonull. -
max_results(Optional[MaxResults], default:None) –Reserved.
-
resource_model(Optional[Properties], default:None) –The resource model to use to select the resources to return.
Raises:
-
AlreadyExistsException–The resource with the name requested already exists.
-
GeneralServiceException–The resource handler has returned that the downstream service generated an error that doesn't map to any other handler error code.
-
HandlerFailureException–The resource handler has failed without a returning a more specific error code. This can include timeouts.
-
HandlerInternalFailureException–The resource handler has returned that an unexpected error occurred within the resource handler.
-
InvalidCredentialsException–The resource handler has returned that the credentials provided by the user are invalid.
-
InvalidRequestException–The resource handler has returned that invalid input from the user has generated a generic exception.
-
NetworkFailureException–The resource handler has returned that the request couldn't be completed due to networking issues, such as a failure to receive a response from the server.
-
NotStabilizedException–The resource handler has returned that the downstream resource failed to complete all of its ready-state checks.
-
NotUpdatableException–One or more properties included in this resource operation are defined as create-only, and therefore can't be updated.
-
PrivateTypeException–Cloud Control API hasn't received a valid response from the resource handler, due to a configuration error. This includes issues such as the resource handler returning an invalid response, or timing out.
-
ResourceConflictException–The resource is temporarily unavailable to be acted upon. For example, if the resource is currently undergoing an operation and can't be acted upon until that operation is finished.
-
ResourceNotFoundException–A resource with the specified identifier can't be found.
-
ServiceInternalErrorException–The resource handler has returned that the downstream service returned an internal error, typically with a
5XX HTTPstatus code. -
ServiceLimitExceededException–The resource handler has returned that a non-transient resource limit was reached on the service side.
-
ThrottlingException–The request was denied due to request throttling.
-
TypeNotFoundException–The specified extension doesn't exist in the CloudFormation registry.
-
UnsupportedActionException–The specified resource doesn't support this resource operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudcontrol/_services/async_cloud_control.py
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 | |