describe_trusts
¶
describe_trusts(
*,
config_overrides: Optional[DirectoryServiceClientConfig] = 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/directory_service.py
3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 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 | |