@aws-cdk_aws-gamelift-alpha.AssetContent

class AssetContent ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.GameLift.Alpha.AssetContent
Gogithub.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#AssetContent
Javasoftware.amazon.awscdk.services.gamelift.alpha.AssetContent
Pythonaws_cdk.aws_gamelift_alpha.AssetContent
TypeScript (source)@aws-cdk/aws-gamelift-alpha ยป AssetContent

Extends Content

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 * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const dockerImage: cdk.DockerImage;
declare const grantable: iam.IGrantable;
declare const localBundling: cdk.ILocalBundling;
const assetContent = new gamelift_alpha.AssetContent('path', /* all optional props */ {
  assetHash: 'assetHash',
  assetHashType: cdk.AssetHashType.SOURCE,
  bundling: {
    image: dockerImage,

    // the properties below are optional
    bundlingFileAccess: cdk.BundlingFileAccess.VOLUME_COPY,
    command: ['command'],
    entrypoint: ['entrypoint'],
    environment: {
      environmentKey: 'environment',
    },
    local: localBundling,
    network: 'network',
    outputType: cdk.BundlingOutput.ARCHIVED,
    securityOpt: 'securityOpt',
    user: 'user',
    volumes: [{
      containerPath: 'containerPath',
      hostPath: 'hostPath',

      // the properties below are optional
      consistency: cdk.DockerVolumeConsistency.CONSISTENT,
    }],
    volumesFrom: ['volumesFrom'],
    workingDirectory: 'workingDirectory',
  },
  deployTime: false,
  exclude: ['exclude'],
  followSymlinks: cdk.SymlinkFollowMode.NEVER,
  ignoreMode: cdk.IgnoreMode.GLOB,
  readers: [grantable],
});

Initializer

new AssetContent(path: string, options?: AssetOptions)

Parameters

  • path string โ€” The path to the asset file or directory.
  • options AssetOptions

Properties

NameTypeDescription
path๐Ÿ”นstringThe path to the asset file or directory.

path๐Ÿ”น

Type: string

The path to the asset file or directory.

Methods

NameDescription
bind(scope, role)๐Ÿ”นCalled when the Build is initialized to allow this object to bind.

bind(scope, role)๐Ÿ”น

public bind(scope: Construct, role: IRole): ContentConfig

Parameters

  • scope Construct
  • role IRole

Returns

  • ContentConfig

Called when the Build is initialized to allow this object to bind.