aws-sdk-s3files 1.1.0

AWS SDK for Amazon S3 Files
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateFileSystem`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`bucket(impl Into<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::bucket) / [`set_bucket(Option<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::set_bucket):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the S3 bucket that will be accessible through the file system. The bucket must exist and be in the same Amazon Web Services Region as the file system.</p><br>
    ///   - [`prefix(impl Into<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::prefix) / [`set_prefix(Option<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::set_prefix):<br>required: **false**<br><p>An optional prefix within the S3 bucket to scope the file system access. If specified, the file system provides access only to objects with keys that begin with this prefix. If not specified, the file system provides access to the entire bucket.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure idempotent creation. Up to 64 ASCII characters are allowed. If you don't specify a client token, the Amazon Web Services SDK automatically generates one.</p><br>
    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>The ARN, key ID, or alias of the KMS key to use for encryption. If not specified, the service uses a service-owned key for encryption. You can specify a KMS key using the following formats: key ID, ARN, key alias, or key alias ARN. If you use <code>KmsKeyId</code>, the file system will be encrypted.</p><br>
    ///   - [`role_arn(impl Into<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::set_role_arn):<br>required: **true**<br><p>The ARN of the IAM role that grants the S3 Files service permission to read and write data between the file system and the S3 bucket. This role must have the necessary permissions to access the specified bucket and prefix.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::set_tags):<br>required: **false**<br><p>An array of key-value pairs to apply as tags to the file system resource. Each tag is a user-defined key-value pair. You can use tags to categorize and manage your file systems. Each key must be unique for the resource.</p><br>
    ///   - [`accept_bucket_warning(bool)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::accept_bucket_warning) / [`set_accept_bucket_warning(Option<bool>)`](crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::set_accept_bucket_warning):<br>required: **false**<br><p>Set to true to acknowledge and accept any warnings about the bucket configuration. If not specified, the operation may fail if there are bucket configuration warnings.</p><br>
    /// - On success, responds with [`CreateFileSystemOutput`](crate::operation::create_file_system::CreateFileSystemOutput) with field(s):
    ///   - [`creation_time(Option<DateTime>)`](crate::operation::create_file_system::CreateFileSystemOutput::creation_time): <p>The time when the file system was created, in seconds since 1970-01-01T00:00:00Z (Unix epoch time).</p>
    ///   - [`file_system_arn(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::file_system_arn): <p>The ARN for the S3 file system, in the format <code>arn:aws:s3files:region:account-id:file-system/file-system-id</code>.</p>
    ///   - [`file_system_id(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::file_system_id): <p>The ID of the file system, assigned by S3 Files. This ID is used to reference the file system in subsequent API calls.</p>
    ///   - [`bucket(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::bucket): <p>The Amazon Resource Name (ARN) of the S3 bucket associated with the file system.</p>
    ///   - [`prefix(String)`](crate::operation::create_file_system::CreateFileSystemOutput::prefix): <p>The prefix within the S3 bucket that scopes the file system access.</p>
    ///   - [`client_token(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::client_token): <p>The client token used for idempotency.</p>
    ///   - [`kms_key_id(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::kms_key_id): <p>The ARN or alias of the KMS key used for encryption.</p>
    ///   - [`status(Option<LifeCycleState>)`](crate::operation::create_file_system::CreateFileSystemOutput::status): <p>The lifecycle state of the file system. Valid values are: <code>AVAILABLE</code> (the file system is available for use), <code>CREATING</code> (the file system is being created), <code>DELETING</code> (the file system is being deleted), <code>DELETED</code> (the file system has been deleted), <code>ERROR</code> (the file system is in an error state), or <code>UPDATING</code> (the file system is being updated).</p>
    ///   - [`status_message(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::status_message): <p>Additional information about the file system status. This field provides more details when the status is <code>ERROR</code>, or during state transitions.</p>
    ///   - [`role_arn(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::role_arn): <p>The ARN of the IAM role used for S3 access.</p>
    ///   - [`owner_id(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::owner_id): <p>The Amazon Web Services account ID of the file system owner.</p>
    ///   - [`tags(Option<Vec::<Tag>>)`](crate::operation::create_file_system::CreateFileSystemOutput::tags): <p>The tags associated with the file system.</p>
    ///   - [`name(Option<String>)`](crate::operation::create_file_system::CreateFileSystemOutput::name): <p>The name of the file system, derived from the <code>Name</code> tag if present.</p>
    /// - On failure, responds with [`SdkError<CreateFileSystemError>`](crate::operation::create_file_system::CreateFileSystemError)
    pub fn create_file_system(&self) -> crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder {
        crate::operation::create_file_system::builders::CreateFileSystemFluentBuilder::new(self.handle.clone())
    }
}