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
2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 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 | |