aws_sdk_dataexchange/client/create_revision.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateRevision`](crate::operation::create_revision::builders::CreateRevisionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`comment(impl Into<String>)`](crate::operation::create_revision::builders::CreateRevisionFluentBuilder::comment) / [`set_comment(Option<String>)`](crate::operation::create_revision::builders::CreateRevisionFluentBuilder::set_comment):<br>required: **false**<br><p>An optional comment about the revision.</p><br>
/// - [`data_set_id(impl Into<String>)`](crate::operation::create_revision::builders::CreateRevisionFluentBuilder::data_set_id) / [`set_data_set_id(Option<String>)`](crate::operation::create_revision::builders::CreateRevisionFluentBuilder::set_data_set_id):<br>required: **true**<br><p>The unique identifier for a data set.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_revision::builders::CreateRevisionFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_revision::builders::CreateRevisionFluentBuilder::set_tags):<br>required: **false**<br><p>A revision tag is an optional label that you can assign to a revision when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.</p><br>
/// - On success, responds with [`CreateRevisionOutput`](crate::operation::create_revision::CreateRevisionOutput) with field(s):
/// - [`arn(Option<String>)`](crate::operation::create_revision::CreateRevisionOutput::arn): <p>The ARN for the revision.</p>
/// - [`comment(Option<String>)`](crate::operation::create_revision::CreateRevisionOutput::comment): <p>An optional comment about the revision.</p>
/// - [`created_at(Option<DateTime>)`](crate::operation::create_revision::CreateRevisionOutput::created_at): <p>The date and time that the revision was created, in ISO 8601 format.</p>
/// - [`data_set_id(Option<String>)`](crate::operation::create_revision::CreateRevisionOutput::data_set_id): <p>The unique identifier for the data set associated with the data set revision.</p>
/// - [`finalized(bool)`](crate::operation::create_revision::CreateRevisionOutput::finalized): <p>To publish a revision to a data set in a product, the revision must first be finalized. Finalizing a revision tells AWS Data Exchange that your changes to the assets in the revision are complete. After it's in this read-only state, you can publish the revision to your products. Finalized revisions can be published through the AWS Data Exchange console or the AWS Marketplace Catalog API, using the StartChangeSet AWS Marketplace Catalog API action. When using the API, revisions are uniquely identified by their ARN.</p>
/// - [`id(Option<String>)`](crate::operation::create_revision::CreateRevisionOutput::id): <p>The unique identifier for the revision.</p>
/// - [`source_id(Option<String>)`](crate::operation::create_revision::CreateRevisionOutput::source_id): <p>The revision ID of the owned revision corresponding to the entitled revision being viewed. This parameter is returned when a revision owner is viewing the entitled copy of its owned revision.</p>
/// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_revision::CreateRevisionOutput::tags): <p>The tags for the revision.</p>
/// - [`updated_at(Option<DateTime>)`](crate::operation::create_revision::CreateRevisionOutput::updated_at): <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
/// - [`revocation_comment(Option<String>)`](crate::operation::create_revision::CreateRevisionOutput::revocation_comment): <p>A required comment to inform subscribers of the reason their access to the revision was revoked.</p>
/// - [`revoked(bool)`](crate::operation::create_revision::CreateRevisionOutput::revoked): <p>A status indicating that subscribers' access to the revision was revoked.</p>
/// - [`revoked_at(Option<DateTime>)`](crate::operation::create_revision::CreateRevisionOutput::revoked_at): <p>The date and time that the revision was revoked, in ISO 8601 format.</p>
/// - On failure, responds with [`SdkError<CreateRevisionError>`](crate::operation::create_revision::CreateRevisionError)
pub fn create_revision(&self) -> crate::operation::create_revision::builders::CreateRevisionFluentBuilder {
crate::operation::create_revision::builders::CreateRevisionFluentBuilder::new(self.handle.clone())
}
}