Class CfnContainerFleet
Describes an Amazon GameLift managed container fleet.
Inherited Members
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContainerFleet : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnContainerFleet
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
CloudformationResource: AWS::GameLift::ContainerFleet
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.GameLift;
var cfnContainerFleet = new CfnContainerFleet(this, "MyCfnContainerFleet", new CfnContainerFleetProps {
FleetRoleArn = "fleetRoleArn",
// the properties below are optional
BillingType = "billingType",
DeploymentConfiguration = new DeploymentConfigurationProperty {
ImpairmentStrategy = "impairmentStrategy",
MinimumHealthyPercentage = 123,
ProtectionStrategy = "protectionStrategy"
},
Description = "description",
GameServerContainerGroupDefinitionName = "gameServerContainerGroupDefinitionName",
GameServerContainerGroupsPerInstance = 123,
GameSessionCreationLimitPolicy = new GameSessionCreationLimitPolicyProperty {
NewGameSessionsPerCreator = 123,
PolicyPeriodInMinutes = 123
},
InstanceConnectionPortRange = new ConnectionPortRangeProperty {
FromPort = 123,
ToPort = 123
},
InstanceInboundPermissions = new [] { new IpPermissionProperty {
FromPort = 123,
IpRange = "ipRange",
Protocol = "protocol",
ToPort = 123
} },
InstanceType = "instanceType",
Locations = new [] { new LocationConfigurationProperty {
Location = "location",
// the properties below are optional
LocationCapacity = new LocationCapacityProperty {
DesiredEc2Instances = 123,
MaxSize = 123,
MinSize = 123
},
StoppedActions = new [] { "stoppedActions" }
} },
LogConfiguration = new LogConfigurationProperty {
LogDestination = "logDestination",
S3BucketName = "s3BucketName"
},
MetricGroups = new [] { "metricGroups" },
NewGameSessionProtectionPolicy = "newGameSessionProtectionPolicy",
PerInstanceContainerGroupDefinitionName = "perInstanceContainerGroupDefinitionName",
ScalingPolicies = new [] { new ScalingPolicyProperty {
MetricName = "metricName",
Name = "name",
// the properties below are optional
ComparisonOperator = "comparisonOperator",
EvaluationPeriods = 123,
PolicyType = "policyType",
ScalingAdjustment = 123,
ScalingAdjustmentType = "scalingAdjustmentType",
TargetConfiguration = new TargetConfigurationProperty {
TargetValue = 123
},
Threshold = 123
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnContainerFleet(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnContainerFleet(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnContainerFleet(Construct, String, ICfnContainerFleetProps) |
Properties
AttrCreationTime | A time stamp indicating when this data object was created. |
AttrDeploymentDetails | Provides information about the last deployment ID and its status. |
AttrFleetArn | The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is |
AttrFleetId | A unique identifier for the container fleet to retrieve. |
AttrGameServerContainerGroupDefinitionArn | The Amazon Resource Name ( ARN ) that is assigned to the fleet's game server container group. The ARN value also identifies the specific container group definition version in use. |
AttrMaximumGameServerContainerGroupsPerInstance | The calculated maximum number of game server container group that can be deployed on each fleet instance. |
AttrPerInstanceContainerGroupDefinitionArn | The Amazon Resource Name ( ARN ) that is assigned to the fleet's per-instance container group. The ARN value also identifies the specific container group definition version in use. |
AttrStatus | The current status of the container fleet. |
BillingType | Indicates whether the fleet uses On-Demand or Spot instances for this fleet. |
CdkTagManager | Tag Manager which manages the tags for this resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DeploymentConfiguration | Set of rules for processing a deployment for a container fleet update. |
Description | A meaningful description of the container fleet. |
FleetRoleArn | The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift. |
GameServerContainerGroupDefinitionName | The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance. |
GameServerContainerGroupsPerInstance | The number of times to replicate the game server container group on each fleet instance. |
GameSessionCreationLimitPolicy | A policy that limits the number of game sessions that each individual player can create on instances in this fleet. |
InstanceConnectionPortRange | The set of port numbers to open on each instance in a container fleet. |
InstanceInboundPermissions | The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. |
InstanceType | The Amazon EC2 instance type to use for all instances in the fleet. |
Locations | |
LogConfiguration | The method that is used to collect container logs for the fleet. |
MetricGroups | The name of an AWS CloudWatch metric group to add this fleet to. |
NewGameSessionProtectionPolicy | Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players. |
PerInstanceContainerGroupDefinitionName | The name of the fleet's per-instance container group definition. |
ScalingPolicies | A list of rules that control how a fleet is scaled. |
Tags | An array of key-value pairs to apply to this resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnContainerFleet(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnContainerFleet(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnContainerFleet(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnContainerFleet(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnContainerFleet(Construct, String, ICfnContainerFleetProps)
public CfnContainerFleet(Construct scope, string id, ICfnContainerFleetProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnContainerFleetProps
Resource properties.
Properties
AttrCreationTime
A time stamp indicating when this data object was created.
public virtual string AttrCreationTime { get; }
Property Value
System.String
Remarks
Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"
).
CloudformationAttribute: CreationTime
AttrDeploymentDetails
Provides information about the last deployment ID and its status.
public virtual IResolvable AttrDeploymentDetails { get; }
Property Value
Remarks
CloudformationAttribute: DeploymentDetails
AttrFleetArn
The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
. In a GameLift fleet ARN, the resource ID matches the FleetId
value.
public virtual string AttrFleetArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: FleetArn
AttrFleetId
A unique identifier for the container fleet to retrieve.
public virtual string AttrFleetId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: FleetId
AttrGameServerContainerGroupDefinitionArn
The Amazon Resource Name ( ARN ) that is assigned to the fleet's game server container group. The ARN value also identifies the specific container group definition version in use.
public virtual string AttrGameServerContainerGroupDefinitionArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: GameServerContainerGroupDefinitionArn
AttrMaximumGameServerContainerGroupsPerInstance
The calculated maximum number of game server container group that can be deployed on each fleet instance.
public virtual double AttrMaximumGameServerContainerGroupsPerInstance { get; }
Property Value
System.Double
Remarks
The calculation depends on the resource needs of the container group and the CPU and memory resources of the fleet's instance type.
CloudformationAttribute: MaximumGameServerContainerGroupsPerInstance
AttrPerInstanceContainerGroupDefinitionArn
The Amazon Resource Name ( ARN ) that is assigned to the fleet's per-instance container group. The ARN value also identifies the specific container group definition version in use.
public virtual string AttrPerInstanceContainerGroupDefinitionArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: PerInstanceContainerGroupDefinitionArn
AttrStatus
The current status of the container fleet.
public virtual string AttrStatus { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Status
BillingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet.
public virtual string BillingType { get; set; }
Property Value
System.String
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
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
DeploymentConfiguration
Set of rules for processing a deployment for a container fleet update.
public virtual object DeploymentConfiguration { get; set; }
Property Value
System.Object
Description
A meaningful description of the container fleet.
public virtual string Description { get; set; }
Property Value
System.String
FleetRoleArn
The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift.
public virtual string FleetRoleArn { get; set; }
Property Value
System.String
GameServerContainerGroupDefinitionName
The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.
public virtual string GameServerContainerGroupDefinitionName { get; set; }
Property Value
System.String
GameServerContainerGroupsPerInstance
The number of times to replicate the game server container group on each fleet instance.
public virtual Nullable<double> GameServerContainerGroupsPerInstance { get; set; }
Property Value
System.Nullable<System.Double>
GameSessionCreationLimitPolicy
A policy that limits the number of game sessions that each individual player can create on instances in this fleet.
public virtual object GameSessionCreationLimitPolicy { get; set; }
Property Value
System.Object
InstanceConnectionPortRange
The set of port numbers to open on each instance in a container fleet.
public virtual object InstanceConnectionPortRange { get; set; }
Property Value
System.Object
InstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.
public virtual object InstanceInboundPermissions { get; set; }
Property Value
System.Object
InstanceType
The Amazon EC2 instance type to use for all instances in the fleet.
public virtual string InstanceType { get; set; }
Property Value
System.String
Locations
public virtual object Locations { get; set; }
Property Value
System.Object
LogConfiguration
The method that is used to collect container logs for the fleet.
public virtual object LogConfiguration { get; set; }
Property Value
System.Object
MetricGroups
The name of an AWS CloudWatch metric group to add this fleet to.
public virtual string[] MetricGroups { get; set; }
Property Value
System.String[]
NewGameSessionProtectionPolicy
Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players.
public virtual string NewGameSessionProtectionPolicy { get; set; }
Property Value
System.String
PerInstanceContainerGroupDefinitionName
The name of the fleet's per-instance container group definition.
public virtual string PerInstanceContainerGroupDefinitionName { get; set; }
Property Value
System.String
ScalingPolicies
A list of rules that control how a fleet is scaled.
public virtual object ScalingPolicies { get; set; }
Property Value
System.Object
Tags
An array of key-value pairs to apply to this resource.
public virtual ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
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>