aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateOntology`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::set_client_token):<br>required: **false**<br><p>Client idempotency token. A reused token with an identical request returns the existing ontology with no second write. A reused token with a different request (any member differs, for example <code>name</code>, <code>description</code>, <code>sourceFormat</code>, or <code>source</code>) is a ValidationException naming <code>clientToken</code>, never a ConflictException. The AWS SDKs generate the token automatically. A request that arrives without a token is a ValidationException.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::set_name):<br>required: **true**<br><p>Friendly display name for the ontology (for example, "Sales Org"). AWS Context assigns the ontology its opaque ID. This name is a non-unique label. You can rename the ontology in the AWS Context console.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::set_description):<br>required: **false**<br><p>Optional description of the ontology. Part of the idempotency comparison on a replay.</p><br>
    ///   - [`source_format(OntologySourceFormat)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::source_format) / [`set_source_format(Option<OntologySourceFormat>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::set_source_format):<br>required: **true**<br><p>The format of <code>source</code>. The only supported value is <code>TURTLE</code>.</p><br>
    ///   - [`source(impl Into<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::source) / [`set_source(Option<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::set_source):<br>required: **true**<br><p>An OWL ontology to derive the template from, in <code>sourceFormat</code>.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to add to the ontology when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with <code>aws:</code>. To add tags, you also need <code>context:TagResource</code> permission on the new ontology. If you specify more than 50 user tags, the request fails with <code>ServiceQuotaExceededException</code>, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with <code>ValidationException</code>.</p><br>
    /// - On success, responds with [`CreateOntologyOutput`](crate::operation::create_ontology::CreateOntologyOutput) with field(s):
    ///   - [`id(String)`](crate::operation::create_ontology::CreateOntologyOutput::id): <p>The ID of the ontology, assigned by AWS Context.</p>
    ///   - [`arn(String)`](crate::operation::create_ontology::CreateOntologyOutput::arn): <p>The ARN of the created ontology.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::create_ontology::CreateOntologyOutput::updated_at): <p>When the ontology last changed. On create, the creation time. On a replay, the current value.</p>
    ///   - [`name(Option<String>)`](crate::operation::create_ontology::CreateOntologyOutput::name): <p>The display name as stored. On a replay, the current one.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_ontology::CreateOntologyOutput::description): <p>The description as stored. Absent when there is none. On a replay, the current one.</p>
    ///   - [`version(Option<String>)`](crate::operation::create_ontology::CreateOntologyOutput::version): <p>The initial version that CreateOntology created, in MAJOR.MINOR.PATCH form, for example <code>1.0.0</code>.</p>
    ///   - [`validation_issues(Option<Vec::<OntologyValidationIssue>>)`](crate::operation::create_ontology::CreateOntologyOutput::validation_issues): <p>Non-fatal warnings from the derivation, such as <code>SYNTHESIZED_NODE_ID</code> or a widened datatype. AWS Context also stores them on the version, and GetOntology returns them in <code>validationIssues</code>. Absent or empty if the derivation produced no warnings.</p>
    /// - On failure, responds with [`SdkError<CreateOntologyError>`](crate::operation::create_ontology::CreateOntologyError)
    pub fn create_ontology(&self) -> crate::operation::create_ontology::builders::CreateOntologyFluentBuilder {
        crate::operation::create_ontology::builders::CreateOntologyFluentBuilder::new(self.handle.clone())
    }
}