Show / Hide Table of Contents

Class FileAsset

A file asset.

Inheritance
System.Object
FileAsset
Implements
IFileAsset
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public class FileAsset : Object, IFileAsset
Syntax (vb)
Public Class FileAsset
    Inherits Object
    Implements IFileAsset
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CloudAssembly.Schema;

var fileAsset = new FileAsset {
    Destinations = new Dictionary<string, FileDestination> {
        { "destinationsKey", new FileDestination {
            BucketName = "bucketName",
            ObjectKey = "objectKey",

            // the properties below are optional
            AssumeRoleArn = "assumeRoleArn",
            AssumeRoleExternalId = "assumeRoleExternalId",
            Region = "region"
        } }
    },
    Source = new FileSource {
        Executable = new [] { "executable" },
        Packaging = FileAssetPackaging.FILE,
        Path = "path"
    }
};

Synopsis

Constructors

FileAsset()

Properties

Destinations

Destinations for this file asset.

Source

Source description for file assets.

Constructors

FileAsset()

public FileAsset()

Properties

Destinations

Destinations for this file asset.

public IDictionary<string, IFileDestination> Destinations { get; set; }
Property Value

System.Collections.Generic.IDictionary<System.String, IFileDestination>

Source

Source description for file assets.

public IFileSource Source { get; set; }
Property Value

IFileSource

Implements

IFileAsset
Back to top Generated by DocFX