public static final class AccessPoint.Builder
extends java.lang.Object
AccessPoint
.Modifier and Type | Method and Description |
---|---|
AccessPoint.Builder |
accessPointName(java.lang.String accessPointName)
(experimental) The name of the S3 object lambda access point.
|
AccessPoint.Builder |
bucket(IBucket bucket)
(experimental) The bucket to which this access point belongs.
|
AccessPoint |
build() |
AccessPoint.Builder |
cloudWatchMetricsEnabled(java.lang.Boolean cloudWatchMetricsEnabled)
(experimental) Whether CloudWatch metrics are enabled for the access point.
|
static AccessPoint.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
AccessPoint.Builder |
handler(IFunction handler)
(experimental) The Lambda function used to transform objects.
|
AccessPoint.Builder |
payload(java.util.Map<java.lang.String,? extends java.lang.Object> payload)
(experimental) Additional JSON that provides supplemental data passed to the Lambda function on every request.
|
AccessPoint.Builder |
supportsGetObjectPartNumber(java.lang.Boolean supportsGetObjectPartNumber)
(experimental) Whether the Lambda function can process `GetObject-PartNumber` requests.
|
AccessPoint.Builder |
supportsGetObjectRange(java.lang.Boolean supportsGetObjectRange)
(experimental) Whether the Lambda function can process `GetObject-Range` requests.
|
public static AccessPoint.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.AccessPoint.Builder
.public AccessPoint.Builder bucket(IBucket bucket)
bucket
- The bucket to which this access point belongs. This parameter is required.this
public AccessPoint.Builder handler(IFunction handler)
handler
- The Lambda function used to transform objects. This parameter is required.this
public AccessPoint.Builder accessPointName(java.lang.String accessPointName)
Default: a unique name will be generated
accessPointName
- The name of the S3 object lambda access point. This parameter is required.this
public AccessPoint.Builder cloudWatchMetricsEnabled(java.lang.Boolean cloudWatchMetricsEnabled)
Default: false
cloudWatchMetricsEnabled
- Whether CloudWatch metrics are enabled for the access point. This parameter is required.this
public AccessPoint.Builder payload(java.util.Map<java.lang.String,? extends java.lang.Object> payload)
Default: - No data.
payload
- Additional JSON that provides supplemental data passed to the Lambda function on every request. This parameter is required.this
public AccessPoint.Builder supportsGetObjectPartNumber(java.lang.Boolean supportsGetObjectPartNumber)
Default: false
supportsGetObjectPartNumber
- Whether the Lambda function can process `GetObject-PartNumber` requests. This parameter is required.this
public AccessPoint.Builder supportsGetObjectRange(java.lang.Boolean supportsGetObjectRange)
Default: false
supportsGetObjectRange
- Whether the Lambda function can process `GetObject-Range` requests. This parameter is required.this
public AccessPoint build()