list_workload_identity_templates
¶
list_workload_identity_templates(
workload_identity_provider_arn: arnType,
*,
config_overrides: Optional[IAMClientConfig] = 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/iam.py
9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 | |