list_targets_for_policy
async
¶
list_targets_for_policy(
policy_name: PolicyName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
marker: Optional[Marker] = None,
page_size: Optional[PageSize] = None,
) -> ListTargetsForPolicyResponse
List targets for the specified policy.
Requires permission to access the ListTargetsForPolicy action.
Parameters:
-
policy_name(PolicyName) –The policy name.
-
marker(Optional[Marker], default:None) –A marker used to get the next set of results.
-
page_size(Optional[PageSize], default:None) –The maximum number of results to return at one time.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 | |