Interface CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnAccessGrantPropsMixin
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.s3.*;
AccessGrantsLocationConfigurationProperty accessGrantsLocationConfigurationProperty = AccessGrantsLocationConfigurationProperty.builder()
.s3SubPrefix("s3SubPrefix")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getS3SubPrefix
TheS3SubPrefixis 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 locations3://, theS3SubPrefxcan be a<bucket-name>/*, so the full grant scope path would bes3://<bucket-name>/*. Or theS3SubPrefxcan be<bucket-name>/<prefix-name>*, so the full grant scope path would bes3://<bucket-name>/<prefix-name>*.If the
S3SubPrefixincludes 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.- See Also:
-
builder
@Stability(Stable) static CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty.Builder builder()
-