Class Ec2Fleet

  • All Implemented Interfaces:
    com.hashicorp.cdktf.IInterpolatingParent, com.hashicorp.cdktf.ITerraformAddressable, com.hashicorp.cdktf.ITerraformDependable, com.hashicorp.cdktf.ITerraformResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
               date="2023-06-30T04:56:52.725Z")
    @Stability(Stable)
    public class Ec2Fleet
    extends com.hashicorp.cdktf.TerraformResource
    Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ec2_fleet aws_ec2_fleet}.
    • Field Detail

      • TF_RESOURCE_TYPE

        @Stability(Stable)
        public static final String TF_RESOURCE_TYPE
    • Constructor Detail

      • Ec2Fleet

        protected Ec2Fleet​(software.amazon.jsii.JsiiObjectRef objRef)
      • Ec2Fleet

        protected Ec2Fleet​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • Ec2Fleet

        @Stability(Stable)
        public Ec2Fleet​(@NotNull
                        software.constructs.Construct scope,
                        @NotNull
                        String id,
                        @NotNull
                        Ec2FleetConfig config)
        Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ec2_fleet aws_ec2_fleet} Resource.

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        config - This parameter is required.
    • Method Detail

      • putFleetInstanceSet

        @Stability(Stable)
        public void putFleetInstanceSet​(@NotNull
                                        Object value)
        Parameters:
        value - This parameter is required.
      • putLaunchTemplateConfig

        @Stability(Stable)
        public void putLaunchTemplateConfig​(@NotNull
                                            Object value)
        Parameters:
        value - This parameter is required.
      • putOnDemandOptions

        @Stability(Stable)
        public void putOnDemandOptions​(@NotNull
                                       Ec2FleetOnDemandOptions value)
        Parameters:
        value - This parameter is required.
      • putSpotOptions

        @Stability(Stable)
        public void putSpotOptions​(@NotNull
                                   Ec2FleetSpotOptions value)
        Parameters:
        value - This parameter is required.
      • putTargetCapacitySpecification

        @Stability(Stable)
        public void putTargetCapacitySpecification​(@NotNull
                                                   Ec2FleetTargetCapacitySpecification value)
        Parameters:
        value - This parameter is required.
      • putTimeouts

        @Stability(Stable)
        public void putTimeouts​(@NotNull
                                Ec2FleetTimeouts value)
        Parameters:
        value - This parameter is required.
      • resetContext

        @Stability(Stable)
        public void resetContext()
      • resetExcessCapacityTerminationPolicy

        @Stability(Stable)
        public void resetExcessCapacityTerminationPolicy()
      • resetFleetInstanceSet

        @Stability(Stable)
        public void resetFleetInstanceSet()
      • resetFleetState

        @Stability(Stable)
        public void resetFleetState()
      • resetFulfilledCapacity

        @Stability(Stable)
        public void resetFulfilledCapacity()
      • resetFulfilledOnDemandCapacity

        @Stability(Stable)
        public void resetFulfilledOnDemandCapacity()
      • resetId

        @Stability(Stable)
        public void resetId()
      • resetOnDemandOptions

        @Stability(Stable)
        public void resetOnDemandOptions()
      • resetReplaceUnhealthyInstances

        @Stability(Stable)
        public void resetReplaceUnhealthyInstances()
      • resetSpotOptions

        @Stability(Stable)
        public void resetSpotOptions()
      • resetTags

        @Stability(Stable)
        public void resetTags()
      • resetTagsAll

        @Stability(Stable)
        public void resetTagsAll()
      • resetTerminateInstances

        @Stability(Stable)
        public void resetTerminateInstances()
      • resetTerminateInstancesWithExpiration

        @Stability(Stable)
        public void resetTerminateInstancesWithExpiration()
      • resetTimeouts

        @Stability(Stable)
        public void resetTimeouts()
      • resetType

        @Stability(Stable)
        public void resetType()
      • resetValidFrom

        @Stability(Stable)
        public void resetValidFrom()
      • resetValidUntil

        @Stability(Stable)
        public void resetValidUntil()
      • synthesizeAttributes

        @Stability(Stable)
        @NotNull
        protected Map<String,​Object> synthesizeAttributes()
        Overrides:
        synthesizeAttributes in class com.hashicorp.cdktf.TerraformResource
      • getArn

        @Stability(Stable)
        @NotNull
        public String getArn()
      • getContextInput

        @Stability(Stable)
        @Nullable
        public String getContextInput()
      • getExcessCapacityTerminationPolicyInput

        @Stability(Stable)
        @Nullable
        public String getExcessCapacityTerminationPolicyInput()
      • getFleetInstanceSetInput

        @Stability(Stable)
        @Nullable
        public Object getFleetInstanceSetInput()
      • getFleetStateInput

        @Stability(Stable)
        @Nullable
        public String getFleetStateInput()
      • getFulfilledCapacityInput

        @Stability(Stable)
        @Nullable
        public Number getFulfilledCapacityInput()
      • getFulfilledOnDemandCapacityInput

        @Stability(Stable)
        @Nullable
        public Number getFulfilledOnDemandCapacityInput()
      • getIdInput

        @Stability(Stable)
        @Nullable
        public String getIdInput()
      • getLaunchTemplateConfigInput

        @Stability(Stable)
        @Nullable
        public Object getLaunchTemplateConfigInput()
      • getReplaceUnhealthyInstancesInput

        @Stability(Stable)
        @Nullable
        public Object getReplaceUnhealthyInstancesInput()
      • getSpotOptionsInput

        @Stability(Stable)
        @Nullable
        public Ec2FleetSpotOptions getSpotOptionsInput()
      • getTagsAllInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getTagsAllInput()
      • getTagsInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getTagsInput()
      • getTerminateInstancesInput

        @Stability(Stable)
        @Nullable
        public Object getTerminateInstancesInput()
      • getTerminateInstancesWithExpirationInput

        @Stability(Stable)
        @Nullable
        public Object getTerminateInstancesWithExpirationInput()
      • getTimeoutsInput

        @Stability(Stable)
        @Nullable
        public Object getTimeoutsInput()
      • getTypeInput

        @Stability(Stable)
        @Nullable
        public String getTypeInput()
      • getValidFromInput

        @Stability(Stable)
        @Nullable
        public String getValidFromInput()
      • getValidUntilInput

        @Stability(Stable)
        @Nullable
        public String getValidUntilInput()
      • getContext

        @Stability(Stable)
        @NotNull
        public String getContext()
      • setContext

        @Stability(Stable)
        public void setContext​(@NotNull
                               String value)
      • getExcessCapacityTerminationPolicy

        @Stability(Stable)
        @NotNull
        public String getExcessCapacityTerminationPolicy()
      • setExcessCapacityTerminationPolicy

        @Stability(Stable)
        public void setExcessCapacityTerminationPolicy​(@NotNull
                                                       String value)
      • getFleetState

        @Stability(Stable)
        @NotNull
        public String getFleetState()
      • setFleetState

        @Stability(Stable)
        public void setFleetState​(@NotNull
                                  String value)
      • getFulfilledCapacity

        @Stability(Stable)
        @NotNull
        public Number getFulfilledCapacity()
      • setFulfilledCapacity

        @Stability(Stable)
        public void setFulfilledCapacity​(@NotNull
                                         Number value)
      • getFulfilledOnDemandCapacity

        @Stability(Stable)
        @NotNull
        public Number getFulfilledOnDemandCapacity()
      • setFulfilledOnDemandCapacity

        @Stability(Stable)
        public void setFulfilledOnDemandCapacity​(@NotNull
                                                 Number value)
      • getId

        @Stability(Stable)
        @NotNull
        public String getId()
      • setId

        @Stability(Stable)
        public void setId​(@NotNull
                          String value)
      • getReplaceUnhealthyInstances

        @Stability(Stable)
        @NotNull
        public Object getReplaceUnhealthyInstances()
      • setReplaceUnhealthyInstances

        @Stability(Stable)
        public void setReplaceUnhealthyInstances​(@NotNull
                                                 Boolean value)
      • setReplaceUnhealthyInstances

        @Stability(Stable)
        public void setReplaceUnhealthyInstances​(@NotNull
                                                 com.hashicorp.cdktf.IResolvable value)
      • getTags

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getTags()
      • setTags

        @Stability(Stable)
        public void setTags​(@NotNull
                            Map<String,​String> value)
      • getTagsAll

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getTagsAll()
      • setTagsAll

        @Stability(Stable)
        public void setTagsAll​(@NotNull
                               Map<String,​String> value)
      • getTerminateInstances

        @Stability(Stable)
        @NotNull
        public Object getTerminateInstances()
      • setTerminateInstances

        @Stability(Stable)
        public void setTerminateInstances​(@NotNull
                                          Boolean value)
      • setTerminateInstances

        @Stability(Stable)
        public void setTerminateInstances​(@NotNull
                                          com.hashicorp.cdktf.IResolvable value)
      • getTerminateInstancesWithExpiration

        @Stability(Stable)
        @NotNull
        public Object getTerminateInstancesWithExpiration()
      • setTerminateInstancesWithExpiration

        @Stability(Stable)
        public void setTerminateInstancesWithExpiration​(@NotNull
                                                        Boolean value)
      • setTerminateInstancesWithExpiration

        @Stability(Stable)
        public void setTerminateInstancesWithExpiration​(@NotNull
                                                        com.hashicorp.cdktf.IResolvable value)
      • getType

        @Stability(Stable)
        @NotNull
        public String getType()
      • setType

        @Stability(Stable)
        public void setType​(@NotNull
                            String value)
      • getValidFrom

        @Stability(Stable)
        @NotNull
        public String getValidFrom()
      • setValidFrom

        @Stability(Stable)
        public void setValidFrom​(@NotNull
                                 String value)
      • getValidUntil

        @Stability(Stable)
        @NotNull
        public String getValidUntil()
      • setValidUntil

        @Stability(Stable)
        public void setValidUntil​(@NotNull
                                  String value)