list_lifecycle_execution_resources
async
¶
list_lifecycle_execution_resources(
lifecycle_execution_id: LifecycleExecutionId,
*,
config_overrides: Optional[AsyncimagebuilderClientConfig] = None,
parent_resource_id: Optional[NonEmptyString] = None,
max_results: Optional[RestrictedInteger] = None,
next_token: Optional[PaginationToken] = None,
) -> ListLifecycleExecutionResourcesResponse
Lists resources that the runtime instance of the image lifecycle identified for lifecycle actions.
Parameters:
-
lifecycle_execution_id(LifecycleExecutionId) –The unique identifier for a runtime instance of the lifecycle policy.
-
parent_resource_id(Optional[NonEmptyString], default:None) –The Amazon Resource Name (ARN) of an image build version to get the output resources for, such as AMIs or container images in Amazon ECR. You can get this value from the
resourceIdin the top-level response. If you leave this property empty, the response lists the Image Builder resources that the lifecycle execution identified for lifecycle actions. If the image build version that you specify inparentResourceIdwasn't part of this lifecycle execution, the response contains an empty list. -
max_results(Optional[RestrictedInteger], default:None) –The maximum number of items to return in a single request.
-
next_token(Optional[PaginationToken], default:None) –A token to specify where to start paginating. Use the
nextTokenvalue from a previously truncated response.
Raises:
-
CallRateLimitExceededException–You have exceeded the permitted request rate for the Amazon EC2 APIs that Image Builder calls on your behalf. Retry with an increasing or variable delay between requests.
-
ClientException–A generic client error. This error usually indicates that the request failed a validation check, such as when a downstream service rejects a configured value.
-
ForbiddenException–You are not authorized to perform the requested operation.
-
InvalidPaginationTokenException–You have provided an invalid pagination token in your request.
-
InvalidRequestException–The request is malformed or otherwise invalid. Verify the request and try again.
-
ServiceException–An internal server error occurred while Image Builder processed the request. Retrying the request may succeed.
-
ServiceUnavailableException–The service is unable to process your request at this time.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List the resources that a lifecycle execution acted on The following example lists the resources that the specified lifecycle execution acted on. For a scheduled resource state update that hasn't started to apply changes yet, the resources list is empty.
>>> await client.list_lifecycle_execution_resources(lifecycle_execution_id='lce-401aefc3-a829-46f6-8fc2-91497988a503')
Source code in docs_src/capo_imagebuilder/_services/async_imagebuilder.py
4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 | |