aws_sdk_datazone/client/create_subscription_grant.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateSubscriptionGrant`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_identifier(impl Into<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the Amazon DataZone domain in which the subscription grant is created.</p><br>
/// - [`environment_identifier(impl Into<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::set_environment_identifier):<br>required: **true**<br><p>The ID of the environment in which the subscription grant is created.</p><br>
/// - [`subscription_target_identifier(impl Into<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::subscription_target_identifier) / [`set_subscription_target_identifier(Option<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::set_subscription_target_identifier):<br>required: **false**<br><p>The ID of the subscription target for which the subscription grant is created.</p><br>
/// - [`granted_entity(GrantedEntityInput)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::granted_entity) / [`set_granted_entity(Option<GrantedEntityInput>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::set_granted_entity):<br>required: **true**<br><p>The entity to which the subscription is to be granted.</p><br>
/// - [`asset_target_names(AssetTargetNameMap)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::asset_target_names) / [`set_asset_target_names(Option<Vec::<AssetTargetNameMap>>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::set_asset_target_names):<br>required: **false**<br><p>The names of the assets for which the subscription grant is created.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p><br>
/// - On success, responds with [`CreateSubscriptionGrantOutput`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput) with field(s):
/// - [`id(String)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::id): <p>The ID of the subscription grant.</p>
/// - [`created_by(String)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::created_by): <p>The Amazon DataZone user who created the subscription grant.</p>
/// - [`updated_by(Option<String>)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::updated_by): <p>The Amazon DataZone user who updated the subscription grant.</p>
/// - [`domain_id(String)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::domain_id): <p>The ID of the Amazon DataZone domain in which the subscription grant is created.</p>
/// - [`created_at(DateTime)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::created_at): <p>A timestamp of when the subscription grant is created.</p>
/// - [`updated_at(DateTime)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::updated_at): <p>A timestamp of when the subscription grant was updated.</p>
/// - [`subscription_target_id(String)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::subscription_target_id): <p>The ID of the subscription target for which the subscription grant is created.</p>
/// - [`granted_entity(Option<GrantedEntity>)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::granted_entity): <p>The entity to which the subscription is granted.</p>
/// - [`status(SubscriptionGrantOverallStatus)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::status): <p>The status of the subscription grant.</p>
/// - [`assets(Option<Vec::<SubscribedAsset>>)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::assets): <p>The assets for which the subscription grant is created.</p>
/// - [`subscription_id(Option<String>)`](crate::operation::create_subscription_grant::CreateSubscriptionGrantOutput::subscription_id): <p>The identifier of the subscription grant.</p>
/// - On failure, responds with [`SdkError<CreateSubscriptionGrantError>`](crate::operation::create_subscription_grant::CreateSubscriptionGrantError)
pub fn create_subscription_grant(&self) -> crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder {
crate::operation::create_subscription_grant::builders::CreateSubscriptionGrantFluentBuilder::new(self.handle.clone())
}
}