ScopeProperty Struct
You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.
For more information, see Manage the scope of your access points for directory buckets.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3express as s3express } from 'aws-cdk-lib';
const scopeProperty: s3express.CfnAccessPoint.ScopeProperty = {
permissions: ['permissions'],
prefixes: ['prefixes'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3express as s3express
scope_property = s3express.CfnAccessPoint.ScopeProperty(
permissions=["permissions"],
prefixes=["prefixes"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3express.*;
ScopeProperty scopeProperty = ScopeProperty.builder()
.permissions(List.of("permissions"))
.prefixes(List.of("prefixes"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Express;
var scopeProperty = new ScopeProperty {
Permissions = new [] { "permissions" },
Prefixes = new [] { "prefixes" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
scopeProperty := &ScopeProperty{
Permissions: []*string{
jsii.String("permissions"),
},
Prefixes: []*string{
jsii.String("prefixes"),
},
}
Properties
permissionsoptionalstring[]permissionsoptionaltyping.List[str]permissionsoptionalList<String>Permissionsoptionalstring[]Permissionsoptional*[]*string #You can include one or more API operations as permissions.
prefixesoptionalstring[]prefixesoptionaltyping.List[str]prefixesoptionalList<String>Prefixesoptionalstring[]Prefixesoptional*[]*string #You can specify any amount of prefixes, but the total length of characters of all prefixes must be less than 256 bytes in size.