create_subscription_target
¶
create_subscription_target(
domain_identifier: DomainId,
environment_identifier: EnvironmentId,
name: SubscriptionTargetName,
type: str,
subscription_target_config: SubscriptionTargetForms,
authorized_principals: AuthorizedPrincipalIdentifiers,
manage_access_role: IamRoleArn,
applicable_asset_types: ApplicableAssetTypes,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
provider: Optional[str] = None,
client_token: Optional[str] = None,
subscription_grant_creation_mode: Optional[SubscriptionGrantCreationMode] = None,
) -> CreateSubscriptionTargetOutput
Creates a subscription target in Amazon DataZone.
Parameters:
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain in which subscription target is created.
-
environment_identifier(EnvironmentId) –The ID of the environment in which subscription target is created.
-
name(SubscriptionTargetName) –The name of the subscription target.
-
type(str) –The type of the subscription target.
-
subscription_target_config(SubscriptionTargetForms) –The configuration of the subscription target.
-
authorized_principals(AuthorizedPrincipalIdentifiers) –The authorized principals of the subscription target.
-
manage_access_role(IamRoleArn) –The manage access role that is used to create the subscription target.
-
applicable_asset_types(ApplicableAssetTypes) –The asset types that can be included in the subscription target.
-
provider(Optional[str], default:None) –The provider of the subscription target.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
-
subscription_grant_creation_mode(Optional[SubscriptionGrantCreationMode], default:None) –Determines the subscription grant creation mode for this target, defining if grants are auto-created upon subscription approval or managed manually.
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.
-
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/data_zone.py
2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 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 | |