CfnFleet L1 construct
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const cfnFleet = new gamelift.CfnFleet(this, 'MyCfnFleet', {
name: 'name',
// the properties below are optional
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',
// the properties below are optional
locationCapacity: {
maxSize: 123,
// the properties below are optional
desiredEc2Instances: 123,
managedCapacityConfiguration: {
zeroCapacityStrategy: 'zeroCapacityStrategy',
// the properties below are optional
scaleInAfterInactivityMinutes: 123,
},
minSize: 123,
},
playerGatewayStatus: 'playerGatewayStatus',
}],
logPaths: ['logPaths'],
maxSize: 123,
metricGroups: ['metricGroups'],
minSize: 123,
newGameSessionProtectionPolicy: 'newGameSessionProtectionPolicy',
peerVpcAwsAccountId: 'peerVpcAwsAccountId',
peerVpcId: 'peerVpcId',
playerGatewayConfiguration: {
gameServerIpProtocolSupported: 'gameServerIpProtocolSupported',
},
playerGatewayMode: 'playerGatewayMode',
resourceCreationLimitPolicy: {
newGameSessionsPerCreator: 123,
policyPeriodInMinutes: 123,
},
runtimeConfiguration: {
gameSessionActivationTimeoutSeconds: 123,
maxConcurrentGameSessionActivations: 123,
serverProcesses: [{
concurrentExecutions: 123,
launchPath: 'launchPath',
// the properties below are optional
parameters: 'parameters',
}],
},
scalingPolicies: [{
name: 'name',
// the properties below are optional
comparisonOperator: 'comparisonOperator',
evaluationPeriods: 123,
location: 'location',
metricName: 'metricName',
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',
}],
});
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_gamelift as gamelift
cfn_fleet = gamelift.CfnFleet(self, "MyCfnFleet",
name="name",
# the properties below are optional
anywhere_configuration=gamelift.CfnFleet.AnywhereConfigurationProperty(
cost="cost"
),
apply_capacity="applyCapacity",
build_id="buildId",
certificate_configuration=gamelift.CfnFleet.CertificateConfigurationProperty(
certificate_type="certificateType"
),
compute_type="computeType",
description="description",
desired_ec2_instances=123,
ec2_inbound_permissions=[gamelift.CfnFleet.IpPermissionProperty(
from_port=123,
ip_range="ipRange",
protocol="protocol",
to_port=123
)],
ec2_instance_type="ec2InstanceType",
fleet_type="fleetType",
instance_role_arn="instanceRoleArn",
instance_role_credentials_provider="instanceRoleCredentialsProvider",
locations=[gamelift.CfnFleet.LocationConfigurationProperty(
location="location",
# the properties below are optional
location_capacity=gamelift.CfnFleet.LocationCapacityProperty(
max_size=123,
# the properties below are optional
desired_ec2_instances=123,
managed_capacity_configuration=gamelift.CfnFleet.ManagedCapacityConfigurationProperty(
zero_capacity_strategy="zeroCapacityStrategy",
# the properties below are optional
scale_in_after_inactivity_minutes=123
),
min_size=123
),
player_gateway_status="playerGatewayStatus"
)],
log_paths=["logPaths"],
max_size=123,
metric_groups=["metricGroups"],
min_size=123,
new_game_session_protection_policy="newGameSessionProtectionPolicy",
peer_vpc_aws_account_id="peerVpcAwsAccountId",
peer_vpc_id="peerVpcId",
player_gateway_configuration=gamelift.CfnFleet.PlayerGatewayConfigurationProperty(
game_server_ip_protocol_supported="gameServerIpProtocolSupported"
),
player_gateway_mode="playerGatewayMode",
resource_creation_limit_policy=gamelift.CfnFleet.ResourceCreationLimitPolicyProperty(
new_game_sessions_per_creator=123,
policy_period_in_minutes=123
),
runtime_configuration=gamelift.CfnFleet.RuntimeConfigurationProperty(
game_session_activation_timeout_seconds=123,
max_concurrent_game_session_activations=123,
server_processes=[gamelift.CfnFleet.ServerProcessProperty(
concurrent_executions=123,
launch_path="launchPath",
# the properties below are optional
parameters="parameters"
)]
),
scaling_policies=[gamelift.CfnFleet.ScalingPolicyProperty(
name="name",
# the properties below are optional
comparison_operator="comparisonOperator",
evaluation_periods=123,
location="location",
metric_name="metricName",
policy_type="policyType",
scaling_adjustment=123,
scaling_adjustment_type="scalingAdjustmentType",
status="status",
target_configuration=gamelift.CfnFleet.TargetConfigurationProperty(
target_value=123
),
threshold=123,
update_status="updateStatus"
)],
script_id="scriptId",
server_launch_parameters="serverLaunchParameters",
server_launch_path="serverLaunchPath",
tags=[CfnTag(
key="key",
value="value"
)]
)
// 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.*;
CfnFleet cfnFleet = CfnFleet.Builder.create(this, "MyCfnFleet")
.name("name")
// the properties below are optional
.anywhereConfiguration(AnywhereConfigurationProperty.builder()
.cost("cost")
.build())
.applyCapacity("applyCapacity")
.buildId("buildId")
.certificateConfiguration(CertificateConfigurationProperty.builder()
.certificateType("certificateType")
.build())
.computeType("computeType")
.description("description")
.desiredEc2Instances(123)
.ec2InboundPermissions(List.of(IpPermissionProperty.builder()
.fromPort(123)
.ipRange("ipRange")
.protocol("protocol")
.toPort(123)
.build()))
.ec2InstanceType("ec2InstanceType")
.fleetType("fleetType")
.instanceRoleArn("instanceRoleArn")
.instanceRoleCredentialsProvider("instanceRoleCredentialsProvider")
.locations(List.of(LocationConfigurationProperty.builder()
.location("location")
// the properties below are optional
.locationCapacity(LocationCapacityProperty.builder()
.maxSize(123)
// the properties below are optional
.desiredEc2Instances(123)
.managedCapacityConfiguration(ManagedCapacityConfigurationProperty.builder()
.zeroCapacityStrategy("zeroCapacityStrategy")
// the properties below are optional
.scaleInAfterInactivityMinutes(123)
.build())
.minSize(123)
.build())
.playerGatewayStatus("playerGatewayStatus")
.build()))
.logPaths(List.of("logPaths"))
.maxSize(123)
.metricGroups(List.of("metricGroups"))
.minSize(123)
.newGameSessionProtectionPolicy("newGameSessionProtectionPolicy")
.peerVpcAwsAccountId("peerVpcAwsAccountId")
.peerVpcId("peerVpcId")
.playerGatewayConfiguration(PlayerGatewayConfigurationProperty.builder()
.gameServerIpProtocolSupported("gameServerIpProtocolSupported")
.build())
.playerGatewayMode("playerGatewayMode")
.resourceCreationLimitPolicy(ResourceCreationLimitPolicyProperty.builder()
.newGameSessionsPerCreator(123)
.policyPeriodInMinutes(123)
.build())
.runtimeConfiguration(RuntimeConfigurationProperty.builder()
.gameSessionActivationTimeoutSeconds(123)
.maxConcurrentGameSessionActivations(123)
.serverProcesses(List.of(ServerProcessProperty.builder()
.concurrentExecutions(123)
.launchPath("launchPath")
// the properties below are optional
.parameters("parameters")
.build()))
.build())
.scalingPolicies(List.of(ScalingPolicyProperty.builder()
.name("name")
// the properties below are optional
.comparisonOperator("comparisonOperator")
.evaluationPeriods(123)
.location("location")
.metricName("metricName")
.policyType("policyType")
.scalingAdjustment(123)
.scalingAdjustmentType("scalingAdjustmentType")
.status("status")
.targetConfiguration(TargetConfigurationProperty.builder()
.targetValue(123)
.build())
.threshold(123)
.updateStatus("updateStatus")
.build()))
.scriptId("scriptId")
.serverLaunchParameters("serverLaunchParameters")
.serverLaunchPath("serverLaunchPath")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnFleet = new CfnFleet(this, "MyCfnFleet", new CfnFleetProps {
Name = "name",
// the properties below are optional
AnywhereConfiguration = new AnywhereConfigurationProperty {
Cost = "cost"
},
ApplyCapacity = "applyCapacity",
BuildId = "buildId",
CertificateConfiguration = new CertificateConfigurationProperty {
CertificateType = "certificateType"
},
ComputeType = "computeType",
Description = "description",
DesiredEc2Instances = 123,
Ec2InboundPermissions = new [] { new IpPermissionProperty {
FromPort = 123,
IpRange = "ipRange",
Protocol = "protocol",
ToPort = 123
} },
Ec2InstanceType = "ec2InstanceType",
FleetType = "fleetType",
InstanceRoleArn = "instanceRoleArn",
InstanceRoleCredentialsProvider = "instanceRoleCredentialsProvider",
Locations = new [] { new LocationConfigurationProperty {
Location = "location",
// the properties below are optional
LocationCapacity = new LocationCapacityProperty {
MaxSize = 123,
// the properties below are optional
DesiredEc2Instances = 123,
ManagedCapacityConfiguration = new ManagedCapacityConfigurationProperty {
ZeroCapacityStrategy = "zeroCapacityStrategy",
// the properties below are optional
ScaleInAfterInactivityMinutes = 123
},
MinSize = 123
},
PlayerGatewayStatus = "playerGatewayStatus"
} },
LogPaths = new [] { "logPaths" },
MaxSize = 123,
MetricGroups = new [] { "metricGroups" },
MinSize = 123,
NewGameSessionProtectionPolicy = "newGameSessionProtectionPolicy",
PeerVpcAwsAccountId = "peerVpcAwsAccountId",
PeerVpcId = "peerVpcId",
PlayerGatewayConfiguration = new PlayerGatewayConfigurationProperty {
GameServerIpProtocolSupported = "gameServerIpProtocolSupported"
},
PlayerGatewayMode = "playerGatewayMode",
ResourceCreationLimitPolicy = new ResourceCreationLimitPolicyProperty {
NewGameSessionsPerCreator = 123,
PolicyPeriodInMinutes = 123
},
RuntimeConfiguration = new RuntimeConfigurationProperty {
GameSessionActivationTimeoutSeconds = 123,
MaxConcurrentGameSessionActivations = 123,
ServerProcesses = new [] { new ServerProcessProperty {
ConcurrentExecutions = 123,
LaunchPath = "launchPath",
// the properties below are optional
Parameters = "parameters"
} }
},
ScalingPolicies = new [] { new ScalingPolicyProperty {
Name = "name",
// the properties below are optional
ComparisonOperator = "comparisonOperator",
EvaluationPeriods = 123,
Location = "location",
MetricName = "metricName",
PolicyType = "policyType",
ScalingAdjustment = 123,
ScalingAdjustmentType = "scalingAdjustmentType",
Status = "status",
TargetConfiguration = new TargetConfigurationProperty {
TargetValue = 123
},
Threshold = 123,
UpdateStatus = "updateStatus"
} },
ScriptId = "scriptId",
ServerLaunchParameters = "serverLaunchParameters",
ServerLaunchPath = "serverLaunchPath",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnFleet := awscdk.Aws_gamelift.NewCfnFleet(this, jsii.String("MyCfnFleet"), &CfnFleetProps{
Name: jsii.String("name"),
// the properties below are optional
AnywhereConfiguration: &AnywhereConfigurationProperty{
Cost: jsii.String("cost"),
},
ApplyCapacity: jsii.String("applyCapacity"),
BuildId: jsii.String("buildId"),
CertificateConfiguration: &CertificateConfigurationProperty{
CertificateType: jsii.String("certificateType"),
},
ComputeType: jsii.String("computeType"),
Description: jsii.String("description"),
DesiredEc2Instances: jsii.Number(123),
Ec2InboundPermissions: []interface{}{
&IpPermissionProperty{
FromPort: jsii.Number(123),
IpRange: jsii.String("ipRange"),
Protocol: jsii.String("protocol"),
ToPort: jsii.Number(123),
},
},
Ec2InstanceType: jsii.String("ec2InstanceType"),
FleetType: jsii.String("fleetType"),
InstanceRoleArn: jsii.String("instanceRoleArn"),
InstanceRoleCredentialsProvider: jsii.String("instanceRoleCredentialsProvider"),
Locations: []interface{}{
&LocationConfigurationProperty{
Location: jsii.String("location"),
// the properties below are optional
LocationCapacity: &LocationCapacityProperty{
MaxSize: jsii.Number(123),
// the properties below are optional
DesiredEc2Instances: jsii.Number(123),
ManagedCapacityConfiguration: &ManagedCapacityConfigurationProperty{
ZeroCapacityStrategy: jsii.String("zeroCapacityStrategy"),
// the properties below are optional
ScaleInAfterInactivityMinutes: jsii.Number(123),
},
MinSize: jsii.Number(123),
},
PlayerGatewayStatus: jsii.String("playerGatewayStatus"),
},
},
LogPaths: []*string{
jsii.String("logPaths"),
},
MaxSize: jsii.Number(123),
MetricGroups: []*string{
jsii.String("metricGroups"),
},
MinSize: jsii.Number(123),
NewGameSessionProtectionPolicy: jsii.String("newGameSessionProtectionPolicy"),
PeerVpcAwsAccountId: jsii.String("peerVpcAwsAccountId"),
PeerVpcId: jsii.String("peerVpcId"),
PlayerGatewayConfiguration: &PlayerGatewayConfigurationProperty{
GameServerIpProtocolSupported: jsii.String("gameServerIpProtocolSupported"),
},
PlayerGatewayMode: jsii.String("playerGatewayMode"),
ResourceCreationLimitPolicy: &ResourceCreationLimitPolicyProperty{
NewGameSessionsPerCreator: jsii.Number(123),
PolicyPeriodInMinutes: jsii.Number(123),
},
RuntimeConfiguration: &RuntimeConfigurationProperty{
GameSessionActivationTimeoutSeconds: jsii.Number(123),
MaxConcurrentGameSessionActivations: jsii.Number(123),
ServerProcesses: []interface{}{
&ServerProcessProperty{
ConcurrentExecutions: jsii.Number(123),
LaunchPath: jsii.String("launchPath"),
// the properties below are optional
Parameters: jsii.String("parameters"),
},
},
},
ScalingPolicies: []interface{}{
&ScalingPolicyProperty{
Name: jsii.String("name"),
// the properties below are optional
ComparisonOperator: jsii.String("comparisonOperator"),
EvaluationPeriods: jsii.Number(123),
Location: jsii.String("location"),
MetricName: jsii.String("metricName"),
PolicyType: jsii.String("policyType"),
ScalingAdjustment: jsii.Number(123),
ScalingAdjustmentType: jsii.String("scalingAdjustmentType"),
Status: jsii.String("status"),
TargetConfiguration: &TargetConfigurationProperty{
TargetValue: jsii.Number(123),
},
Threshold: jsii.Number(123),
UpdateStatus: jsii.String("updateStatus"),
},
},
ScriptId: jsii.String("scriptId"),
ServerLaunchParameters: jsii.String("serverLaunchParameters"),
ServerLaunchPath: jsii.String("serverLaunchPath"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
})
Initializer
new CfnFleet(scope: Construct, id: string, props: CfnFleetProps)
CfnFleet(scope: Construct, id: str, props: CfnFleetProps)
new CfnFleet(Construct scope, String id, CfnFleetProps props)
new CfnFleet(Construct scope, string id, CfnFleetProps props)
NewCfnFleet(Scope Construct, Id *string, Props CfnFleetProps)
Construct Props
anywhereConfigurationoptionalIResolvable | CfnFleet.AnywhereConfigurationPropertyanywhere_configurationoptionaltyping.Union[IResolvable, AnywhereConfigurationProperty]anywhereConfigurationoptionalIResolvableAnywhereConfigurationoptionalIResolvableAnywhereConfigurationoptionalinterface{}#applyCapacityoptionalstringapply_capacityoptionalstrapplyCapacityoptionalStringApplyCapacityoptionalstringApplyCapacityoptional*string#notes
For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
Returned by: DescribeFleetCapacity , DescribeFleetLocationCapacity , UpdateFleetCapacity
buildIdoptionalstringbuild_idoptionalstrbuildIdoptionalStringBuildIdoptionalstringBuildIdoptional*string#notes
If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.
certificateConfigurationoptionalIResolvable | CfnFleet.CertificateConfigurationPropertycertificate_configurationoptionaltyping.Union[IResolvable, CertificateConfigurationProperty]certificateConfigurationoptionalIResolvableCertificateConfigurationoptionalIResolvableCertificateConfigurationoptionalinterface{}#notes
Amazon GameLift Servers uses the certificates to encrypt traffic between game clients and the game servers running on Amazon GameLift Servers. By default, the CertificateConfiguration is DISABLED . You can't change this property after you create the fleet.
Certificate Manager (ACM) certificates expire after 13 months. Certificate expiration can cause fleets to fail, preventing players from connecting to instances in the fleet. We recommend you replace fleets before 13 months, consider using fleet aliases for a smooth transition.
ACM isn't available in all AWS regions. A fleet creation request with certificate generation enabled in an unsupported Region, fails with a 4xx error. For more information about the supported Regions, see Supported Regions in the Certificate Manager User Guide .
computeTypeoptionalstringcompute_typeoptionalstrcomputeTypeoptionalStringComputeTypeoptionalstringComputeTypeoptional*string#notes
EC2– The game server build is deployed to Amazon EC2 instances for cloud hosting. This is the default setting.ANYWHERE– Game servers and supporting software are deployed to compute resources that you provide and manage. With this compute type, you can also set theAnywhereConfigurationparameter.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#desiredEc2Instancesoptionalnumberdesired_ec2_instancesoptionalint | floatdesiredEc2InstancesoptionalNumberDesiredEc2InstancesoptionaldoubleDesiredEc2Instancesoptional*float64deprecated#When creating a new fleet, GameLift automatically sets this value to "1" and initiates a single instance. Once the fleet is active, update this value to trigger GameLift to add or remove instances from the fleet.
ec2InboundPermissionsoptionalIResolvable | IResolvable | CfnFleet.IpPermissionProperty[]ec2_inbound_permissionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IpPermissionProperty]]]ec2InboundPermissionsoptionalIResolvableEc2InboundPermissionsoptionalIResolvableEc2InboundPermissionsoptionalinterface{}#notes
Set this parameter for managed EC2 fleets. You can leave this parameter empty when creating the fleet, but you must call to set it before players can connect to game sessions. As a best practice, we recommend opening ports for remote access only when you need them and closing them when you're finished. For Amazon GameLift Servers Realtime fleets, Amazon GameLift Servers automatically sets TCP and UDP ranges.
ec2InstanceTypeoptionalstringec2_instance_typeoptionalstrec2InstanceTypeoptionalStringEc2InstanceTypeoptionalstringEc2InstanceTypeoptional*string#notes
Instance type determines the computing resources that will be used to host your game servers, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions of Amazon EC2 instance types.
fleetTypeoptionalstringfleet_typeoptionalstrfleetTypeoptionalStringFleetTypeoptionalstringFleetTypeoptional*string#notes
By default, this property is set to ON_DEMAND . Learn more about when to use On-Demand versus Spot Instances . This fleet property can't be changed after the fleet is created.
instanceRoleArnoptionalstringinstance_role_arnoptionalstrinstanceRoleArnoptionalStringInstanceRoleArnoptionalstringInstanceRoleArnoptional*string#notes
With an instance role ARN set, any application that runs on an instance in this fleet can assume the role, including install scripts, server processes, and daemons (background processes). Create a role or look up a role's ARN by using the IAM dashboard in the AWS Management Console . Learn more about using on-box credentials for your game servers at Access external resources from a game server . This attribute is used with fleets where ComputeType is EC2 .
instanceRoleCredentialsProvideroptionalstringinstance_role_credentials_provideroptionalstrinstanceRoleCredentialsProvideroptionalStringInstanceRoleCredentialsProvideroptionalstringInstanceRoleCredentialsProvideroptional*string#notes
Shared credentials allow applications that are deployed with the game server executable to communicate with other AWS resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see Communicate with other AWS resources from your fleets . This attribute is used with fleets where ComputeType is EC2 .
locationsoptionalIResolvable | IResolvable | CfnFleet.LocationConfigurationProperty[]locationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LocationConfigurationProperty]]]locationsoptionalIResolvableLocationsoptionalIResolvableLocationsoptionalinterface{}#notes
Use this parameter when creating a fleet in AWS Regions that support multiple locations. You can add any AWS Region or Local Zone that's supported by Amazon GameLift Servers. Provide a list of one or more AWS Region codes, such as us-west-2 , or Local Zone names. When using this parameter, Amazon GameLift Servers requires you to include your home location in the request. For a list of supported Regions and Local Zones, see Amazon GameLift Servers service locations for managed hosting.
logPathsoptionalstring[]log_pathsoptionaltyping.List[str]logPathsoptionalList<String>LogPathsoptionalstring[]LogPathsoptional*[]*stringdeprecated#When hosting a custom game build, specify where Amazon GameLift should store log files using the Amazon GameLift server API call ProcessReady()
maxSizeoptionalnumbermax_sizeoptionalint | floatmaxSizeoptionalNumberMaxSizeoptionaldoubleMaxSizeoptional*float64deprecated#When creating a new fleet, GameLift automatically sets this value to "1". Once the fleet is active, you can change this value.
metricGroupsoptionalstring[]metric_groupsoptionaltyping.List[str]metricGroupsoptionalList<String>MetricGroupsoptionalstring[]MetricGroupsoptional*[]*string#A metric group is used to aggregate the metrics for multiple fleets. You can specify an existing metric group name or set a new name to create a new metric group. A fleet can be included in only one metric group at a time.
minSizeoptionalnumbermin_sizeoptionalint | floatminSizeoptionalNumberMinSizeoptionaldoubleMinSizeoptional*float64deprecated#When creating a new fleet, GameLift automatically sets this value to "0". After the fleet is active, you can change this value.
Fleet names do not need to be unique.
newGameSessionProtectionPolicyoptionalstringnew_game_session_protection_policyoptionalstrnewGameSessionProtectionPolicyoptionalStringNewGameSessionProtectionPolicyoptionalstringNewGameSessionProtectionPolicyoptional*string#notes
By default, this property is set to NoProtection .
- NoProtection - Game sessions can be terminated during active gameplay as a result of a scale-down event.
- FullProtection - Game sessions in
ACTIVEstatus cannot be terminated during a scale-down event.
peerVpcAwsAccountIdoptionalstringpeer_vpc_aws_account_idoptionalstrpeerVpcAwsAccountIdoptionalStringPeerVpcAwsAccountIdoptionalstringPeerVpcAwsAccountIdoptional*string#You can find your account ID in the AWS Management Console under account settings.
peerVpcIdoptionalstringpeer_vpc_idoptionalstrpeerVpcIdoptionalStringPeerVpcIdoptionalstringPeerVpcIdoptional*string#notes
The VPC must be in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the AWS Management Console . Learn more about VPC peering in VPC Peering with Amazon GameLift Servers Fleets .
playerGatewayConfigurationoptionalIResolvable | CfnFleet.PlayerGatewayConfigurationPropertyplayer_gateway_configurationoptionaltyping.Union[IResolvable, PlayerGatewayConfigurationProperty]playerGatewayConfigurationoptionalIResolvablePlayerGatewayConfigurationoptionalIResolvablePlayerGatewayConfigurationoptionalinterface{}#playerGatewayModeoptionalstringplayer_gateway_modeoptionalstrplayerGatewayModeoptionalStringPlayerGatewayModeoptionalstringPlayerGatewayModeoptional*string#resourceCreationLimitPolicyoptionalIResolvable | CfnFleet.ResourceCreationLimitPolicyPropertyresource_creation_limit_policyoptionaltyping.Union[IResolvable, ResourceCreationLimitPolicyProperty]resourceCreationLimitPolicyoptionalIResolvableResourceCreationLimitPolicyoptionalIResolvableResourceCreationLimitPolicyoptionalinterface{}#runtimeConfigurationoptionalIResolvable | CfnFleet.RuntimeConfigurationPropertyruntime_configurationoptionaltyping.Union[IResolvable, RuntimeConfigurationProperty]runtimeConfigurationoptionalIResolvableRuntimeConfigurationoptionalIResolvableRuntimeConfigurationoptionalinterface{}#notes
The runtime configuration defines one or more server process configurations, each identifying a build executable or Realtime script file and the number of processes of that type to run concurrently.
The
RuntimeConfigurationparameter is required unless the fleet is being configured using the older parametersServerLaunchPathandServerLaunchParameters, which are still supported for backward compatibility.
scalingPoliciesoptionalIResolvable | IResolvable | CfnFleet.ScalingPolicyProperty[]scaling_policiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ScalingPolicyProperty]]]scalingPoliciesoptionalIResolvableScalingPoliciesoptionalIResolvableScalingPoliciesoptionalinterface{}#Scaling policies are uniquely identified by the combination of name and fleet ID.
scriptIdoptionalstringscript_idoptionalstrscriptIdoptionalStringScriptIdoptionalstringScriptIdoptional*string#notes
You can use either the script ID or ARN. Scripts must be uploaded to Amazon GameLift Servers prior to creating the fleet. This fleet property cannot be changed later.
You can't use the
!Refcommand to reference a script created with a CloudFormation template for the fleet propertyScriptId. Instead, useFn::GetAtt Script.ArnorFn::GetAtt Script.Idto retrieve either of these properties as input forScriptId. Alternatively, enter aScriptIdstring manually.
serverLaunchParametersoptionalstringserver_launch_parametersoptionalstrserverLaunchParametersoptionalStringServerLaunchParametersoptionalstringServerLaunchParametersoptional*stringdeprecated#Instead, specify server launch parameters in the RuntimeConfiguration parameter. A request must specify either a runtime configuration or values for both ServerLaunchParameters and ServerLaunchPath.
serverLaunchPathoptionalstringserver_launch_pathoptionalstrserverLaunchPathoptionalStringServerLaunchPathoptionalstringServerLaunchPathoptional*stringdeprecated#Instead, specify a server launch path using the RuntimeConfiguration parameter. Requests that specify a server launch path and launch parameters instead of a runtime configuration will continue to work.
Properties
anywhereConfigurationmay be undefinedIResolvable | CfnFleet.AnywhereConfigurationPropertyanywhere_configurationmay be undefinedtyping.Union[IResolvable, AnywhereConfigurationProperty]anywhereConfigurationmay be undefinedIResolvableAnywhereConfigurationmay be undefinedIResolvableAnywhereConfigurationmay be undefinedinterface{}#applyCapacitymay be undefinedstringapply_capacitymay be undefinedstrapplyCapacitymay be undefinedStringApplyCapacitymay be undefinedstringApplyCapacitymay be undefined*string#buildIdmay be undefinedstringbuild_idmay be undefinedstrbuildIdmay be undefinedStringBuildIdmay be undefinedstringBuildIdmay be undefined*string#cdkTagManagerTagManagercdk_tag_managerTagManagercdkTagManagerTagManagerCdkTagManagerTagManagerCdkTagManagerTagManagerrequired#certificateConfigurationmay be undefinedIResolvable | CfnFleet.CertificateConfigurationPropertycertificate_configurationmay be undefinedtyping.Union[IResolvable, CertificateConfigurationProperty]certificateConfigurationmay be undefinedIResolvableCertificateConfigurationmay be undefinedIResolvableCertificateConfigurationmay be undefinedinterface{}#CFN_RESOURCE_TYPE_NAMEstringcfn_resource_type_namestrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*stringrequiredstatic#cfnOptionsICfnResourceOptionscfn_optionsICfnResourceOptionscfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsrequired#cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*stringrequired#computeTypemay be undefinedstringcompute_typemay be undefinedstrcomputeTypemay be undefinedStringComputeTypemay be undefinedstringComputeTypemay be undefined*string#creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*stringrequired#descriptionmay be undefinedstringdescriptionmay be undefinedstrdescriptionmay be undefinedStringDescriptionmay be undefinedstringDescriptionmay be undefined*string#desiredEc2Instancesmay be undefinednumberdesired_ec2_instancesmay be undefinedint | floatdesiredEc2Instancesmay be undefinedNumberDesiredEc2Instancesmay be undefineddoubleDesiredEc2Instancesmay be undefined*float64deprecated#ec2InboundPermissionsmay be undefinedIResolvable | IResolvable | CfnFleet.IpPermissionProperty[]ec2_inbound_permissionsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IpPermissionProperty]]]ec2InboundPermissionsmay be undefinedIResolvableEc2InboundPermissionsmay be undefinedIResolvableEc2InboundPermissionsmay be undefinedinterface{}#ec2InstanceTypemay be undefinedstringec2_instance_typemay be undefinedstrec2InstanceTypemay be undefinedStringEc2InstanceTypemay be undefinedstringEc2InstanceTypemay be undefined*string#fleetRefFleetReferencefleet_refFleetReferencefleetRefFleetReferenceFleetRefFleetReferenceFleetRefFleetReferencerequired#fleetTypemay be undefinedstringfleet_typemay be undefinedstrfleetTypemay be undefinedStringFleetTypemay be undefinedstringFleetTypemay be undefined*string#instanceRoleArnmay be undefinedstringinstance_role_arnmay be undefinedstrinstanceRoleArnmay be undefinedStringInstanceRoleArnmay be undefinedstringInstanceRoleArnmay be undefined*string#instanceRoleCredentialsProvidermay be undefinedstringinstance_role_credentials_providermay be undefinedstrinstanceRoleCredentialsProvidermay be undefinedStringInstanceRoleCredentialsProvidermay be undefinedstringInstanceRoleCredentialsProvidermay be undefined*string#locationsmay be undefinedIResolvable | IResolvable | CfnFleet.LocationConfigurationProperty[]locationsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LocationConfigurationProperty]]]locationsmay be undefinedIResolvableLocationsmay be undefinedIResolvableLocationsmay be undefinedinterface{}#The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use overrideLogicalId(newLogicalId).
logPathsmay be undefinedstring[]log_pathsmay be undefinedtyping.List[str]logPathsmay be undefinedList<String>LogPathsmay be undefinedstring[]LogPathsmay be undefined*[]*stringdeprecated#maxSizemay be undefinednumbermax_sizemay be undefinedint | floatmaxSizemay be undefinedNumberMaxSizemay be undefineddoubleMaxSizemay be undefined*float64deprecated#metricGroupsmay be undefinedstring[]metric_groupsmay be undefinedtyping.List[str]metricGroupsmay be undefinedList<String>MetricGroupsmay be undefinedstring[]MetricGroupsmay be undefined*[]*string#minSizemay be undefinednumbermin_sizemay be undefinedint | floatminSizemay be undefinedNumberMinSizemay be undefineddoubleMinSizemay be undefined*float64deprecated#newGameSessionProtectionPolicymay be undefinedstringnew_game_session_protection_policymay be undefinedstrnewGameSessionProtectionPolicymay be undefinedStringNewGameSessionProtectionPolicymay be undefinedstringNewGameSessionProtectionPolicymay be undefined*string#peerVpcAwsAccountIdmay be undefinedstringpeer_vpc_aws_account_idmay be undefinedstrpeerVpcAwsAccountIdmay be undefinedStringPeerVpcAwsAccountIdmay be undefinedstringPeerVpcAwsAccountIdmay be undefined*string#peerVpcIdmay be undefinedstringpeer_vpc_idmay be undefinedstrpeerVpcIdmay be undefinedStringPeerVpcIdmay be undefinedstringPeerVpcIdmay be undefined*string#playerGatewayConfigurationmay be undefinedIResolvable | CfnFleet.PlayerGatewayConfigurationPropertyplayer_gateway_configurationmay be undefinedtyping.Union[IResolvable, PlayerGatewayConfigurationProperty]playerGatewayConfigurationmay be undefinedIResolvablePlayerGatewayConfigurationmay be undefinedIResolvablePlayerGatewayConfigurationmay be undefinedinterface{}#playerGatewayModemay be undefinedstringplayer_gateway_modemay be undefinedstrplayerGatewayModemay be undefinedStringPlayerGatewayModemay be undefinedstringPlayerGatewayModemay be undefined*string#If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).
resourceCreationLimitPolicymay be undefinedIResolvable | CfnFleet.ResourceCreationLimitPolicyPropertyresource_creation_limit_policymay be undefinedtyping.Union[IResolvable, ResourceCreationLimitPolicyProperty]resourceCreationLimitPolicymay be undefinedIResolvableResourceCreationLimitPolicymay be undefinedIResolvableResourceCreationLimitPolicymay be undefinedinterface{}#runtimeConfigurationmay be undefinedIResolvable | CfnFleet.RuntimeConfigurationPropertyruntime_configurationmay be undefinedtyping.Union[IResolvable, RuntimeConfigurationProperty]runtimeConfigurationmay be undefinedIResolvableRuntimeConfigurationmay be undefinedIResolvableRuntimeConfigurationmay be undefinedinterface{}#scalingPoliciesmay be undefinedIResolvable | IResolvable | CfnFleet.ScalingPolicyProperty[]scaling_policiesmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ScalingPolicyProperty]]]scalingPoliciesmay be undefinedIResolvableScalingPoliciesmay be undefinedIResolvableScalingPoliciesmay be undefinedinterface{}#scriptIdmay be undefinedstringscript_idmay be undefinedstrscriptIdmay be undefinedStringScriptIdmay be undefinedstringScriptIdmay be undefined*string#serverLaunchParametersmay be undefinedstringserver_launch_parametersmay be undefinedstrserverLaunchParametersmay be undefinedStringServerLaunchParametersmay be undefinedstringServerLaunchParametersmay be undefined*stringdeprecated#serverLaunchPathmay be undefinedstringserver_launch_pathmay be undefinedstrserverLaunchPathmay be undefinedStringServerLaunchPathmay be undefinedstringServerLaunchPathmay be undefined*stringdeprecated#CfnElements must be defined within a stack scope (directly or indirectly).
Methods
addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string)#1 parameter
Parameters
pathpathpathpathPath— The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource)deprecated#This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.
addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource)deprecated#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.
addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{})#addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{})#notes · 2 parameters
To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).
If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.
For example,
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
would add the overrides
"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}
The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.
Parameters
pathpathpathpathPath— - The path of the property, you can use dot notation to override values in complex types.valuevaluevaluevalueValue— - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string)#1 parameter
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{})#Syntactic sugar for addOverride("Properties.<...>", value).
2 parameters
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path of the property.valuevaluevaluevalueValue— The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string)#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.
applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.
1 parameter
Parameters
strengthstrengthstrengthstrengthStrength— - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions)#notes
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:
cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string#fromFleetArn(scope: Construct, id: string, arn: string): IFleetRef@staticmethod def from_fleet_arn(scope: Construct, id: str, arn: str) -> IFleetRefpublic static IFleetRef fromFleetArn(Construct scope, String id, String arn)public static IFleetRef FromFleetArn(Construct scope, string id, string arn)func FromFleetArn(Scope Construct, Id *string, Arn *string) IFleetRefstatic#fromFleetId(scope: Construct, id: string, fleetId: string): IFleetRef@staticmethod def from_fleet_id(scope: Construct, id: str, fleet_id: str) -> IFleetRefpublic static IFleetRef fromFleetId(Construct scope, String id, String fleetId)public static IFleetRef FromFleetId(Construct scope, string id, string fleetId)func FromFleetId(Scope Construct, Id *string, FleetId *string) IFleetRefstatic#getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference#Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
1 parameter
Parameters
attributeNameattribute_nameattributeNameattributeNameAttributeName— The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{}#inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector)#1 parameter
Parameters
inspectorinspectorinspectorinspectorInspector— tree inspector to collect and process attributes.
isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *boolstatic#Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.
returns
Returns: The construct as a stack element or undefined if it is not a stack element.
isCfnFleet(x: any): boolean@staticmethod def is_cfn_fleet(x: Any) -> boolpublic static Boolean isCfnFleet(Object x)public static bool IsCfnFleet(object x)func IsCfnFleet(X interface{}) *boolstatic#isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *boolstatic#isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#notes · 1 parameter · returns
Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Construct.
obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{}#For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.
overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string)#1 parameter
Parameters
newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId— The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource)deprecated#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource)#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource)#2 parameters
Parameters
targettargettargettargetTarget— The dependency to replace.newTargetnew_targetnewTargetnewTargetNewTarget— The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#returns
Returns: a string representation of this resource
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.