create_subscription_grant
async
¶
create_subscription_grant(
domain_identifier: DomainId,
environment_identifier: EnvironmentId,
granted_entity: GrantedEntityInput,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = 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/async_data_zone.py
2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 | |