Skip to main content

aws_sdk_glacier/client/
create_vault.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateVault`](crate::operation::create_vault::builders::CreateVaultFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_id(impl Into<String>)`](crate::operation::create_vault::builders::CreateVaultFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::create_vault::builders::CreateVaultFluentBuilder::set_account_id):<br>required: **true**<br><p>The <code>AccountId</code> value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.</p><br>
7    ///   - [`vault_name(impl Into<String>)`](crate::operation::create_vault::builders::CreateVaultFluentBuilder::vault_name) / [`set_vault_name(Option<String>)`](crate::operation::create_vault::builders::CreateVaultFluentBuilder::set_vault_name):<br>required: **true**<br><p>The name of the vault.</p><br>
8    /// - On success, responds with [`CreateVaultOutput`](crate::operation::create_vault::CreateVaultOutput) with field(s):
9    ///   - [`location(Option<String>)`](crate::operation::create_vault::CreateVaultOutput::location): <p>The URI of the vault that was created.</p>
10    /// - On failure, responds with [`SdkError<CreateVaultError>`](crate::operation::create_vault::CreateVaultError)
11    pub fn create_vault(&self) -> crate::operation::create_vault::builders::CreateVaultFluentBuilder {
12        crate::operation::create_vault::builders::CreateVaultFluentBuilder::new(self.handle.clone())
13    }
14}