describe_trusts
async
¶
describe_trusts(
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
directory_id: Optional[DirectoryId] = None,
trust_ids: Optional[TrustIds] = None,
next_token: Optional[NextToken] = None,
limit: Optional[Limit] = None,
) -> DescribeTrustsResult
Obtains information about the trust relationships for this account.
If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.
Parameters:
-
directory_id(Optional[DirectoryId], default:None) –The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.
-
trust_ids(Optional[TrustIds], default:None) –A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.
An empty list results in an
InvalidParameterExceptionbeing thrown. -
next_token(Optional[NextToken], default:None) –The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
-
limit(Optional[Limit], default:None) –The maximum number of objects to return.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidNextTokenException–The
NextTokenvalue is not valid. -
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a trust The following example obtains information about the trust relationship for a specified directory.
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 | |