Class IFleet.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.gamelift.alpha.IFleet.Jsii$Proxy
All Implemented Interfaces:
IResource, IResource.Jsii$Default, IFleet, IFleet.Jsii$Default, IGameSessionQueueDestination, IGameSessionQueueDestination.Jsii$Default, IGrantable, IGrantable.Jsii$Default, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default
Enclosing interface:
IFleet

@Internal public static final class IFleet.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IFleet.Jsii$Default
A proxy class which represents a concrete javascript instance of this type.
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
  • Method Details

    • getNode

      @Stability(Stable) @NotNull public final software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
      Specified by:
      getNode in interface software.constructs.IConstruct.Jsii$Default
      Specified by:
      getNode in interface IFleet.Jsii$Default
      Specified by:
      getNode in interface IResource.Jsii$Default
    • getEnv

      @Stability(Stable) @NotNull public final ResourceEnvironment getEnv()
      The environment this resource belongs to.

      For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.

      Specified by:
      getEnv in interface IFleet.Jsii$Default
      Specified by:
      getEnv in interface IResource
      Specified by:
      getEnv in interface IResource.Jsii$Default
    • getStack

      @Stability(Stable) @NotNull public final Stack getStack()
      The stack in which this resource is defined.
      Specified by:
      getStack in interface IFleet.Jsii$Default
      Specified by:
      getStack in interface IResource
      Specified by:
      getStack in interface IResource.Jsii$Default
    • getGrantPrincipal

      @Stability(Stable) @NotNull public final IPrincipal getGrantPrincipal()
      The principal to grant permissions to.
      Specified by:
      getGrantPrincipal in interface IFleet.Jsii$Default
      Specified by:
      getGrantPrincipal in interface IGrantable
      Specified by:
      getGrantPrincipal in interface IGrantable.Jsii$Default
    • getResourceArnForDestination

      @Stability(Experimental) @NotNull public final String getResourceArnForDestination()
      (experimental) The ARN(s) to put into the destination field for a game session queue.

      This property is for cdk modules to consume only. You should not need to use this property. Instead, use dedicated identifier on each components.

      Specified by:
      getResourceArnForDestination in interface IFleet.Jsii$Default
      Specified by:
      getResourceArnForDestination in interface IGameSessionQueueDestination
      Specified by:
      getResourceArnForDestination in interface IGameSessionQueueDestination.Jsii$Default
    • getFleetArn

      @Stability(Experimental) @NotNull public final String getFleetArn()
      (experimental) The ARN of the fleet.
      Specified by:
      getFleetArn in interface IFleet
      Specified by:
      getFleetArn in interface IFleet.Jsii$Default
    • getFleetId

      @Stability(Experimental) @NotNull public final String getFleetId()
      (experimental) The Identifier of the fleet.
      Specified by:
      getFleetId in interface IFleet
      Specified by:
      getFleetId in interface IFleet.Jsii$Default
    • applyRemovalPolicy

      @Stability(Stable) public final void applyRemovalPolicy(@NotNull RemovalPolicy policy)
      Apply the given removal policy to this resource.

      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).

      Specified by:
      applyRemovalPolicy in interface IFleet.Jsii$Default
      Specified by:
      applyRemovalPolicy in interface IResource
      Specified by:
      applyRemovalPolicy in interface IResource.Jsii$Default
      Parameters:
      policy - This parameter is required.
    • grant

      @Stability(Experimental) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions)
      (experimental) Grant the grantee identity permissions to perform actions.

      Specified by:
      grant in interface IFleet
      Specified by:
      grant in interface IFleet.Jsii$Default
      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • metric

      @Stability(Experimental) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      (experimental) Return the given named metric for this fleet.

      Specified by:
      metric in interface IFleet
      Specified by:
      metric in interface IFleet.Jsii$Default
      Parameters:
      metricName - This parameter is required.
      props -
    • metric

      @Stability(Experimental) @NotNull public final Metric metric(@NotNull String metricName)
      (experimental) Return the given named metric for this fleet.

      Specified by:
      metric in interface IFleet
      Parameters:
      metricName - This parameter is required.
    • metricActiveInstances

      @Stability(Experimental) @NotNull public final Metric metricActiveInstances(@Nullable MetricOptions props)
      (experimental) Instances with ACTIVE status, which means they are running active server processes.

      The count includes idle instances and those that are hosting one or more game sessions. This metric measures current total instance capacity.

      This metric can be used with automatic scaling.

      Specified by:
      metricActiveInstances in interface IFleet
      Specified by:
      metricActiveInstances in interface IFleet.Jsii$Default
      Parameters:
      props -
    • metricActiveInstances

      @Stability(Experimental) @NotNull public final Metric metricActiveInstances()
      (experimental) Instances with ACTIVE status, which means they are running active server processes.

      The count includes idle instances and those that are hosting one or more game sessions. This metric measures current total instance capacity.

      This metric can be used with automatic scaling.

      Specified by:
      metricActiveInstances in interface IFleet
    • metricDesiredInstances

      @Stability(Experimental) @NotNull public final Metric metricDesiredInstances(@Nullable MetricOptions props)
      (experimental) Target number of active instances that GameLift is working to maintain in the fleet.

      With automatic scaling, this value is determined based on the scaling policies currently in force. Without automatic scaling, this value is set manually. This metric is not available when viewing data for fleet metric groups.

      Specified by:
      metricDesiredInstances in interface IFleet
      Specified by:
      metricDesiredInstances in interface IFleet.Jsii$Default
      Parameters:
      props -
    • metricDesiredInstances

      @Stability(Experimental) @NotNull public final Metric metricDesiredInstances()
      (experimental) Target number of active instances that GameLift is working to maintain in the fleet.

      With automatic scaling, this value is determined based on the scaling policies currently in force. Without automatic scaling, this value is set manually. This metric is not available when viewing data for fleet metric groups.

      Specified by:
      metricDesiredInstances in interface IFleet
    • metricIdleInstances

      @Stability(Experimental) @NotNull public final Metric metricIdleInstances(@Nullable MetricOptions props)
      (experimental) Active instances that are currently hosting zero (0) game sessions.

      This metric measures capacity that is available but unused. This metric can be used with automatic scaling.

      Specified by:
      metricIdleInstances in interface IFleet
      Specified by:
      metricIdleInstances in interface IFleet.Jsii$Default
      Parameters:
      props -
    • metricIdleInstances

      @Stability(Experimental) @NotNull public final Metric metricIdleInstances()
      (experimental) Active instances that are currently hosting zero (0) game sessions.

      This metric measures capacity that is available but unused. This metric can be used with automatic scaling.

      Specified by:
      metricIdleInstances in interface IFleet
    • metricInstanceInterruptions

      @Stability(Experimental) @NotNull public final Metric metricInstanceInterruptions(@Nullable MetricOptions props)
      (experimental) Number of spot instances that have been interrupted.

      Specified by:
      metricInstanceInterruptions in interface IFleet
      Specified by:
      metricInstanceInterruptions in interface IFleet.Jsii$Default
      Parameters:
      props -
    • metricInstanceInterruptions

      @Stability(Experimental) @NotNull public final Metric metricInstanceInterruptions()
      (experimental) Number of spot instances that have been interrupted.
      Specified by:
      metricInstanceInterruptions in interface IFleet
    • metricMaxInstances

      @Stability(Experimental) @NotNull public final Metric metricMaxInstances(@Nullable MetricOptions props)
      (experimental) Maximum number of instances that are allowed for the fleet.

      A fleet's instance maximum determines the capacity ceiling during manual or automatic scaling up. This metric is not available when viewing data for fleet metric groups.

      Specified by:
      metricMaxInstances in interface IFleet
      Specified by:
      metricMaxInstances in interface IFleet.Jsii$Default
      Parameters:
      props -
    • metricMaxInstances

      @Stability(Experimental) @NotNull public final Metric metricMaxInstances()
      (experimental) Maximum number of instances that are allowed for the fleet.

      A fleet's instance maximum determines the capacity ceiling during manual or automatic scaling up. This metric is not available when viewing data for fleet metric groups.

      Specified by:
      metricMaxInstances in interface IFleet
    • metricMinInstances

      @Stability(Experimental) @NotNull public final Metric metricMinInstances(@Nullable MetricOptions props)
      (experimental) Minimum number of instances allowed for the fleet.

      A fleet's instance minimum determines the capacity floor during manual or automatic scaling down. This metric is not available when viewing data for fleet metric groups.

      Specified by:
      metricMinInstances in interface IFleet
      Specified by:
      metricMinInstances in interface IFleet.Jsii$Default
      Parameters:
      props -
    • metricMinInstances

      @Stability(Experimental) @NotNull public final Metric metricMinInstances()
      (experimental) Minimum number of instances allowed for the fleet.

      A fleet's instance minimum determines the capacity floor during manual or automatic scaling down. This metric is not available when viewing data for fleet metric groups.

      Specified by:
      metricMinInstances in interface IFleet
    • metricPercentIdleInstances

      @Stability(Experimental) @NotNull public final Metric metricPercentIdleInstances(@Nullable MetricOptions props)
      (experimental) Percentage of all active instances that are idle (calculated as IdleInstances / ActiveInstances).

      This metric can be used for automatic scaling.

      Specified by:
      metricPercentIdleInstances in interface IFleet
      Specified by:
      metricPercentIdleInstances in interface IFleet.Jsii$Default
      Parameters:
      props -
    • metricPercentIdleInstances

      @Stability(Experimental) @NotNull public final Metric metricPercentIdleInstances()
      (experimental) Percentage of all active instances that are idle (calculated as IdleInstances / ActiveInstances).

      This metric can be used for automatic scaling.

      Specified by:
      metricPercentIdleInstances in interface IFleet