Show / Hide Table of Contents

Class CfnInstancePropsMixin

The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.

Inheritance
object
Mixin
CfnInstancePropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnInstancePropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnInstancePropsMixin Inherits Mixin Implements IMixin
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html

CloudformationResource: AWS::Lightsail::Instance

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins;

             var cfnInstancePropsMixin = new CfnInstancePropsMixin(new CfnInstanceMixinProps {
                 AddOns = new [] { new AddOnProperty {
                     AddOnType = "addOnType",
                     AutoSnapshotAddOnRequest = new AutoSnapshotAddOnProperty {
                         SnapshotTimeOfDay = "snapshotTimeOfDay"
                     },
                     Status = "status"
                 } },
                 AvailabilityZone = "availabilityZone",
                 BlueprintId = "blueprintId",
                 BundleId = "bundleId",
                 Hardware = new HardwareProperty {
                     CpuCount = 123,
                     Disks = new [] { new DiskProperty {
                         AttachedTo = "attachedTo",
                         AttachmentState = "attachmentState",
                         DiskName = "diskName",
                         Iops = 123,
                         IsSystemDisk = false,
                         Path = "path",
                         SizeInGb = "sizeInGb"
                     } },
                     RamSizeInGb = 123
                 },
                 InstanceName = "instanceName",
                 KeyPairName = "keyPairName",
                 Location = new LocationProperty {
                     AvailabilityZone = "availabilityZone",
                     RegionName = "regionName"
                 },
                 Networking = new NetworkingProperty {
                     MonthlyTransfer = new MonthlyTransferProperty {
                         GbPerMonthAllocated = "gbPerMonthAllocated"
                     },
                     Ports = new [] { new PortProperty {
                         AccessDirection = "accessDirection",
                         AccessFrom = "accessFrom",
                         AccessType = "accessType",
                         CidrListAliases = new [] { "cidrListAliases" },
                         Cidrs = new [] { "cidrs" },
                         CommonName = "commonName",
                         FromPort = 123,
                         Ipv6Cidrs = new [] { "ipv6Cidrs" },
                         Protocol = "protocol",
                         ToPort = 123
                     } }
                 },
                 State = new StateProperty {
                     Code = 123,
                     Name = "name"
                 },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } },
                 UserData = "userData"
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Synopsis

Constructors

CfnInstancePropsMixin(ICfnInstanceMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::Lightsail::Instance.

Properties

CFN_PROPERTY_KEYS

The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.

Props

The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.

Strategy

The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

Supports(IConstruct)

Check if this mixin supports the given construct.

Constructors

CfnInstancePropsMixin(ICfnInstanceMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::Lightsail::Instance.

public CfnInstancePropsMixin(ICfnInstanceMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
props ICfnInstanceMixinProps

L1 properties to apply.

options ICfnPropertyMixinOptions

Mixin options.

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html

CloudformationResource: AWS::Lightsail::Instance

Mixin: true

ExampleMetadata: fixture=_generated

Properties

CFN_PROPERTY_KEYS

The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.

protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html

CloudformationResource: AWS::Lightsail::Instance

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins;

             var cfnInstancePropsMixin = new CfnInstancePropsMixin(new CfnInstanceMixinProps {
                 AddOns = new [] { new AddOnProperty {
                     AddOnType = "addOnType",
                     AutoSnapshotAddOnRequest = new AutoSnapshotAddOnProperty {
                         SnapshotTimeOfDay = "snapshotTimeOfDay"
                     },
                     Status = "status"
                 } },
                 AvailabilityZone = "availabilityZone",
                 BlueprintId = "blueprintId",
                 BundleId = "bundleId",
                 Hardware = new HardwareProperty {
                     CpuCount = 123,
                     Disks = new [] { new DiskProperty {
                         AttachedTo = "attachedTo",
                         AttachmentState = "attachmentState",
                         DiskName = "diskName",
                         Iops = 123,
                         IsSystemDisk = false,
                         Path = "path",
                         SizeInGb = "sizeInGb"
                     } },
                     RamSizeInGb = 123
                 },
                 InstanceName = "instanceName",
                 KeyPairName = "keyPairName",
                 Location = new LocationProperty {
                     AvailabilityZone = "availabilityZone",
                     RegionName = "regionName"
                 },
                 Networking = new NetworkingProperty {
                     MonthlyTransfer = new MonthlyTransferProperty {
                         GbPerMonthAllocated = "gbPerMonthAllocated"
                     },
                     Ports = new [] { new PortProperty {
                         AccessDirection = "accessDirection",
                         AccessFrom = "accessFrom",
                         AccessType = "accessType",
                         CidrListAliases = new [] { "cidrListAliases" },
                         Cidrs = new [] { "cidrs" },
                         CommonName = "commonName",
                         FromPort = 123,
                         Ipv6Cidrs = new [] { "ipv6Cidrs" },
                         Protocol = "protocol",
                         ToPort = 123
                     } }
                 },
                 State = new StateProperty {
                     Code = 123,
                     Name = "name"
                 },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } },
                 UserData = "userData"
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Props

The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.

protected virtual ICfnInstanceMixinProps Props { get; }
Property Value

ICfnInstanceMixinProps

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html

CloudformationResource: AWS::Lightsail::Instance

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins;

             var cfnInstancePropsMixin = new CfnInstancePropsMixin(new CfnInstanceMixinProps {
                 AddOns = new [] { new AddOnProperty {
                     AddOnType = "addOnType",
                     AutoSnapshotAddOnRequest = new AutoSnapshotAddOnProperty {
                         SnapshotTimeOfDay = "snapshotTimeOfDay"
                     },
                     Status = "status"
                 } },
                 AvailabilityZone = "availabilityZone",
                 BlueprintId = "blueprintId",
                 BundleId = "bundleId",
                 Hardware = new HardwareProperty {
                     CpuCount = 123,
                     Disks = new [] { new DiskProperty {
                         AttachedTo = "attachedTo",
                         AttachmentState = "attachmentState",
                         DiskName = "diskName",
                         Iops = 123,
                         IsSystemDisk = false,
                         Path = "path",
                         SizeInGb = "sizeInGb"
                     } },
                     RamSizeInGb = 123
                 },
                 InstanceName = "instanceName",
                 KeyPairName = "keyPairName",
                 Location = new LocationProperty {
                     AvailabilityZone = "availabilityZone",
                     RegionName = "regionName"
                 },
                 Networking = new NetworkingProperty {
                     MonthlyTransfer = new MonthlyTransferProperty {
                         GbPerMonthAllocated = "gbPerMonthAllocated"
                     },
                     Ports = new [] { new PortProperty {
                         AccessDirection = "accessDirection",
                         AccessFrom = "accessFrom",
                         AccessType = "accessType",
                         CidrListAliases = new [] { "cidrListAliases" },
                         Cidrs = new [] { "cidrs" },
                         CommonName = "commonName",
                         FromPort = 123,
                         Ipv6Cidrs = new [] { "ipv6Cidrs" },
                         Protocol = "protocol",
                         ToPort = 123
                     } }
                 },
                 State = new StateProperty {
                     Code = 123,
                     Name = "name"
                 },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } },
                 UserData = "userData"
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Strategy

The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.

protected virtual PropertyMergeStrategy Strategy { get; }
Property Value

PropertyMergeStrategy

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html

CloudformationResource: AWS::Lightsail::Instance

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins;

             var cfnInstancePropsMixin = new CfnInstancePropsMixin(new CfnInstanceMixinProps {
                 AddOns = new [] { new AddOnProperty {
                     AddOnType = "addOnType",
                     AutoSnapshotAddOnRequest = new AutoSnapshotAddOnProperty {
                         SnapshotTimeOfDay = "snapshotTimeOfDay"
                     },
                     Status = "status"
                 } },
                 AvailabilityZone = "availabilityZone",
                 BlueprintId = "blueprintId",
                 BundleId = "bundleId",
                 Hardware = new HardwareProperty {
                     CpuCount = 123,
                     Disks = new [] { new DiskProperty {
                         AttachedTo = "attachedTo",
                         AttachmentState = "attachmentState",
                         DiskName = "diskName",
                         Iops = 123,
                         IsSystemDisk = false,
                         Path = "path",
                         SizeInGb = "sizeInGb"
                     } },
                     RamSizeInGb = 123
                 },
                 InstanceName = "instanceName",
                 KeyPairName = "keyPairName",
                 Location = new LocationProperty {
                     AvailabilityZone = "availabilityZone",
                     RegionName = "regionName"
                 },
                 Networking = new NetworkingProperty {
                     MonthlyTransfer = new MonthlyTransferProperty {
                         GbPerMonthAllocated = "gbPerMonthAllocated"
                     },
                     Ports = new [] { new PortProperty {
                         AccessDirection = "accessDirection",
                         AccessFrom = "accessFrom",
                         AccessType = "accessType",
                         CidrListAliases = new [] { "cidrListAliases" },
                         Cidrs = new [] { "cidrs" },
                         CommonName = "commonName",
                         FromPort = 123,
                         Ipv6Cidrs = new [] { "ipv6Cidrs" },
                         Protocol = "protocol",
                         ToPort = 123
                     } }
                 },
                 State = new StateProperty {
                     Code = 123,
                     Name = "name"
                 },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } },
                 UserData = "userData"
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

public override IConstruct ApplyTo(IConstruct construct)
Parameters
construct IConstruct
Returns

IConstruct

Overrides
Mixin.ApplyTo(IConstruct)
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html

CloudformationResource: AWS::Lightsail::Instance

Mixin: true

ExampleMetadata: fixture=_generated

Supports(IConstruct)

Check if this mixin supports the given construct.

public override bool Supports(IConstruct construct)
Parameters
construct IConstruct
Returns

bool

Overrides
Mixin.Supports(IConstruct)
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html

CloudformationResource: AWS::Lightsail::Instance

Mixin: true

ExampleMetadata: fixture=_generated

Implements

IMixin
Back to top Generated by DocFX