#[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 ==
.