#[non_exhaustive]pub struct AccessGrantsLocationConfiguration {
pub s3_sub_prefix: Option<String>,
}
Expand description
The configuration options of the S3 Access Grants location. It contains the S3SubPrefix
field. The grant scope, the data to which you are granting access, is the result of appending the Subprefix
field to the scope of the registered location.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.s3_sub_prefix: Option<String>
The S3SubPrefix
is appended to the location scope creating the grant scope. Use this field to narrow the scope of the grant to a subset of the location scope. This field is required if the location scope is the default location s3://
because you cannot create a grant for all of your S3 data in the Region and must narrow the scope. For example, if the location scope is the default location s3://
, the S3SubPrefx
can be a s3://
. Or the
S3SubPrefx
can be
, so the full grant scope path would be or
s3://
.
If the S3SubPrefix
includes a prefix, append the wildcard character *
after the prefix to indicate that you want to include all object key names in the bucket that start with that prefix.
Implementations§
source§impl AccessGrantsLocationConfiguration
impl AccessGrantsLocationConfiguration
sourcepub fn s3_sub_prefix(&self) -> Option<&str>
pub fn s3_sub_prefix(&self) -> Option<&str>
The S3SubPrefix
is appended to the location scope creating the grant scope. Use this field to narrow the scope of the grant to a subset of the location scope. This field is required if the location scope is the default location s3://
because you cannot create a grant for all of your S3 data in the Region and must narrow the scope. For example, if the location scope is the default location s3://
, the S3SubPrefx
can be a s3://
. Or the
S3SubPrefx
can be
, so the full grant scope path would be or
s3://
.
If the S3SubPrefix
includes a prefix, append the wildcard character *
after the prefix to indicate that you want to include all object key names in the bucket that start with that prefix.
source§impl AccessGrantsLocationConfiguration
impl AccessGrantsLocationConfiguration
sourcepub fn builder() -> AccessGrantsLocationConfigurationBuilder
pub fn builder() -> AccessGrantsLocationConfigurationBuilder
Creates a new builder-style object to manufacture AccessGrantsLocationConfiguration
.
Trait Implementations§
source§impl Clone for AccessGrantsLocationConfiguration
impl Clone for AccessGrantsLocationConfiguration
source§fn clone(&self) -> AccessGrantsLocationConfiguration
fn clone(&self) -> AccessGrantsLocationConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AccessGrantsLocationConfiguration
impl PartialEq for AccessGrantsLocationConfiguration
source§fn eq(&self, other: &AccessGrantsLocationConfiguration) -> bool
fn eq(&self, other: &AccessGrantsLocationConfiguration) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AccessGrantsLocationConfiguration
Auto Trait Implementations§
impl Freeze for AccessGrantsLocationConfiguration
impl RefUnwindSafe for AccessGrantsLocationConfiguration
impl Send for AccessGrantsLocationConfiguration
impl Sync for AccessGrantsLocationConfiguration
impl Unpin for AccessGrantsLocationConfiguration
impl UnwindSafe for AccessGrantsLocationConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more