class CfnWorkspaceInstancePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WorkspacesInstances.Mixins.CfnWorkspaceInstancePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsworkspacesinstances/mixins#CfnWorkspaceInstancePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.workspacesinstances.mixins.CfnWorkspaceInstancePropsMixin |
Python | aws_cdk.mixins_preview.aws_workspacesinstances.mixins.CfnWorkspaceInstancePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_workspacesinstances » mixins » CfnWorkspaceInstancePropsMixin |
Implements
IMixin
Extends
Mixin
Resource Type definition for AWS::WorkspacesInstances::WorkspaceInstance.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as workspacesinstances_mixins } from '@aws-cdk/mixins-preview/aws-workspacesinstances';
const cfnWorkspaceInstancePropsMixin = new workspacesinstances_mixins.CfnWorkspaceInstancePropsMixin({
managedInstance: {
blockDeviceMappings: [{
deviceName: 'deviceName',
ebs: {
encrypted: false,
iops: 123,
kmsKeyId: 'kmsKeyId',
throughput: 123,
volumeSize: 123,
volumeType: 'volumeType',
},
noDevice: 'noDevice',
virtualName: 'virtualName',
}],
capacityReservationSpecification: {
capacityReservationPreference: 'capacityReservationPreference',
capacityReservationTarget: {
capacityReservationId: 'capacityReservationId',
capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
},
},
cpuOptions: {
coreCount: 123,
threadsPerCore: 123,
},
creditSpecification: {
cpuCredits: 'cpuCredits',
},
disableApiStop: false,
ebsOptimized: false,
enablePrimaryIpv6: false,
enclaveOptions: {
enabled: false,
},
hibernationOptions: {
configured: false,
},
iamInstanceProfile: {
arn: 'arn',
name: 'name',
},
imageId: 'imageId',
instanceMarketOptions: {
marketType: 'marketType',
spotOptions: {
instanceInterruptionBehavior: 'instanceInterruptionBehavior',
maxPrice: 'maxPrice',
spotInstanceType: 'spotInstanceType',
validUntilUtc: 'validUntilUtc',
},
},
instanceType: 'instanceType',
ipv6AddressCount: 123,
keyName: 'keyName',
licenseSpecifications: [{
licenseConfigurationArn: 'licenseConfigurationArn',
}],
maintenanceOptions: {
autoRecovery: 'autoRecovery',
},
metadataOptions: {
httpEndpoint: 'httpEndpoint',
httpProtocolIpv6: 'httpProtocolIpv6',
httpPutResponseHopLimit: 123,
httpTokens: 'httpTokens',
instanceMetadataTags: 'instanceMetadataTags',
},
monitoring: {
enabled: false,
},
networkInterfaces: [{
description: 'description',
deviceIndex: 123,
groups: ['groups'],
subnetId: 'subnetId',
}],
networkPerformanceOptions: {
bandwidthWeighting: 'bandwidthWeighting',
},
placement: {
availabilityZone: 'availabilityZone',
groupId: 'groupId',
groupName: 'groupName',
partitionNumber: 123,
tenancy: 'tenancy',
},
privateDnsNameOptions: {
enableResourceNameDnsAaaaRecord: false,
enableResourceNameDnsARecord: false,
hostnameType: 'hostnameType',
},
subnetId: 'subnetId',
tagSpecifications: [{
resourceType: 'resourceType',
tags: [{
key: 'key',
value: 'value',
}],
}],
userData: 'userData',
},
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnWorkspaceInstancePropsMixin(props: CfnWorkspaceInstanceMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Workspace Instance Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::WorkspacesInstances::WorkspaceInstance.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript