Class: AWSCDK::GameLift::CfnContainerFleet::DeploymentConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
game_lift/cfn_container_fleet.rb

Overview

Set of rules for processing a deployment for a container fleet update.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(impairment_strategy: nil, minimum_healthy_percentage: nil, protection_strategy: nil) ⇒ DeploymentConfigurationProperty

Returns a new instance of DeploymentConfigurationProperty.

Parameters:

  • impairment_strategy (String, nil) (defaults to: nil)

    Determines what actions to take if a deployment fails.

  • minimum_healthy_percentage (Numeric, nil) (defaults to: nil)

    Sets a minimum level of healthy tasks to maintain during deployment activity.

  • protection_strategy (String, nil) (defaults to: nil)

    Determines how fleet deployment activity affects active game sessions on the fleet.



882
883
884
885
886
887
888
889
# File 'game_lift/cfn_container_fleet.rb', line 882

def initialize(impairment_strategy: nil, minimum_healthy_percentage: nil, protection_strategy: nil)
  @impairment_strategy = impairment_strategy
  Jsii::Type.check_type(@impairment_strategy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "impairmentStrategy") unless @impairment_strategy.nil?
  @minimum_healthy_percentage = minimum_healthy_percentage
  Jsii::Type.check_type(@minimum_healthy_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minimumHealthyPercentage") unless @minimum_healthy_percentage.nil?
  @protection_strategy = protection_strategy
  Jsii::Type.check_type(@protection_strategy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protectionStrategy") unless @protection_strategy.nil?
end

Instance Attribute Details

#impairment_strategyString? (readonly)

Determines what actions to take if a deployment fails.

If the fleet is multi-location, this strategy applies across all fleet locations. With a rollback strategy, updated fleet instances are rolled back to the last successful deployment. Alternatively, you can maintain a few impaired containers for the purpose of debugging, while all other tasks return to the last successful deployment.



897
898
899
# File 'game_lift/cfn_container_fleet.rb', line 897

def impairment_strategy
  @impairment_strategy
end

#minimum_healthy_percentageNumeric? (readonly)

Sets a minimum level of healthy tasks to maintain during deployment activity.



902
903
904
# File 'game_lift/cfn_container_fleet.rb', line 902

def minimum_healthy_percentage
  @minimum_healthy_percentage
end

#protection_strategyString? (readonly)

Determines how fleet deployment activity affects active game sessions on the fleet.

With protection, a deployment honors game session protection, and delays actions that would interrupt a protected active game session until the game session ends. Without protection, deployment activity can shut down all running tasks, including active game sessions, regardless of game session protection.



909
910
911
# File 'game_lift/cfn_container_fleet.rb', line 909

def protection_strategy
  @protection_strategy
end

Class Method Details

.jsii_propertiesObject



911
912
913
914
915
916
917
# File 'game_lift/cfn_container_fleet.rb', line 911

def self.jsii_properties
  {
    :impairment_strategy => "impairmentStrategy",
    :minimum_healthy_percentage => "minimumHealthyPercentage",
    :protection_strategy => "protectionStrategy",
  }
end

Instance Method Details

#to_jsiiObject



919
920
921
922
923
924
925
926
927
# File 'game_lift/cfn_container_fleet.rb', line 919

def to_jsii
  result = {}
  result.merge!({
    "impairmentStrategy" => @impairment_strategy,
    "minimumHealthyPercentage" => @minimum_healthy_percentage,
    "protectionStrategy" => @protection_strategy,
  })
  result.compact
end