class CfnFleetPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.GameLift.Mixins.CfnFleetPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgamelift/mixins#CfnFleetPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.gamelift.mixins.CfnFleetPropsMixin |
Python | aws_cdk.mixins_preview.aws_gamelift.mixins.CfnFleetPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_gamelift » mixins » CfnFleetPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::GameLift::Fleet resource creates an Amazon GameLift (GameLift) fleet to host custom game server or Realtime Servers.
A fleet is a set of EC2 instances, configured with instructions to run game servers on each instance.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html
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 gamelift_mixins } from '@aws-cdk/mixins-preview/aws-gamelift';
const cfnFleetPropsMixin = new gamelift_mixins.CfnFleetPropsMixin({
anywhereConfiguration: {
cost: 'cost',
},
applyCapacity: 'applyCapacity',
buildId: 'buildId',
certificateConfiguration: {
certificateType: 'certificateType',
},
computeType: 'computeType',
description: 'description',
desiredEc2Instances: 123,
ec2InboundPermissions: [{
fromPort: 123,
ipRange: 'ipRange',
protocol: 'protocol',
toPort: 123,
}],
ec2InstanceType: 'ec2InstanceType',
fleetType: 'fleetType',
instanceRoleArn: 'instanceRoleArn',
instanceRoleCredentialsProvider: 'instanceRoleCredentialsProvider',
locations: [{
location: 'location',
locationCapacity: {
desiredEc2Instances: 123,
maxSize: 123,
minSize: 123,
},
}],
logPaths: ['logPaths'],
maxSize: 123,
metricGroups: ['metricGroups'],
minSize: 123,
name: 'name',
newGameSessionProtectionPolicy: 'newGameSessionProtectionPolicy',
peerVpcAwsAccountId: 'peerVpcAwsAccountId',
peerVpcId: 'peerVpcId',
resourceCreationLimitPolicy: {
newGameSessionsPerCreator: 123,
policyPeriodInMinutes: 123,
},
runtimeConfiguration: {
gameSessionActivationTimeoutSeconds: 123,
maxConcurrentGameSessionActivations: 123,
serverProcesses: [{
concurrentExecutions: 123,
launchPath: 'launchPath',
parameters: 'parameters',
}],
},
scalingPolicies: [{
comparisonOperator: 'comparisonOperator',
evaluationPeriods: 123,
location: 'location',
metricName: 'metricName',
name: 'name',
policyType: 'policyType',
scalingAdjustment: 123,
scalingAdjustmentType: 'scalingAdjustmentType',
status: 'status',
targetConfiguration: {
targetValue: 123,
},
threshold: 123,
updateStatus: 'updateStatus',
}],
scriptId: 'scriptId',
serverLaunchParameters: 'serverLaunchParameters',
serverLaunchPath: 'serverLaunchPath',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnFleetPropsMixin(props: CfnFleetMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Fleet Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::GameLift::Fleet.
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