Interface CfnFleetProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnFleetProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:12:58.827Z") @Stability(Stable) public interface CfnFleetProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnFleet.

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.*;
 CfnFleetProps cfnFleetProps = CfnFleetProps.builder()
         .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")
         .containerGroupsConfiguration(ContainerGroupsConfigurationProperty.builder()
                 .connectionPortRange(ConnectionPortRangeProperty.builder()
                         .fromPort(123)
                         .toPort(123)
                         .build())
                 .containerGroupDefinitionNames(List.of("containerGroupDefinitionNames"))
                 // the properties below are optional
                 .containerGroupsPerInstance(ContainerGroupsPerInstanceProperty.builder()
                         .desiredReplicaContainerGroupsPerInstance(123)
                         .maxReplicaContainerGroupsPerInstance(123)
                         .build())
                 .build())
         .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()
                         .desiredEc2Instances(123)
                         .maxSize(123)
                         .minSize(123)
                         .build())
                 .build()))
         .logPaths(List.of("logPaths"))
         .maxSize(123)
         .metricGroups(List.of("metricGroups"))
         .minSize(123)
         .newGameSessionProtectionPolicy("newGameSessionProtectionPolicy")
         .peerVpcAwsAccountId("peerVpcAwsAccountId")
         .peerVpcId("peerVpcId")
         .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()
                 .metricName("metricName")
                 .name("name")
                 // the properties below are optional
                 .comparisonOperator("comparisonOperator")
                 .evaluationPeriods(123)
                 .location("location")
                 .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")
         .build();
 

See Also: