aws_sdk_s3control/client/
create_access_grants_location.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 [`CreateAccessGrantsLocation`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_id(impl Into<String>)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::set_account_id):<br>required: **true**<br><p>The Amazon Web Services account ID of the S3 Access Grants instance.</p><br>
7    ///   - [`location_scope(impl Into<String>)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::location_scope) / [`set_location_scope(Option<String>)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::set_location_scope):<br>required: **true**<br><p>The S3 path to the location that you are registering. The location scope can be the default S3 location <code>s3://</code>, the S3 path to a bucket <code>s3://<bucket></bucket></code>, or the S3 path to a bucket and prefix <code>s3://<bucket>    /    <prefix></prefix>   </bucket></code>. A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the <code>engineering/</code> prefix or object key names that start with the <code>marketing/campaigns/</code> prefix.</p><br>
8    ///   - [`iam_role_arn(impl Into<String>)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::iam_role_arn) / [`set_iam_role_arn(Option<String>)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::set_iam_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::set_tags):<br>required: **false**<br><p>The Amazon Web Services resource tags that you are adding to the S3 Access Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.</p><br>
10    /// - On success, responds with [`CreateAccessGrantsLocationOutput`](crate::operation::create_access_grants_location::CreateAccessGrantsLocationOutput) with field(s):
11    ///   - [`created_at(Option<DateTime>)`](crate::operation::create_access_grants_location::CreateAccessGrantsLocationOutput::created_at): <p>The date and time when you registered the location.</p>
12    ///   - [`access_grants_location_id(Option<String>)`](crate::operation::create_access_grants_location::CreateAccessGrantsLocationOutput::access_grants_location_id): <p>The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID <code>default</code> to the default location <code>s3://</code> and assigns an auto-generated ID to other locations that you register.</p>
13    ///   - [`access_grants_location_arn(Option<String>)`](crate::operation::create_access_grants_location::CreateAccessGrantsLocationOutput::access_grants_location_arn): <p>The Amazon Resource Name (ARN) of the location you are registering.</p>
14    ///   - [`location_scope(Option<String>)`](crate::operation::create_access_grants_location::CreateAccessGrantsLocationOutput::location_scope): <p>The S3 URI path to the location that you are registering. The location scope can be the default S3 location <code>s3://</code>, the S3 path to a bucket, or the S3 path to a bucket and prefix. A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the <code>engineering/</code> prefix or object key names that start with the <code>marketing/campaigns/</code> prefix.</p>
15    ///   - [`iam_role_arn(Option<String>)`](crate::operation::create_access_grants_location::CreateAccessGrantsLocationOutput::iam_role_arn): <p>The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.</p>
16    /// - On failure, responds with [`SdkError<CreateAccessGrantsLocationError>`](crate::operation::create_access_grants_location::CreateAccessGrantsLocationError)
17    pub fn create_access_grants_location(
18        &self,
19    ) -> crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder {
20        crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationFluentBuilder::new(self.handle.clone())
21    }
22}