java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.gamelift.alpha.Content
software.amazon.awscdk.services.gamelift.alpha.AssetContent
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:25.708Z") @Stability(Experimental) public class AssetContent extends Content
(experimental) Game content from a local directory.

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.gamelift.alpha.*;
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.iam.*;
 DockerImage dockerImage;
 IGrantable grantable;
 ILocalBundling localBundling;
 AssetContent assetContent = AssetContent.Builder.create("path")
         .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
    AssetContent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    AssetContent(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct scope, IRole role)
    (experimental) Called when the Build is initialized to allow this object to bind.
    (experimental) The path to the asset file or directory.

    Methods inherited from class software.amazon.awscdk.services.gamelift.alpha.Content

    fromAsset, fromAsset, fromBucket, fromBucket

    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

    • AssetContent

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

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

      @Stability(Experimental) public AssetContent(@NotNull String path, @Nullable AssetOptions options)
      Parameters:
      path - The path to the asset file or directory. This parameter is required.
      options -
    • AssetContent

      @Stability(Experimental) public AssetContent(@NotNull String path)
      Parameters:
      path - The path to the asset file or directory. This parameter is required.
  • Method Details

    • bind

      @Stability(Experimental) @NotNull public ContentConfig bind(@NotNull software.constructs.Construct scope, @NotNull IRole role)
      (experimental) Called when the Build is initialized to allow this object to bind.

      Specified by:
      bind in class Content
      Parameters:
      scope - This parameter is required.
      role - This parameter is required.
    • getPath

      @Stability(Experimental) @NotNull public String getPath()
      (experimental) The path to the asset file or directory.