Class S3ImportSource

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.ImportSource
software.amazon.awscdk.services.cloudfront.S3ImportSource
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-09-06T01:36:24.762Z") @Stability(Stable) public class S3ImportSource extends ImportSource
An import source from an 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.*;
 import software.amazon.awscdk.services.cloudfront.*;
 import software.amazon.awscdk.services.iam.*;
 DockerImage dockerImage;
 IGrantable grantable;
 ILocalBundling localBundling;
 ImportSource s3ImportSource = S3ImportSource.fromAsset("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)
         .exclude(List.of("exclude"))
         .followSymlinks(SymlinkFollowMode.NEVER)
         .ignoreMode(IgnoreMode.GLOB)
         .readers(List.of(grantable))
         .build());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    S3ImportSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    S3ImportSource(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    the S3 bucket that contains the data.
    the key within the S3 bucket that contains the data.

    Methods inherited from class software.amazon.awscdk.services.cloudfront.ImportSource

    fromAsset, fromAsset, fromBucket, fromInline

    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, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • S3ImportSource

      protected S3ImportSource(software.amazon.jsii.JsiiObjectRef objRef)
    • S3ImportSource

      protected S3ImportSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • S3ImportSource

      @Stability(Stable) public S3ImportSource(@NotNull IBucket bucket, @NotNull String key)
      Parameters:
      bucket - the S3 bucket that contains the data. This parameter is required.
      key - the key within the S3 bucket that contains the data. This parameter is required.
  • Method Details

    • getBucket

      @Stability(Stable) @NotNull public IBucket getBucket()
      the S3 bucket that contains the data.
    • getKey

      @Stability(Stable) @NotNull public String getKey()
      the key within the S3 bucket that contains the data.