create_subscription_grant
¶
create_subscription_grant(
domain_identifier: DomainId,
environment_identifier: EnvironmentId,
granted_entity: GrantedEntityInput,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
subscription_target_identifier: Optional[SubscriptionTargetId] = None,
asset_target_names: Optional[AssetTargetNames] = None,
client_token: Optional[str] = None,
) -> CreateSubscriptionGrantOutput
Creates a subsscription grant in Amazon DataZone.
Parameters:
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain in which the subscription grant is created.
-
environment_identifier(EnvironmentId) –The ID of the environment in which the subscription grant is created.
-
subscription_target_identifier(Optional[SubscriptionTargetId], default:None) –The ID of the subscription target for which the subscription grant is created.
-
granted_entity(GrantedEntityInput) –The entity to which the subscription is to be granted.
-
asset_target_names(Optional[AssetTargetNames], default:None) –The names of the assets for which the subscription grant is created.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the 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.
-
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
2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 | |