list_domain_access_grants_for_organization
async
¶
list_domain_access_grants_for_organization(
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
domain_id: Optional[DomainId] = None,
principal_id: Optional[PrincipalId] = None,
principal_type: Optional[OrganizationGrantPrincipalType] = None,
permission: Optional[OrganizationGrantPermission] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[int] = None,
) -> ListDomainAccessGrantsForOrganizationOutput
Returns organization-level domain access grants, with optional filtering by domain, principal, or permission. A grant is returned only when it matches every filter supplied. With no filters, returns the grants for the caller's organization.
Parameters:
-
domain_id(Optional[DomainId], default:None) –Filter by domain ID.
-
principal_id(Optional[PrincipalId], default:None) –Filter by principal ID.
-
principal_type(Optional[OrganizationGrantPrincipalType], default:None) –Filter by principal type.
-
permission(Optional[OrganizationGrantPermission], default:None) –Filter by permission level.
-
next_token(Optional[NextToken], default:None) –A token to retrieve the next page of results. Supply the same filters used on the request that returned it. Tokens expire after 24 hours.
-
max_results(Optional[int], default:None) –The maximum number of access grants to return per page. Defaults to 100. A page can contain fewer results than this value even when more results remain; continue while nextToken is present.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List organization domain access grants The following example lists the first page of organization domain access grants and returns a nextToken to retrieve the next page. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.list_domain_access_grants_for_organization(domain_id='d-1a2b3c4d5e', max_results=50)
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 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 | |