Class S3DockerfileData
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.imagebuilder.alpha.DockerfileData
software.amazon.awscdk.services.imagebuilder.alpha.S3DockerfileData
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:50.098Z")
@Stability(Experimental)
public abstract class S3DockerfileData
extends DockerfileData
(experimental) Helper class for S3-based dockerfile data references, containing additional permission grant methods on the S3 object.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.alpha.*;
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.interfaces.kms.*;
DockerImage dockerImage;
IGrantable grantable;
IKeyRef keyRef;
ILocalBundling localBundling;
S3DockerfileData s3DockerfileData = S3DockerfileData.fromAsset(this, "MyS3DockerfileData", "path", AssetOptions.builder()
.assetHash("assetHash")
.assetHashType(AssetHashType.SOURCE)
.bundling(BundlingOptions.builder()
.image(dockerImage)
// the properties below are optional
.bundlingFileAccess(BundlingFileAccess.VOLUME_COPY)
.command(List.of("command"))
.entrypoint(List.of("entrypoint"))
.environment(Map.of(
"environmentKey", "environment"))
.local(localBundling)
.network("network")
.outputType(BundlingOutput.ARCHIVED)
.platform("platform")
.securityOpt("securityOpt")
.user("user")
.volumes(List.of(DockerVolume.builder()
.containerPath("containerPath")
.hostPath("hostPath")
// the properties below are optional
.consistency(DockerVolumeConsistency.CONSISTENT)
.build()))
.volumesFrom(List.of("volumesFrom"))
.workingDirectory("workingDirectory")
.build())
.deployTime(false)
.displayName("displayName")
.exclude(List.of("exclude"))
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.readers(List.of(grantable))
.sourceKMSKey(keyRef)
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedS3DockerfileData(IBucket bucket, String key) protectedS3DockerfileData(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedS3DockerfileData(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected IBucketprotected StringgetKey()grantPut(IGrantable grantee) (experimental) Grant put permissions to the given grantee for the dockerfile data in S3.grantRead(IGrantable grantee) (experimental) Grant read permissions to the given grantee for the dockerfile data in S3.render()(experimental) The rendered Dockerfile S3 URL, for use in CloudFormation.Methods inherited from class software.amazon.awscdk.services.imagebuilder.alpha.DockerfileData
fromAsset, fromAsset, fromInline, fromS3Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3DockerfileData
protected S3DockerfileData(software.amazon.jsii.JsiiObjectRef objRef) -
S3DockerfileData
protected S3DockerfileData(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3DockerfileData
- Parameters:
bucket- This parameter is required.key- This parameter is required.
-
-
Method Details
-
grantPut
(experimental) Grant put permissions to the given grantee for the dockerfile data in S3.- Parameters:
grantee- The principal. This parameter is required.
-
grantRead
(experimental) Grant read permissions to the given grantee for the dockerfile data in S3.- Parameters:
grantee- The principal. This parameter is required.
-
render
(experimental) The rendered Dockerfile S3 URL, for use in CloudFormation.- Specified by:
renderin classDockerfileData
-
getBucket
-
getKey
-