Class CfnContainerFleet
- All Implemented Interfaces:
IInspectable,ITaggableV2,IContainerFleetRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
CfnContainerFleet cfnContainerFleet = CfnContainerFleet.Builder.create(this, "MyCfnContainerFleet")
.fleetRoleArn("fleetRoleArn")
// the properties below are optional
.billingType("billingType")
.deploymentConfiguration(DeploymentConfigurationProperty.builder()
.impairmentStrategy("impairmentStrategy")
.minimumHealthyPercentage(123)
.protectionStrategy("protectionStrategy")
.build())
.description("description")
.gameServerContainerGroupDefinitionName("gameServerContainerGroupDefinitionName")
.gameServerContainerGroupsPerInstance(123)
.gameSessionCreationLimitPolicy(GameSessionCreationLimitPolicyProperty.builder()
.newGameSessionsPerCreator(123)
.policyPeriodInMinutes(123)
.build())
.instanceConnectionPortRange(ConnectionPortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build())
.instanceInboundPermissions(List.of(IpPermissionProperty.builder()
.fromPort(123)
.ipRange("ipRange")
.protocol("protocol")
.toPort(123)
.build()))
.instanceType("instanceType")
.locations(List.of(LocationConfigurationProperty.builder()
.location("location")
// the properties below are optional
.locationCapacity(LocationCapacityProperty.builder()
.maxSize(123)
.minSize(123)
// the properties below are optional
.desiredEc2Instances(123)
.build())
.stoppedActions(List.of("stoppedActions"))
.build()))
.logConfiguration(LogConfigurationProperty.builder()
.logDestination("logDestination")
.logGroupArn("logGroupArn")
.s3BucketName("s3BucketName")
.build())
.metricGroups(List.of("metricGroups"))
.newGameSessionProtectionPolicy("newGameSessionProtectionPolicy")
.perInstanceContainerGroupDefinitionName("perInstanceContainerGroupDefinitionName")
.scalingPolicies(List.of(ScalingPolicyProperty.builder()
.metricName("metricName")
.name("name")
// the properties below are optional
.comparisonOperator("comparisonOperator")
.evaluationPeriods(123)
.policyType("policyType")
.scalingAdjustment(123)
.scalingAdjustmentType("scalingAdjustmentType")
.targetConfiguration(TargetConfigurationProperty.builder()
.targetValue(123)
.build())
.threshold(123)
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnContainerFleet.static interfaceThe set of port numbers to open on each instance in a container fleet.static interfaceSet of rules for processing a deployment for a container fleet update.static interfaceInformation about the most recent deployment for the container fleet.static interfaceA policy that puts limits on the number of game sessions that a player can create within a specified span of time.static interfaceA range of IP addresses and port settings that allow inbound traffic to connect to processes on an instance in a fleet.static interfaceCurrent resource capacity settings in a specified fleet or location.static interfaceA remote location where a multi-location fleet can deploy game servers for game hosting.static interfaceA method for collecting container logs for the fleet.static interfaceRule that controls how a fleet is scaled.static interfaceSettings for a target-based scaling policy.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.IContainerFleetRef
IContainerFleetRef.Jsii$Default, IContainerFleetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnContainerFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnContainerFleet(software.amazon.jsii.JsiiObjectRef objRef) CfnContainerFleet(software.constructs.Construct scope, String id, CfnContainerFleetProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IContainerFleetReffromFleetId(software.constructs.Construct scope, String id, String fleetId) Creates a new IContainerFleetRef from a fleetId.A time stamp indicating when this data object was created.Provides information about the last deployment ID and its status.The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers fleet resource and uniquely identifies it.A unique identifier for the container fleet to retrieve.The Amazon Resource Name ( ARN ) that is assigned to the fleet's game server container group.The calculated maximum number of game server container group that can be deployed on each fleet instance.The Amazon Resource Name ( ARN ) that is assigned to the fleet's per-instance container group.The current status of the container fleet.Indicates whether the fleet uses On-Demand or Spot instances for this fleet.Tag Manager which manages the tags for this resource.A reference to a ContainerFleet resource.Set of rules for processing a deployment for a container fleet update.A meaningful description of the container fleet.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 Servers.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.The number of times to replicate the game server container group on each fleet instance.A policy that limits the number of game sessions that each individual player can create on instances in this fleet.The set of port numbers to open on each instance in a container fleet.The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.The Amazon EC2 instance type to use for all instances in the fleet.Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnContainerFleet.LocationConfigurationProperty>The method that is used to collect container logs for the fleet.The name of an AWS CloudWatch metric group to add this fleet to.Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players.The name of the fleet's per-instance container group definition.A list of rules that control how a fleet is scaled.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetBillingType(String value) Indicates whether the fleet uses On-Demand or Spot instances for this fleet.voidSet of rules for processing a deployment for a container fleet update.voidSet of rules for processing a deployment for a container fleet update.voidsetDescription(String value) A meaningful description of the container fleet.voidsetFleetRoleArn(String value) 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 Servers.voidThe 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.voidThe number of times to replicate the game server container group on each fleet instance.voidA policy that limits the number of game sessions that each individual player can create on instances in this fleet.voidA policy that limits the number of game sessions that each individual player can create on instances in this fleet.voidThe set of port numbers to open on each instance in a container fleet.voidThe set of port numbers to open on each instance in a container fleet.voidsetInstanceInboundPermissions(List<Object> value) The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.voidThe IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.voidsetInstanceType(String value) The Amazon EC2 instance type to use for all instances in the fleet.voidsetLocations(List<Object> value) voidsetLocations(IResolvable value) voidsetLogConfiguration(IResolvable value) The method that is used to collect container logs for the fleet.voidThe method that is used to collect container logs for the fleet.voidsetMetricGroups(List<String> value) The name of an AWS CloudWatch metric group to add this fleet to.voidDetermines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players.voidThe name of the fleet's per-instance container group definition.voidsetScalingPolicies(List<Object> value) A list of rules that control how a fleet is scaled.voidsetScalingPolicies(IResolvable value) A list of rules that control how a fleet is scaled.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnContainerFleet
protected CfnContainerFleet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnContainerFleet
protected CfnContainerFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnContainerFleet
@Stability(Stable) public CfnContainerFleet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnContainerFleetProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromFleetId
@Stability(Stable) @NotNull public static IContainerFleetRef fromFleetId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String fleetId) Creates a new IContainerFleetRef from a fleetId.- Parameters:
scope- This parameter is required.id- This parameter is required.fleetId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
A time stamp indicating when this data object was created.Format is a number expressed in Unix time as milliseconds (for example
"1469498468.057"). -
getAttrDeploymentDetails
Provides information about the last deployment ID and its status. -
getAttrFleetArn
The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912. In a GameLift fleet ARN, the resource ID matches theFleetIdvalue. -
getAttrFleetId
A unique identifier for the container fleet to retrieve. -
getAttrGameServerContainerGroupDefinitionArn
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. -
getAttrMaximumGameServerContainerGroupsPerInstance
The calculated maximum number of game server container group that can be deployed on each fleet instance.The calculation depends on the resource needs of the container group and the CPU and memory resources of the fleet's instance type.
-
getAttrPerInstanceContainerGroupDefinitionArn
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. -
getAttrStatus
The current status of the container fleet.PENDING-- A new container fleet has been requested.CREATING-- A new container fleet resource is being created.CREATED-- A new container fleet resource has been created. No fleet instances have been deployed.ACTIVATING-- New container fleet instances are being deployed.ACTIVE-- The container fleet has been deployed and is ready to host game sessions.UPDATING-- Updates to the container fleet is being updated. A deployment is in progress.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getContainerFleetRef
A reference to a ContainerFleet resource.- Specified by:
getContainerFleetRefin interfaceIContainerFleetRef
-
getFleetRoleArn
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 Servers. -
setFleetRoleArn
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 Servers. -
getBillingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet. -
setBillingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet. -
getDeploymentConfiguration
Set of rules for processing a deployment for a container fleet update.Returns union: either
IResolvableorCfnContainerFleet.DeploymentConfigurationProperty -
setDeploymentConfiguration
Set of rules for processing a deployment for a container fleet update. -
setDeploymentConfiguration
@Stability(Stable) public void setDeploymentConfiguration(@Nullable CfnContainerFleet.DeploymentConfigurationProperty value) Set of rules for processing a deployment for a container fleet update. -
getDescription
A meaningful description of the container fleet. -
setDescription
A meaningful description of the container fleet. -
getGameServerContainerGroupDefinitionName
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. -
setGameServerContainerGroupDefinitionName
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. -
getGameServerContainerGroupsPerInstance
The number of times to replicate the game server container group on each fleet instance. -
setGameServerContainerGroupsPerInstance
The number of times to replicate the game server container group on each fleet instance. -
getGameSessionCreationLimitPolicy
A policy that limits the number of game sessions that each individual player can create on instances in this fleet.Returns union: either
IResolvableorCfnContainerFleet.GameSessionCreationLimitPolicyProperty -
setGameSessionCreationLimitPolicy
A policy that limits the number of game sessions that each individual player can create on instances in this fleet. -
setGameSessionCreationLimitPolicy
@Stability(Stable) public void setGameSessionCreationLimitPolicy(@Nullable CfnContainerFleet.GameSessionCreationLimitPolicyProperty value) A policy that limits the number of game sessions that each individual player can create on instances in this fleet. -
getInstanceConnectionPortRange
The set of port numbers to open on each instance in a container fleet.Returns union: either
IResolvableorCfnContainerFleet.ConnectionPortRangeProperty -
setInstanceConnectionPortRange
The set of port numbers to open on each instance in a container fleet. -
setInstanceConnectionPortRange
@Stability(Stable) public void setInstanceConnectionPortRange(@Nullable CfnContainerFleet.ConnectionPortRangeProperty value) The set of port numbers to open on each instance in a container fleet. -
getInstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnContainerFleet.IpPermissionProperty> -
setInstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. -
setInstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. -
getInstanceType
The Amazon EC2 instance type to use for all instances in the fleet. -
setInstanceType
The Amazon EC2 instance type to use for all instances in the fleet. -
getLocations
Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnContainerFleet.LocationConfigurationProperty> -
setLocations
-
setLocations
-
getLogConfiguration
The method that is used to collect container logs for the fleet.Returns union: either
IResolvableorCfnContainerFleet.LogConfigurationProperty -
setLogConfiguration
The method that is used to collect container logs for the fleet. -
setLogConfiguration
@Stability(Stable) public void setLogConfiguration(@Nullable CfnContainerFleet.LogConfigurationProperty value) The method that is used to collect container logs for the fleet. -
getMetricGroups
The name of an AWS CloudWatch metric group to add this fleet to. -
setMetricGroups
The name of an AWS CloudWatch metric group to add this fleet to. -
getNewGameSessionProtectionPolicy
Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. -
setNewGameSessionProtectionPolicy
Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. -
getPerInstanceContainerGroupDefinitionName
The name of the fleet's per-instance container group definition. -
setPerInstanceContainerGroupDefinitionName
The name of the fleet's per-instance container group definition. -
getScalingPolicies
A list of rules that control how a fleet is scaled.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnContainerFleet.ScalingPolicyProperty> -
setScalingPolicies
A list of rules that control how a fleet is scaled. -
setScalingPolicies
A list of rules that control how a fleet is scaled. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-