Class CfnAppBlock
A CloudFormation AWS::AppStream::AppBlock
.
Inherited Members
Namespace: Amazon.CDK.AWS.AppStream
Assembly: Amazon.CDK.AWS.AppStream.dll
Syntax (csharp)
public class CfnAppBlock : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnAppBlock
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
This resource creates an app block. App blocks store details about the virtual hard disk that contains the files for the application in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. App blocks are only supported for Elastic fleets.
CloudformationResource: AWS::AppStream::AppBlock
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-appblock.html
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.AWS.AppStream;
var cfnAppBlock = new CfnAppBlock(this, "MyCfnAppBlock", new CfnAppBlockProps {
Name = "name",
SetupScriptDetails = new ScriptDetailsProperty {
ExecutablePath = "executablePath",
ScriptS3Location = new S3LocationProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key"
},
TimeoutInSeconds = 123,
// the properties below are optional
ExecutableParameters = "executableParameters"
},
SourceS3Location = new S3LocationProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key"
},
// the properties below are optional
Description = "description",
DisplayName = "displayName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnAppBlock(Construct, String, ICfnAppBlockProps) | Create a new |
CfnAppBlock(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnAppBlock(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrArn | The ARN of the app block. |
AttrCreatedTime | The time when the app block was created. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | The description of the app block. |
DisplayName | The display name of the app block. |
Name | The name of the app block. |
SetupScriptDetails | The setup script details of the app block. |
SourceS3Location | The source S3 location of the app block. |
Tags | The tags of the app block. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnAppBlock(Construct, String, ICfnAppBlockProps)
Create a new AWS::AppStream::AppBlock
.
public CfnAppBlock(Construct scope, string id, ICfnAppBlockProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnAppBlockProps
- resource properties.
CfnAppBlock(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnAppBlock(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnAppBlock(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnAppBlock(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrArn
The ARN of the app block.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrCreatedTime
The time when the app block was created.
public virtual string AttrCreatedTime { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CreatedTime
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
The description of the app block.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
DisplayName
The display name of the app block.
public virtual string DisplayName { get; set; }
Property Value
System.String
Remarks
Name
The name of the app block.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
Pattern : ^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$
SetupScriptDetails
The setup script details of the app block.
public virtual object SetupScriptDetails { get; set; }
Property Value
System.Object
Remarks
SourceS3Location
The source S3 location of the app block.
public virtual object SourceS3Location { get; set; }
Property Value
System.Object
Remarks
Tags
The tags of the app block.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>