Class: AWSCDK::Sagemaker::CfnInferenceComponent::InferenceComponentDeploymentConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceComponent::InferenceComponentDeploymentConfigProperty
- Defined in:
- sagemaker/cfn_inference_component.rb
Overview
The deployment configuration for an endpoint that hosts inference components.
The configuration includes the desired deployment strategy and rollback settings.
Instance Attribute Summary collapse
- #auto_rollback_configuration ⇒ AWSCDK::IResolvable, ... readonly
-
#rolling_update_policy ⇒ AWSCDK::IResolvable, ...
readonly
Specifies a rolling deployment strategy for updating a SageMaker AI endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auto_rollback_configuration: nil, rolling_update_policy: nil) ⇒ InferenceComponentDeploymentConfigProperty
constructor
A new instance of InferenceComponentDeploymentConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auto_rollback_configuration: nil, rolling_update_policy: nil) ⇒ InferenceComponentDeploymentConfigProperty
Returns a new instance of InferenceComponentDeploymentConfigProperty.
972 973 974 975 976 977 |
# File 'sagemaker/cfn_inference_component.rb', line 972 def initialize(auto_rollback_configuration: nil, rolling_update_policy: nil) @auto_rollback_configuration = auto_rollback_configuration.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnInferenceComponent::AutoRollbackConfigurationProperty.new(**auto_rollback_configuration.transform_keys(&:to_sym)) : auto_rollback_configuration Jsii::Type.check_type(@auto_rollback_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuSW5mZXJlbmNlQ29tcG9uZW50LkF1dG9Sb2xsYmFja0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "autoRollbackConfiguration") unless @auto_rollback_configuration.nil? @rolling_update_policy = rolling_update_policy.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnInferenceComponent::InferenceComponentRollingUpdatePolicyProperty.new(**rolling_update_policy.transform_keys(&:to_sym)) : rolling_update_policy Jsii::Type.check_type(@rolling_update_policy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuSW5mZXJlbmNlQ29tcG9uZW50LkluZmVyZW5jZUNvbXBvbmVudFJvbGxpbmdVcGRhdGVQb2xpY3lQcm9wZXJ0eSJ9XX19")), "rollingUpdatePolicy") unless @rolling_update_policy.nil? end |
Instance Attribute Details
#auto_rollback_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
981 982 983 |
# File 'sagemaker/cfn_inference_component.rb', line 981 def auto_rollback_configuration @auto_rollback_configuration end |
#rolling_update_policy ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies a rolling deployment strategy for updating a SageMaker AI endpoint.
986 987 988 |
# File 'sagemaker/cfn_inference_component.rb', line 986 def rolling_update_policy @rolling_update_policy end |
Class Method Details
.jsii_properties ⇒ Object
988 989 990 991 992 993 |
# File 'sagemaker/cfn_inference_component.rb', line 988 def self.jsii_properties { :auto_rollback_configuration => "autoRollbackConfiguration", :rolling_update_policy => "rollingUpdatePolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
995 996 997 998 999 1000 1001 1002 |
# File 'sagemaker/cfn_inference_component.rb', line 995 def to_jsii result = {} result.merge!({ "autoRollbackConfiguration" => @auto_rollback_configuration, "rollingUpdatePolicy" => @rolling_update_policy, }) result.compact end |