list_workload_identity_templates
async
¶
list_workload_identity_templates(
workload_identity_provider_arn: arnType,
*,
config_overrides: Optional[AsyncIAMClientConfig] = None,
resource_scope: Optional[WorkloadIdentityResourceScopeType] = None,
marker: Optional[markerType] = None,
max_items: Optional[maxItemsType] = None,
filter: Optional[workloadIdentityTemplateFilterType] = None,
) -> ListWorkloadIdentityTemplatesResponse
Lists the workload identity templates under a workload identity provider. If there are none, the operation returns an empty list.
You can paginate the results using the MaxItems and Marker parameters.
Parameters:
-
workload_identity_provider_arn(arnType) –The Amazon Resource Name (ARN) of the workload identity provider whose templates are listed.
-
resource_scope(Optional[WorkloadIdentityResourceScopeType], default:None) –The scope to list templates at.
-
marker(Optional[markerType], default:None) –Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the
Markerelement in the response that you received to indicate where the next call should start. -
max_items(Optional[maxItemsType], default:None) –Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the
IsTruncatedresponse element istrue. Note that IAM might return fewer results, even when there are more results available. In that case, theIsTruncatedresponse element returnstrue, andMarkercontains a value to include in the subsequent call that tells the service where to continue from. -
filter(Optional[workloadIdentityTemplateFilterType], default:None) –A filter expression that narrows the page to templates whose attestation policy admits a given service principal.
The only supported attribute is
service_principaland the only supported filter type is=, so an expression readsservice_principal = "eks.amazonaws.com". The value is the service principal as it is written in a policy, for exampleeks.amazonaws.com. Whitespace around=is optional. If you omit the filter, the list is not filtered. A filter that is present but blank is rejected. A value that IAM does not recognize as a service principal returnsInvalidInputExceptionrather than an empty page.
Raises:
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
NoSuchEntityException–The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
-
ServiceFailureException–The request processing has failed because of an unknown error, exception or failure.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iam/_services/async_iam.py
9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 | |