Class AccessPoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.s3objectlambda.AccessPoint
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IAccessPoint
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.198Z")
@Stability(Experimental)
public class AccessPoint
extends Resource
implements IAccessPoint
(experimental) An S3 object lambda access point for intercepting and transforming
GetObject
requests.
Example:
import software.amazon.awscdk.services.lambda.*; import software.amazon.awscdk.services.s3.*; import software.amazon.awscdk.services.s3objectlambda.*; import software.amazon.awscdk.core.*; Stack stack = new Stack(); Bucket bucket = new Bucket(stack, "MyBucket"); Function handler = Function.Builder.create(stack, "MyFunction") .runtime(Runtime.NODEJS_14_X) .handler("index.handler") .code(Code.fromAsset("lambda.zip")) .build(); AccessPoint.Builder.create(stack, "MyObjectLambda") .bucket(bucket) .handler(handler) .accessPointName("my-access-point") .payload(Map.of( "prop", "value")) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forAccessPoint
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.s3objectlambda.IAccessPoint
IAccessPoint.Jsii$Default, IAccessPoint.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
AccessPoint
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AccessPoint
(software.amazon.jsii.JsiiObjectRef objRef) AccessPoint
(software.constructs.Construct scope, String id, AccessPointProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IAccessPoint
fromAccessPointAttributes
(software.constructs.Construct scope, String id, AccessPointAttributes attrs) (experimental) Reference an existing AccessPoint defined outside of the CDK code.(experimental) The ARN of the access point.(experimental) The creation data of the access point.(experimental) The ARN of the access point.(experimental) Implement theIAccessPoint.domainName
field.(experimental) Implement theIAccessPoint.regionalDomainName
field.(experimental) Implement theIAccessPoint.virtualHostedUrlForObject
method.(experimental) Implement theIAccessPoint.virtualHostedUrlForObject
method.virtualHostedUrlForObject
(String key, VirtualHostedStyleUrlOptions options) (experimental) Implement theIAccessPoint.virtualHostedUrlForObject
method.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AccessPoint
protected AccessPoint(software.amazon.jsii.JsiiObjectRef objRef) -
AccessPoint
protected AccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AccessPoint
@Stability(Experimental) public AccessPoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AccessPointProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromAccessPointAttributes
@Stability(Experimental) @NotNull public static IAccessPoint fromAccessPointAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AccessPointAttributes attrs) (experimental) Reference an existing AccessPoint defined outside of the CDK code.- Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
virtualHostedUrlForObject
@Stability(Experimental) @NotNull public String virtualHostedUrlForObject(@Nullable String key, @Nullable VirtualHostedStyleUrlOptions options) (experimental) Implement theIAccessPoint.virtualHostedUrlForObject
method.- Specified by:
virtualHostedUrlForObject
in interfaceIAccessPoint
- Parameters:
key
-options
-- Returns:
- an ObjectS3Url token
-
virtualHostedUrlForObject
(experimental) Implement theIAccessPoint.virtualHostedUrlForObject
method.- Specified by:
virtualHostedUrlForObject
in interfaceIAccessPoint
- Parameters:
key
-- Returns:
- an ObjectS3Url token
-
virtualHostedUrlForObject
(experimental) Implement theIAccessPoint.virtualHostedUrlForObject
method.- Specified by:
virtualHostedUrlForObject
in interfaceIAccessPoint
- Returns:
- an ObjectS3Url token
-
getAccessPointArn
(experimental) The ARN of the access point.- Specified by:
getAccessPointArn
in interfaceIAccessPoint
-
getAccessPointCreationDate
(experimental) The creation data of the access point.- Specified by:
getAccessPointCreationDate
in interfaceIAccessPoint
-
getAccessPointName
(experimental) The ARN of the access point. -
getDomainName
(experimental) Implement theIAccessPoint.domainName
field.- Specified by:
getDomainName
in interfaceIAccessPoint
-
getRegionalDomainName
(experimental) Implement theIAccessPoint.regionalDomainName
field.- Specified by:
getRegionalDomainName
in interfaceIAccessPoint
-