list_domain_access_grants_for_organization
¶
list_domain_access_grants_for_organization(
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = 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.
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 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 | |