create_subscription_request
async
¶
create_subscription_request(
domain_identifier: DomainId,
subscribed_principals: SubscribedPrincipalInputs,
subscribed_listings: SubscribedListingInputs,
request_reason: RequestReason,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
client_token: Optional[str] = None,
metadata_forms: Optional[MetadataFormInputs] = None,
asset_permissions: Optional[AssetPermissions] = None,
asset_scopes: Optional[AcceptedAssetScopes] = None,
) -> CreateSubscriptionRequestOutput
Creates a subscription request in Amazon DataZone.
Parameters:
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain in which the subscription request is created.
-
subscribed_principals(SubscribedPrincipalInputs) –The Amazon DataZone principals for whom the subscription request is created.
-
subscribed_listings(SubscribedListingInputs) –The published asset for which the subscription grant is to be created.
-
request_reason(RequestReason) –The reason for the subscription request.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
-
metadata_forms(Optional[MetadataFormInputs], default:None) –The metadata form included in the subscription request.
-
asset_permissions(Optional[AssetPermissions], default:None) –The asset permissions of the subscription request.
-
asset_scopes(Optional[AcceptedAssetScopes], default:None) –The asset scopes of the subscription request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ServiceQuotaExceededException–The request has exceeded the specified service quota.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/async_data_zone.py
2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 | |