spotinst.ecs.Ocean
Explore with Pulumi AI
Manages a Spotinst Ocean ECS resource.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.ecs.Ocean;
import com.pulumi.spotinst.ecs.OceanArgs;
import com.pulumi.spotinst.ecs.inputs.OceanClusterOrientationArgs;
import com.pulumi.spotinst.ecs.inputs.OceanInstanceMetadataOptionsArgs;
import com.pulumi.spotinst.ecs.inputs.OceanBlockDeviceMappingArgs;
import com.pulumi.spotinst.ecs.inputs.OceanBlockDeviceMappingEbsArgs;
import com.pulumi.spotinst.ecs.inputs.OceanBlockDeviceMappingEbsDynamicVolumeSizeArgs;
import com.pulumi.spotinst.ecs.inputs.OceanOptimizeImagesArgs;
import com.pulumi.spotinst.ecs.inputs.OceanTagArgs;
import com.pulumi.spotinst.ecs.inputs.OceanLoggingArgs;
import com.pulumi.spotinst.ecs.inputs.OceanLoggingExportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Ocean("example", OceanArgs.builder()
.region("us-west-2")
.name("sample-ecs-cluster")
.clusterName("sample-ecs-cluster")
.minSize("0")
.maxSize("1")
.desiredCapacity("0")
.subnetIds("subnet-12345")
.instanceTypes(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.securityGroupIds("sg-12345")
.imageId("ami-12345")
.iamInstanceProfile("iam-profile")
.keyPair("KeyPair")
.userData("echo hello world")
.associatePublicIpAddress(false)
.utilizeReservedInstances(false)
.drainingTimeout(120)
.monitoring(true)
.ebsOptimized(true)
.useAsTemplateOnly(true)
.spotPercentage(100)
.utilizeCommitments(false)
.clusterOrientations(OceanClusterOrientationArgs.builder()
.availabilityVsCost("balanced")
.build())
.instanceMetadataOptions(OceanInstanceMetadataOptionsArgs.builder()
.httpTokens("required")
.httpPutResponseHopLimit(10)
.build())
.blockDeviceMappings(OceanBlockDeviceMappingArgs.builder()
.deviceName("/dev/xvda1")
.ebs(OceanBlockDeviceMappingEbsArgs.builder()
.deleteOnTermination("true")
.encrypted("false")
.volumeType("gp2")
.volumeSize(50)
.throughput(500)
.dynamicVolumeSize(OceanBlockDeviceMappingEbsDynamicVolumeSizeArgs.builder()
.baseSize(50)
.resource("CPU")
.sizePerResourceUnit(20)
.build())
.build())
.build())
.optimizeImages(OceanOptimizeImagesArgs.builder()
.performAt("timeWindow")
.timeWindows(
"Sun:02:00-Sun:12:00",
"Sun:05:00-Sun:16:00")
.shouldOptimizeEcsAmi(true)
.build())
.tags(OceanTagArgs.builder()
.key("fakeKey")
.value("fakeValue")
.build())
.logging(OceanLoggingArgs.builder()
.export(OceanLoggingExportArgs.builder()
.s3s(OceanLoggingExportS3Args.builder()
.id("di-abcd123")
.build())
.build())
.build())
.build());
}
}
resources:
example:
type: spotinst:ecs:Ocean
properties:
region: us-west-2
name: sample-ecs-cluster
clusterName: sample-ecs-cluster
minSize: '0'
maxSize: '1'
desiredCapacity: '0'
subnetIds:
- subnet-12345
instanceTypes:
- filters:
- architectures:
- x86_64
- i386
categories:
- Accelerated_computing
- Compute_optimized
diskTypes:
- EBS
- SSD
excludeFamilies:
- m*
excludeMetal: false
hypervisor:
- xen
includeFamilies:
- c*
- t*
isEnaSupported: false
maxGpu: 4
minGpu: 0
maxMemoryGib: 16
maxNetworkPerformance: 20
maxVcpu: 16
minEnis: 2
minMemoryGib: 8
minNetworkPerformance: 2
minVcpu: 2
rootDeviceTypes:
- ebs
virtualizationTypes:
- hvm
securityGroupIds:
- sg-12345
imageId: ami-12345
iamInstanceProfile: iam-profile
keyPair: KeyPair
userData: echo hello world
associatePublicIpAddress: false
utilizeReservedInstances: false
drainingTimeout: 120
monitoring: true
ebsOptimized: true
useAsTemplateOnly: true
spotPercentage: 100
utilizeCommitments: false
clusterOrientations:
- availabilityVsCost: balanced
instanceMetadataOptions:
httpTokens: required
httpPutResponseHopLimit: 10
blockDeviceMappings:
- deviceName: /dev/xvda1
ebs:
deleteOnTermination: 'true'
encrypted: 'false'
volumeType: gp2
volumeSize: 50
throughput: 500
dynamicVolumeSize:
baseSize: 50
resource: CPU
sizePerResourceUnit: 20
optimizeImages:
performAt: timeWindow
timeWindows:
- Sun:02:00-Sun:12:00
- Sun:05:00-Sun:16:00
shouldOptimizeEcsAmi: true
tags:
- key: fakeKey
value: fakeValue
logging:
export:
s3s:
- id: di-abcd123
output "ocean_id" {
value = spotinst_ocean_ecs.example.id
}
Create Ocean Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ocean(name: string, args: OceanArgs, opts?: CustomResourceOptions);
@overload
def Ocean(resource_name: str,
args: OceanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ocean(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
security_group_ids: Optional[Sequence[str]] = None,
region: Optional[str] = None,
ebs_optimized: Optional[bool] = None,
monitoring: Optional[bool] = None,
desired_capacity: Optional[int] = None,
draining_timeout: Optional[int] = None,
associate_public_ip_address: Optional[bool] = None,
filters: Optional[OceanFiltersArgs] = None,
iam_instance_profile: Optional[str] = None,
image_id: Optional[str] = None,
instance_metadata_options: Optional[OceanInstanceMetadataOptionsArgs] = None,
key_pair: Optional[str] = None,
logging: Optional[OceanLoggingArgs] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
cluster_orientations: Optional[Sequence[OceanClusterOrientationArgs]] = None,
name: Optional[str] = None,
optimize_images: Optional[OceanOptimizeImagesArgs] = None,
block_device_mappings: Optional[Sequence[OceanBlockDeviceMappingArgs]] = None,
scheduled_tasks: Optional[Sequence[OceanScheduledTaskArgs]] = None,
blacklists: Optional[Sequence[str]] = None,
spot_percentage: Optional[int] = None,
autoscaler: Optional[OceanAutoscalerArgs] = None,
tags: Optional[Sequence[OceanTagArgs]] = None,
update_policy: Optional[OceanUpdatePolicyArgs] = None,
use_as_template_only: Optional[bool] = None,
user_data: Optional[str] = None,
utilize_commitments: Optional[bool] = None,
utilize_reserved_instances: Optional[bool] = None,
whitelists: Optional[Sequence[str]] = None)
func NewOcean(ctx *Context, name string, args OceanArgs, opts ...ResourceOption) (*Ocean, error)
public Ocean(string name, OceanArgs args, CustomResourceOptions? opts = null)
type: spotinst:ecs:Ocean
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
var exampleoceanResourceResourceFromEcsocean = new SpotInst.Ecs.Ocean("exampleoceanResourceResourceFromEcsocean", new()
{
ClusterName = "string",
SubnetIds = new[]
{
"string",
},
SecurityGroupIds = new[]
{
"string",
},
Region = "string",
EbsOptimized = false,
Monitoring = false,
DesiredCapacity = 0,
DrainingTimeout = 0,
AssociatePublicIpAddress = false,
Filters = new SpotInst.Ecs.Inputs.OceanFiltersArgs
{
Architectures = new[]
{
"string",
},
Categories = new[]
{
"string",
},
DiskTypes = new[]
{
"string",
},
ExcludeFamilies = new[]
{
"string",
},
ExcludeMetal = false,
Hypervisors = new[]
{
"string",
},
IncludeFamilies = new[]
{
"string",
},
IsEnaSupported = "string",
MaxGpu = 0,
MaxMemoryGib = 0,
MaxNetworkPerformance = 0,
MaxVcpu = 0,
MinEnis = 0,
MinGpu = 0,
MinMemoryGib = 0,
MinNetworkPerformance = 0,
MinVcpu = 0,
RootDeviceTypes = new[]
{
"string",
},
VirtualizationTypes = new[]
{
"string",
},
},
IamInstanceProfile = "string",
ImageId = "string",
InstanceMetadataOptions = new SpotInst.Ecs.Inputs.OceanInstanceMetadataOptionsArgs
{
HttpTokens = "string",
HttpPutResponseHopLimit = 0,
},
KeyPair = "string",
Logging = new SpotInst.Ecs.Inputs.OceanLoggingArgs
{
Export = new SpotInst.Ecs.Inputs.OceanLoggingExportArgs
{
S3s = new[]
{
new SpotInst.Ecs.Inputs.OceanLoggingExportS3Args
{
Id = "string",
},
},
},
},
MaxSize = 0,
MinSize = 0,
ClusterOrientations = new[]
{
new SpotInst.Ecs.Inputs.OceanClusterOrientationArgs
{
AvailabilityVsCost = "string",
},
},
Name = "string",
OptimizeImages = new SpotInst.Ecs.Inputs.OceanOptimizeImagesArgs
{
PerformAt = "string",
ShouldOptimizeEcsAmi = false,
TimeWindows = new[]
{
"string",
},
},
BlockDeviceMappings = new[]
{
new SpotInst.Ecs.Inputs.OceanBlockDeviceMappingArgs
{
DeviceName = "string",
Ebs = new SpotInst.Ecs.Inputs.OceanBlockDeviceMappingEbsArgs
{
DeleteOnTermination = false,
DynamicVolumeSize = new SpotInst.Ecs.Inputs.OceanBlockDeviceMappingEbsDynamicVolumeSizeArgs
{
BaseSize = 0,
Resource = "string",
SizePerResourceUnit = 0,
},
Encrypted = false,
Iops = 0,
KmsKeyId = "string",
SnapshotId = "string",
Throughput = 0,
VolumeSize = 0,
VolumeType = "string",
},
NoDevice = "string",
VirtualName = "string",
},
},
ScheduledTasks = new[]
{
new SpotInst.Ecs.Inputs.OceanScheduledTaskArgs
{
ShutdownHours = new SpotInst.Ecs.Inputs.OceanScheduledTaskShutdownHoursArgs
{
TimeWindows = new[]
{
"string",
},
IsEnabled = false,
},
Tasks = new[]
{
new SpotInst.Ecs.Inputs.OceanScheduledTaskTaskArgs
{
CronExpression = "string",
IsEnabled = false,
TaskType = "string",
},
},
},
},
Blacklists = new[]
{
"string",
},
SpotPercentage = 0,
Autoscaler = new SpotInst.Ecs.Inputs.OceanAutoscalerArgs
{
AutoHeadroomPercentage = 0,
Cooldown = 0,
Down = new SpotInst.Ecs.Inputs.OceanAutoscalerDownArgs
{
MaxScaleDownPercentage = 0,
},
EnableAutomaticAndManualHeadroom = false,
Headroom = new SpotInst.Ecs.Inputs.OceanAutoscalerHeadroomArgs
{
CpuPerUnit = 0,
MemoryPerUnit = 0,
NumOfUnits = 0,
},
IsAutoConfig = false,
IsEnabled = false,
ResourceLimits = new SpotInst.Ecs.Inputs.OceanAutoscalerResourceLimitsArgs
{
MaxMemoryGib = 0,
MaxVcpu = 0,
},
ShouldScaleDownNonServiceTasks = false,
},
Tags = new[]
{
new SpotInst.Ecs.Inputs.OceanTagArgs
{
Key = "string",
Value = "string",
},
},
UpdatePolicy = new SpotInst.Ecs.Inputs.OceanUpdatePolicyArgs
{
ShouldRoll = false,
AutoApplyTags = false,
ConditionedRoll = false,
RollConfig = new SpotInst.Ecs.Inputs.OceanUpdatePolicyRollConfigArgs
{
BatchSizePercentage = 0,
BatchMinHealthyPercentage = 0,
},
},
UseAsTemplateOnly = false,
UserData = "string",
UtilizeCommitments = false,
UtilizeReservedInstances = false,
Whitelists = new[]
{
"string",
},
});
example, err := ecs.NewOcean(ctx, "exampleoceanResourceResourceFromEcsocean", &ecs.OceanArgs{
ClusterName: pulumi.String("string"),
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Region: pulumi.String("string"),
EbsOptimized: pulumi.Bool(false),
Monitoring: pulumi.Bool(false),
DesiredCapacity: pulumi.Int(0),
DrainingTimeout: pulumi.Int(0),
AssociatePublicIpAddress: pulumi.Bool(false),
Filters: &ecs.OceanFiltersArgs{
Architectures: pulumi.StringArray{
pulumi.String("string"),
},
Categories: pulumi.StringArray{
pulumi.String("string"),
},
DiskTypes: pulumi.StringArray{
pulumi.String("string"),
},
ExcludeFamilies: pulumi.StringArray{
pulumi.String("string"),
},
ExcludeMetal: pulumi.Bool(false),
Hypervisors: pulumi.StringArray{
pulumi.String("string"),
},
IncludeFamilies: pulumi.StringArray{
pulumi.String("string"),
},
IsEnaSupported: pulumi.String("string"),
MaxGpu: pulumi.Int(0),
MaxMemoryGib: pulumi.Float64(0),
MaxNetworkPerformance: pulumi.Int(0),
MaxVcpu: pulumi.Int(0),
MinEnis: pulumi.Int(0),
MinGpu: pulumi.Int(0),
MinMemoryGib: pulumi.Float64(0),
MinNetworkPerformance: pulumi.Int(0),
MinVcpu: pulumi.Int(0),
RootDeviceTypes: pulumi.StringArray{
pulumi.String("string"),
},
VirtualizationTypes: pulumi.StringArray{
pulumi.String("string"),
},
},
IamInstanceProfile: pulumi.String("string"),
ImageId: pulumi.String("string"),
InstanceMetadataOptions: &ecs.OceanInstanceMetadataOptionsArgs{
HttpTokens: pulumi.String("string"),
HttpPutResponseHopLimit: pulumi.Int(0),
},
KeyPair: pulumi.String("string"),
Logging: &ecs.OceanLoggingArgs{
Export: &ecs.OceanLoggingExportArgs{
S3s: ecs.OceanLoggingExportS3Array{
&ecs.OceanLoggingExportS3Args{
Id: pulumi.String("string"),
},
},
},
},
MaxSize: pulumi.Int(0),
MinSize: pulumi.Int(0),
ClusterOrientations: ecs.OceanClusterOrientationArray{
&ecs.OceanClusterOrientationArgs{
AvailabilityVsCost: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
OptimizeImages: &ecs.OceanOptimizeImagesArgs{
PerformAt: pulumi.String("string"),
ShouldOptimizeEcsAmi: pulumi.Bool(false),
TimeWindows: pulumi.StringArray{
pulumi.String("string"),
},
},
BlockDeviceMappings: ecs.OceanBlockDeviceMappingArray{
&ecs.OceanBlockDeviceMappingArgs{
DeviceName: pulumi.String("string"),
Ebs: &ecs.OceanBlockDeviceMappingEbsArgs{
DeleteOnTermination: pulumi.Bool(false),
DynamicVolumeSize: &ecs.OceanBlockDeviceMappingEbsDynamicVolumeSizeArgs{
BaseSize: pulumi.Int(0),
Resource: pulumi.String("string"),
SizePerResourceUnit: pulumi.Int(0),
},
Encrypted: pulumi.Bool(false),
Iops: pulumi.Int(0),
KmsKeyId: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
Throughput: pulumi.Int(0),
VolumeSize: pulumi.Int(0),
VolumeType: pulumi.String("string"),
},
NoDevice: pulumi.String("string"),
VirtualName: pulumi.String("string"),
},
},
ScheduledTasks: ecs.OceanScheduledTaskArray{
&ecs.OceanScheduledTaskArgs{
ShutdownHours: &ecs.OceanScheduledTaskShutdownHoursArgs{
TimeWindows: pulumi.StringArray{
pulumi.String("string"),
},
IsEnabled: pulumi.Bool(false),
},
Tasks: ecs.OceanScheduledTaskTaskArray{
&ecs.OceanScheduledTaskTaskArgs{
CronExpression: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
TaskType: pulumi.String("string"),
},
},
},
},
Blacklists: pulumi.StringArray{
pulumi.String("string"),
},
SpotPercentage: pulumi.Int(0),
Autoscaler: &ecs.OceanAutoscalerArgs{
AutoHeadroomPercentage: pulumi.Int(0),
Cooldown: pulumi.Int(0),
Down: &ecs.OceanAutoscalerDownArgs{
MaxScaleDownPercentage: pulumi.Float64(0),
},
EnableAutomaticAndManualHeadroom: pulumi.Bool(false),
Headroom: &ecs.OceanAutoscalerHeadroomArgs{
CpuPerUnit: pulumi.Int(0),
MemoryPerUnit: pulumi.Int(0),
NumOfUnits: pulumi.Int(0),
},
IsAutoConfig: pulumi.Bool(false),
IsEnabled: pulumi.Bool(false),
ResourceLimits: &ecs.OceanAutoscalerResourceLimitsArgs{
MaxMemoryGib: pulumi.Int(0),
MaxVcpu: pulumi.Int(0),
},
ShouldScaleDownNonServiceTasks: pulumi.Bool(false),
},
Tags: ecs.OceanTagArray{
&ecs.OceanTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
UpdatePolicy: &ecs.OceanUpdatePolicyArgs{
ShouldRoll: pulumi.Bool(false),
AutoApplyTags: pulumi.Bool(false),
ConditionedRoll: pulumi.Bool(false),
RollConfig: &ecs.OceanUpdatePolicyRollConfigArgs{
BatchSizePercentage: pulumi.Int(0),
BatchMinHealthyPercentage: pulumi.Int(0),
},
},
UseAsTemplateOnly: pulumi.Bool(false),
UserData: pulumi.String("string"),
UtilizeCommitments: pulumi.Bool(false),
UtilizeReservedInstances: pulumi.Bool(false),
Whitelists: pulumi.StringArray{
pulumi.String("string"),
},
})
var exampleoceanResourceResourceFromEcsocean = new Ocean("exampleoceanResourceResourceFromEcsocean", OceanArgs.builder()
.clusterName("string")
.subnetIds("string")
.securityGroupIds("string")
.region("string")
.ebsOptimized(false)
.monitoring(false)
.desiredCapacity(0)
.drainingTimeout(0)
.associatePublicIpAddress(false)
.filters(OceanFiltersArgs.builder()
.architectures("string")
.categories("string")
.diskTypes("string")
.excludeFamilies("string")
.excludeMetal(false)
.hypervisors("string")
.includeFamilies("string")
.isEnaSupported("string")
.maxGpu(0)
.maxMemoryGib(0)
.maxNetworkPerformance(0)
.maxVcpu(0)
.minEnis(0)
.minGpu(0)
.minMemoryGib(0)
.minNetworkPerformance(0)
.minVcpu(0)
.rootDeviceTypes("string")
.virtualizationTypes("string")
.build())
.iamInstanceProfile("string")
.imageId("string")
.instanceMetadataOptions(OceanInstanceMetadataOptionsArgs.builder()
.httpTokens("string")
.httpPutResponseHopLimit(0)
.build())
.keyPair("string")
.logging(OceanLoggingArgs.builder()
.export(OceanLoggingExportArgs.builder()
.s3s(OceanLoggingExportS3Args.builder()
.id("string")
.build())
.build())
.build())
.maxSize(0)
.minSize(0)
.clusterOrientations(OceanClusterOrientationArgs.builder()
.availabilityVsCost("string")
.build())
.name("string")
.optimizeImages(OceanOptimizeImagesArgs.builder()
.performAt("string")
.shouldOptimizeEcsAmi(false)
.timeWindows("string")
.build())
.blockDeviceMappings(OceanBlockDeviceMappingArgs.builder()
.deviceName("string")
.ebs(OceanBlockDeviceMappingEbsArgs.builder()
.deleteOnTermination(false)
.dynamicVolumeSize(OceanBlockDeviceMappingEbsDynamicVolumeSizeArgs.builder()
.baseSize(0)
.resource("string")
.sizePerResourceUnit(0)
.build())
.encrypted(false)
.iops(0)
.kmsKeyId("string")
.snapshotId("string")
.throughput(0)
.volumeSize(0)
.volumeType("string")
.build())
.noDevice("string")
.virtualName("string")
.build())
.scheduledTasks(OceanScheduledTaskArgs.builder()
.shutdownHours(OceanScheduledTaskShutdownHoursArgs.builder()
.timeWindows("string")
.isEnabled(false)
.build())
.tasks(OceanScheduledTaskTaskArgs.builder()
.cronExpression("string")
.isEnabled(false)
.taskType("string")
.build())
.build())
.blacklists("string")
.spotPercentage(0)
.autoscaler(OceanAutoscalerArgs.builder()
.autoHeadroomPercentage(0)
.cooldown(0)
.down(OceanAutoscalerDownArgs.builder()
.maxScaleDownPercentage(0)
.build())
.enableAutomaticAndManualHeadroom(false)
.headroom(OceanAutoscalerHeadroomArgs.builder()
.cpuPerUnit(0)
.memoryPerUnit(0)
.numOfUnits(0)
.build())
.isAutoConfig(false)
.isEnabled(false)
.resourceLimits(OceanAutoscalerResourceLimitsArgs.builder()
.maxMemoryGib(0)
.maxVcpu(0)
.build())
.shouldScaleDownNonServiceTasks(false)
.build())
.tags(OceanTagArgs.builder()
.key("string")
.value("string")
.build())
.updatePolicy(OceanUpdatePolicyArgs.builder()
.shouldRoll(false)
.autoApplyTags(false)
.conditionedRoll(false)
.rollConfig(OceanUpdatePolicyRollConfigArgs.builder()
.batchSizePercentage(0)
.batchMinHealthyPercentage(0)
.build())
.build())
.useAsTemplateOnly(false)
.userData("string")
.utilizeCommitments(false)
.utilizeReservedInstances(false)
.whitelists("string")
.build());
exampleocean_resource_resource_from_ecsocean = spotinst.ecs.Ocean("exampleoceanResourceResourceFromEcsocean",
cluster_name="string",
subnet_ids=["string"],
security_group_ids=["string"],
region="string",
ebs_optimized=False,
monitoring=False,
desired_capacity=0,
draining_timeout=0,
associate_public_ip_address=False,
filters=spotinst.ecs.OceanFiltersArgs(
architectures=["string"],
categories=["string"],
disk_types=["string"],
exclude_families=["string"],
exclude_metal=False,
hypervisors=["string"],
include_families=["string"],
is_ena_supported="string",
max_gpu=0,
max_memory_gib=0,
max_network_performance=0,
max_vcpu=0,
min_enis=0,
min_gpu=0,
min_memory_gib=0,
min_network_performance=0,
min_vcpu=0,
root_device_types=["string"],
virtualization_types=["string"],
),
iam_instance_profile="string",
image_id="string",
instance_metadata_options=spotinst.ecs.OceanInstanceMetadataOptionsArgs(
http_tokens="string",
http_put_response_hop_limit=0,
),
key_pair="string",
logging=spotinst.ecs.OceanLoggingArgs(
export=spotinst.ecs.OceanLoggingExportArgs(
s3s=[spotinst.ecs.OceanLoggingExportS3Args(
id="string",
)],
),
),
max_size=0,
min_size=0,
cluster_orientations=[spotinst.ecs.OceanClusterOrientationArgs(
availability_vs_cost="string",
)],
name="string",
optimize_images=spotinst.ecs.OceanOptimizeImagesArgs(
perform_at="string",
should_optimize_ecs_ami=False,
time_windows=["string"],
),
block_device_mappings=[spotinst.ecs.OceanBlockDeviceMappingArgs(
device_name="string",
ebs=spotinst.ecs.OceanBlockDeviceMappingEbsArgs(
delete_on_termination=False,
dynamic_volume_size=spotinst.ecs.OceanBlockDeviceMappingEbsDynamicVolumeSizeArgs(
base_size=0,
resource="string",
size_per_resource_unit=0,
),
encrypted=False,
iops=0,
kms_key_id="string",
snapshot_id="string",
throughput=0,
volume_size=0,
volume_type="string",
),
no_device="string",
virtual_name="string",
)],
scheduled_tasks=[spotinst.ecs.OceanScheduledTaskArgs(
shutdown_hours=spotinst.ecs.OceanScheduledTaskShutdownHoursArgs(
time_windows=["string"],
is_enabled=False,
),
tasks=[spotinst.ecs.OceanScheduledTaskTaskArgs(
cron_expression="string",
is_enabled=False,
task_type="string",
)],
)],
blacklists=["string"],
spot_percentage=0,
autoscaler=spotinst.ecs.OceanAutoscalerArgs(
auto_headroom_percentage=0,
cooldown=0,
down=spotinst.ecs.OceanAutoscalerDownArgs(
max_scale_down_percentage=0,
),
enable_automatic_and_manual_headroom=False,
headroom=spotinst.ecs.OceanAutoscalerHeadroomArgs(
cpu_per_unit=0,
memory_per_unit=0,
num_of_units=0,
),
is_auto_config=False,
is_enabled=False,
resource_limits=spotinst.ecs.OceanAutoscalerResourceLimitsArgs(
max_memory_gib=0,
max_vcpu=0,
),
should_scale_down_non_service_tasks=False,
),
tags=[spotinst.ecs.OceanTagArgs(
key="string",
value="string",
)],
update_policy=spotinst.ecs.OceanUpdatePolicyArgs(
should_roll=False,
auto_apply_tags=False,
conditioned_roll=False,
roll_config=spotinst.ecs.OceanUpdatePolicyRollConfigArgs(
batch_size_percentage=0,
batch_min_healthy_percentage=0,
),
),
use_as_template_only=False,
user_data="string",
utilize_commitments=False,
utilize_reserved_instances=False,
whitelists=["string"])
const exampleoceanResourceResourceFromEcsocean = new spotinst.ecs.Ocean("exampleoceanResourceResourceFromEcsocean", {
clusterName: "string",
subnetIds: ["string"],
securityGroupIds: ["string"],
region: "string",
ebsOptimized: false,
monitoring: false,
desiredCapacity: 0,
drainingTimeout: 0,
associatePublicIpAddress: false,
filters: {
architectures: ["string"],
categories: ["string"],
diskTypes: ["string"],
excludeFamilies: ["string"],
excludeMetal: false,
hypervisors: ["string"],
includeFamilies: ["string"],
isEnaSupported: "string",
maxGpu: 0,
maxMemoryGib: 0,
maxNetworkPerformance: 0,
maxVcpu: 0,
minEnis: 0,
minGpu: 0,
minMemoryGib: 0,
minNetworkPerformance: 0,
minVcpu: 0,
rootDeviceTypes: ["string"],
virtualizationTypes: ["string"],
},
iamInstanceProfile: "string",
imageId: "string",
instanceMetadataOptions: {
httpTokens: "string",
httpPutResponseHopLimit: 0,
},
keyPair: "string",
logging: {
"export": {
s3s: [{
id: "string",
}],
},
},
maxSize: 0,
minSize: 0,
clusterOrientations: [{
availabilityVsCost: "string",
}],
name: "string",
optimizeImages: {
performAt: "string",
shouldOptimizeEcsAmi: false,
timeWindows: ["string"],
},
blockDeviceMappings: [{
deviceName: "string",
ebs: {
deleteOnTermination: false,
dynamicVolumeSize: {
baseSize: 0,
resource: "string",
sizePerResourceUnit: 0,
},
encrypted: false,
iops: 0,
kmsKeyId: "string",
snapshotId: "string",
throughput: 0,
volumeSize: 0,
volumeType: "string",
},
noDevice: "string",
virtualName: "string",
}],
scheduledTasks: [{
shutdownHours: {
timeWindows: ["string"],
isEnabled: false,
},
tasks: [{
cronExpression: "string",
isEnabled: false,
taskType: "string",
}],
}],
blacklists: ["string"],
spotPercentage: 0,
autoscaler: {
autoHeadroomPercentage: 0,
cooldown: 0,
down: {
maxScaleDownPercentage: 0,
},
enableAutomaticAndManualHeadroom: false,
headroom: {
cpuPerUnit: 0,
memoryPerUnit: 0,
numOfUnits: 0,
},
isAutoConfig: false,
isEnabled: false,
resourceLimits: {
maxMemoryGib: 0,
maxVcpu: 0,
},
shouldScaleDownNonServiceTasks: false,
},
tags: [{
key: "string",
value: "string",
}],
updatePolicy: {
shouldRoll: false,
autoApplyTags: false,
conditionedRoll: false,
rollConfig: {
batchSizePercentage: 0,
batchMinHealthyPercentage: 0,
},
},
useAsTemplateOnly: false,
userData: "string",
utilizeCommitments: false,
utilizeReservedInstances: false,
whitelists: ["string"],
});
type: spotinst:ecs:Ocean
properties:
associatePublicIpAddress: false
autoscaler:
autoHeadroomPercentage: 0
cooldown: 0
down:
maxScaleDownPercentage: 0
enableAutomaticAndManualHeadroom: false
headroom:
cpuPerUnit: 0
memoryPerUnit: 0
numOfUnits: 0
isAutoConfig: false
isEnabled: false
resourceLimits:
maxMemoryGib: 0
maxVcpu: 0
shouldScaleDownNonServiceTasks: false
blacklists:
- string
blockDeviceMappings:
- deviceName: string
ebs:
deleteOnTermination: false
dynamicVolumeSize:
baseSize: 0
resource: string
sizePerResourceUnit: 0
encrypted: false
iops: 0
kmsKeyId: string
snapshotId: string
throughput: 0
volumeSize: 0
volumeType: string
noDevice: string
virtualName: string
clusterName: string
clusterOrientations:
- availabilityVsCost: string
desiredCapacity: 0
drainingTimeout: 0
ebsOptimized: false
filters:
architectures:
- string
categories:
- string
diskTypes:
- string
excludeFamilies:
- string
excludeMetal: false
hypervisors:
- string
includeFamilies:
- string
isEnaSupported: string
maxGpu: 0
maxMemoryGib: 0
maxNetworkPerformance: 0
maxVcpu: 0
minEnis: 0
minGpu: 0
minMemoryGib: 0
minNetworkPerformance: 0
minVcpu: 0
rootDeviceTypes:
- string
virtualizationTypes:
- string
iamInstanceProfile: string
imageId: string
instanceMetadataOptions:
httpPutResponseHopLimit: 0
httpTokens: string
keyPair: string
logging:
export:
s3s:
- id: string
maxSize: 0
minSize: 0
monitoring: false
name: string
optimizeImages:
performAt: string
shouldOptimizeEcsAmi: false
timeWindows:
- string
region: string
scheduledTasks:
- shutdownHours:
isEnabled: false
timeWindows:
- string
tasks:
- cronExpression: string
isEnabled: false
taskType: string
securityGroupIds:
- string
spotPercentage: 0
subnetIds:
- string
tags:
- key: string
value: string
updatePolicy:
autoApplyTags: false
conditionedRoll: false
rollConfig:
batchMinHealthyPercentage: 0
batchSizePercentage: 0
shouldRoll: false
useAsTemplateOnly: false
userData: string
utilizeCommitments: false
utilizeReservedInstances: false
whitelists:
- string
Ocean Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Ocean resource accepts the following input properties:
- Cluster
Name string - The name of the ECS cluster.
- Region string
- The region the cluster will run in.
- Security
Group List<string>Ids - One or more security group ids.
- Subnet
Ids List<string> - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- Associate
Public boolIp Address - Configure public IP address allocation.
- Autoscaler
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Autoscaler - Blacklists List<string>
- Block
Device List<Pulumi.Mappings Spot Inst. Ecs. Inputs. Ocean Block Device Mapping> - Cluster
Orientations List<Pulumi.Spot Inst. Ecs. Inputs. Ocean Cluster Orientation> - Desired
Capacity int - The number of instances to launch and maintain in the cluster.
- Draining
Timeout int - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Filters
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Filters - Iam
Instance stringProfile - The instance profile iam role.
- Image
Id string - ID of the image used to launch the instances.
- Instance
Metadata Pulumi.Options Spot Inst. Ecs. Inputs. Ocean Instance Metadata Options - Ocean instance metadata options object for IMDSv2.
- Key
Pair string - The key pair to attach the instances.
- Logging
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Logging - Logging configuration.
- Max
Size int - The upper limit of instances the cluster can scale up to.
- Min
Size int - The lower limit of instances the cluster can scale down to.
- Monitoring bool
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
- The Ocean cluster name.
- Optimize
Images Pulumi.Spot Inst. Ecs. Inputs. Ocean Optimize Images - Scheduled
Tasks List<Pulumi.Spot Inst. Ecs. Inputs. Ocean Scheduled Task> - Spot
Percentage int - The percentage of Spot instances that would spin up from the
desired_capacity
number. - List<Pulumi.
Spot Inst. Ecs. Inputs. Ocean Tag> - Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy Pulumi.Spot Inst. Ecs. Inputs. Ocean Update Policy - Use
As boolTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- User
Data string - Base64-encoded MIME user data to make available to the instances.
- Utilize
Commitments bool - If savings plans exist, Ocean will utilize them before launching Spot instances.
- Utilize
Reserved boolInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- Whitelists List<string>
- Cluster
Name string - The name of the ECS cluster.
- Region string
- The region the cluster will run in.
- Security
Group []stringIds - One or more security group ids.
- Subnet
Ids []string - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- Associate
Public boolIp Address - Configure public IP address allocation.
- Autoscaler
Ocean
Autoscaler Args - Blacklists []string
- Block
Device []OceanMappings Block Device Mapping Args - Cluster
Orientations []OceanCluster Orientation Args - Desired
Capacity int - The number of instances to launch and maintain in the cluster.
- Draining
Timeout int - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Filters
Ocean
Filters Args - Iam
Instance stringProfile - The instance profile iam role.
- Image
Id string - ID of the image used to launch the instances.
- Instance
Metadata OceanOptions Instance Metadata Options Args - Ocean instance metadata options object for IMDSv2.
- Key
Pair string - The key pair to attach the instances.
- Logging
Ocean
Logging Args - Logging configuration.
- Max
Size int - The upper limit of instances the cluster can scale up to.
- Min
Size int - The lower limit of instances the cluster can scale down to.
- Monitoring bool
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
- The Ocean cluster name.
- Optimize
Images OceanOptimize Images Args - Scheduled
Tasks []OceanScheduled Task Args - Spot
Percentage int - The percentage of Spot instances that would spin up from the
desired_capacity
number. - []Ocean
Tag Args - Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy OceanUpdate Policy Args - Use
As boolTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- User
Data string - Base64-encoded MIME user data to make available to the instances.
- Utilize
Commitments bool - If savings plans exist, Ocean will utilize them before launching Spot instances.
- Utilize
Reserved boolInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- Whitelists []string
- cluster
Name String - The name of the ECS cluster.
- region String
- The region the cluster will run in.
- security
Group List<String>Ids - One or more security group ids.
- subnet
Ids List<String> - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- associate
Public BooleanIp Address - Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler - blacklists List<String>
- block
Device List<OceanMappings Block Device Mapping> - cluster
Orientations List<OceanCluster Orientation> - desired
Capacity Integer - The number of instances to launch and maintain in the cluster.
- draining
Timeout Integer - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized Boolean - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters
Ocean
Filters - iam
Instance StringProfile - The instance profile iam role.
- image
Id String - ID of the image used to launch the instances.
- instance
Metadata OceanOptions Instance Metadata Options - Ocean instance metadata options object for IMDSv2.
- key
Pair String - The key pair to attach the instances.
- logging
Ocean
Logging - Logging configuration.
- max
Size Integer - The upper limit of instances the cluster can scale up to.
- min
Size Integer - The lower limit of instances the cluster can scale down to.
- monitoring Boolean
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name String
- The Ocean cluster name.
- optimize
Images OceanOptimize Images - scheduled
Tasks List<OceanScheduled Task> - spot
Percentage Integer - The percentage of Spot instances that would spin up from the
desired_capacity
number. - List<Ocean
Tag> - Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy OceanUpdate Policy - use
As BooleanTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user
Data String - Base64-encoded MIME user data to make available to the instances.
- utilize
Commitments Boolean - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize
Reserved BooleanInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists List<String>
- cluster
Name string - The name of the ECS cluster.
- region string
- The region the cluster will run in.
- security
Group string[]Ids - One or more security group ids.
- subnet
Ids string[] - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- associate
Public booleanIp Address - Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler - blacklists string[]
- block
Device OceanMappings Block Device Mapping[] - cluster
Orientations OceanCluster Orientation[] - desired
Capacity number - The number of instances to launch and maintain in the cluster.
- draining
Timeout number - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized boolean - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters
Ocean
Filters - iam
Instance stringProfile - The instance profile iam role.
- image
Id string - ID of the image used to launch the instances.
- instance
Metadata OceanOptions Instance Metadata Options - Ocean instance metadata options object for IMDSv2.
- key
Pair string - The key pair to attach the instances.
- logging
Ocean
Logging - Logging configuration.
- max
Size number - The upper limit of instances the cluster can scale up to.
- min
Size number - The lower limit of instances the cluster can scale down to.
- monitoring boolean
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name string
- The Ocean cluster name.
- optimize
Images OceanOptimize Images - scheduled
Tasks OceanScheduled Task[] - spot
Percentage number - The percentage of Spot instances that would spin up from the
desired_capacity
number. - Ocean
Tag[] - Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy OceanUpdate Policy - use
As booleanTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user
Data string - Base64-encoded MIME user data to make available to the instances.
- utilize
Commitments boolean - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize
Reserved booleanInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists string[]
- cluster_
name str - The name of the ECS cluster.
- region str
- The region the cluster will run in.
- security_
group_ Sequence[str]ids - One or more security group ids.
- subnet_
ids Sequence[str] - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- associate_
public_ boolip_ address - Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler Args - blacklists Sequence[str]
- block_
device_ Sequence[Oceanmappings Block Device Mapping Args] - cluster_
orientations Sequence[OceanCluster Orientation Args] - desired_
capacity int - The number of instances to launch and maintain in the cluster.
- draining_
timeout int - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs_
optimized bool - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters
Ocean
Filters Args - iam_
instance_ strprofile - The instance profile iam role.
- image_
id str - ID of the image used to launch the instances.
- instance_
metadata_ Oceanoptions Instance Metadata Options Args - Ocean instance metadata options object for IMDSv2.
- key_
pair str - The key pair to attach the instances.
- logging
Ocean
Logging Args - Logging configuration.
- max_
size int - The upper limit of instances the cluster can scale up to.
- min_
size int - The lower limit of instances the cluster can scale down to.
- monitoring bool
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name str
- The Ocean cluster name.
- optimize_
images OceanOptimize Images Args - scheduled_
tasks Sequence[OceanScheduled Task Args] - spot_
percentage int - The percentage of Spot instances that would spin up from the
desired_capacity
number. - Sequence[Ocean
Tag Args] - Optionally adds tags to instances launched in an Ocean cluster.
- update_
policy OceanUpdate Policy Args - use_
as_ booltemplate_ only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user_
data str - Base64-encoded MIME user data to make available to the instances.
- utilize_
commitments bool - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize_
reserved_ boolinstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists Sequence[str]
- cluster
Name String - The name of the ECS cluster.
- region String
- The region the cluster will run in.
- security
Group List<String>Ids - One or more security group ids.
- subnet
Ids List<String> - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- associate
Public BooleanIp Address - Configure public IP address allocation.
- autoscaler Property Map
- blacklists List<String>
- block
Device List<Property Map>Mappings - cluster
Orientations List<Property Map> - desired
Capacity Number - The number of instances to launch and maintain in the cluster.
- draining
Timeout Number - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized Boolean - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters Property Map
- iam
Instance StringProfile - The instance profile iam role.
- image
Id String - ID of the image used to launch the instances.
- instance
Metadata Property MapOptions - Ocean instance metadata options object for IMDSv2.
- key
Pair String - The key pair to attach the instances.
- logging Property Map
- Logging configuration.
- max
Size Number - The upper limit of instances the cluster can scale up to.
- min
Size Number - The lower limit of instances the cluster can scale down to.
- monitoring Boolean
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name String
- The Ocean cluster name.
- optimize
Images Property Map - scheduled
Tasks List<Property Map> - spot
Percentage Number - The percentage of Spot instances that would spin up from the
desired_capacity
number. - List<Property Map>
- Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy Property Map - use
As BooleanTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user
Data String - Base64-encoded MIME user data to make available to the instances.
- utilize
Commitments Boolean - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize
Reserved BooleanInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the Ocean resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Ocean Resource
Get an existing Ocean resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OceanState, opts?: CustomResourceOptions): Ocean
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
associate_public_ip_address: Optional[bool] = None,
autoscaler: Optional[OceanAutoscalerArgs] = None,
blacklists: Optional[Sequence[str]] = None,
block_device_mappings: Optional[Sequence[OceanBlockDeviceMappingArgs]] = None,
cluster_name: Optional[str] = None,
cluster_orientations: Optional[Sequence[OceanClusterOrientationArgs]] = None,
desired_capacity: Optional[int] = None,
draining_timeout: Optional[int] = None,
ebs_optimized: Optional[bool] = None,
filters: Optional[OceanFiltersArgs] = None,
iam_instance_profile: Optional[str] = None,
image_id: Optional[str] = None,
instance_metadata_options: Optional[OceanInstanceMetadataOptionsArgs] = None,
key_pair: Optional[str] = None,
logging: Optional[OceanLoggingArgs] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
monitoring: Optional[bool] = None,
name: Optional[str] = None,
optimize_images: Optional[OceanOptimizeImagesArgs] = None,
region: Optional[str] = None,
scheduled_tasks: Optional[Sequence[OceanScheduledTaskArgs]] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_percentage: Optional[int] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Sequence[OceanTagArgs]] = None,
update_policy: Optional[OceanUpdatePolicyArgs] = None,
use_as_template_only: Optional[bool] = None,
user_data: Optional[str] = None,
utilize_commitments: Optional[bool] = None,
utilize_reserved_instances: Optional[bool] = None,
whitelists: Optional[Sequence[str]] = None) -> Ocean
func GetOcean(ctx *Context, name string, id IDInput, state *OceanState, opts ...ResourceOption) (*Ocean, error)
public static Ocean Get(string name, Input<string> id, OceanState? state, CustomResourceOptions? opts = null)
public static Ocean get(String name, Output<String> id, OceanState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Associate
Public boolIp Address - Configure public IP address allocation.
- Autoscaler
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Autoscaler - Blacklists List<string>
- Block
Device List<Pulumi.Mappings Spot Inst. Ecs. Inputs. Ocean Block Device Mapping> - Cluster
Name string - The name of the ECS cluster.
- Cluster
Orientations List<Pulumi.Spot Inst. Ecs. Inputs. Ocean Cluster Orientation> - Desired
Capacity int - The number of instances to launch and maintain in the cluster.
- Draining
Timeout int - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Filters
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Filters - Iam
Instance stringProfile - The instance profile iam role.
- Image
Id string - ID of the image used to launch the instances.
- Instance
Metadata Pulumi.Options Spot Inst. Ecs. Inputs. Ocean Instance Metadata Options - Ocean instance metadata options object for IMDSv2.
- Key
Pair string - The key pair to attach the instances.
- Logging
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Logging - Logging configuration.
- Max
Size int - The upper limit of instances the cluster can scale up to.
- Min
Size int - The lower limit of instances the cluster can scale down to.
- Monitoring bool
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
- The Ocean cluster name.
- Optimize
Images Pulumi.Spot Inst. Ecs. Inputs. Ocean Optimize Images - Region string
- The region the cluster will run in.
- Scheduled
Tasks List<Pulumi.Spot Inst. Ecs. Inputs. Ocean Scheduled Task> - Security
Group List<string>Ids - One or more security group ids.
- Spot
Percentage int - The percentage of Spot instances that would spin up from the
desired_capacity
number. - Subnet
Ids List<string> - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- List<Pulumi.
Spot Inst. Ecs. Inputs. Ocean Tag> - Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy Pulumi.Spot Inst. Ecs. Inputs. Ocean Update Policy - Use
As boolTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- User
Data string - Base64-encoded MIME user data to make available to the instances.
- Utilize
Commitments bool - If savings plans exist, Ocean will utilize them before launching Spot instances.
- Utilize
Reserved boolInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- Whitelists List<string>
- Associate
Public boolIp Address - Configure public IP address allocation.
- Autoscaler
Ocean
Autoscaler Args - Blacklists []string
- Block
Device []OceanMappings Block Device Mapping Args - Cluster
Name string - The name of the ECS cluster.
- Cluster
Orientations []OceanCluster Orientation Args - Desired
Capacity int - The number of instances to launch and maintain in the cluster.
- Draining
Timeout int - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Filters
Ocean
Filters Args - Iam
Instance stringProfile - The instance profile iam role.
- Image
Id string - ID of the image used to launch the instances.
- Instance
Metadata OceanOptions Instance Metadata Options Args - Ocean instance metadata options object for IMDSv2.
- Key
Pair string - The key pair to attach the instances.
- Logging
Ocean
Logging Args - Logging configuration.
- Max
Size int - The upper limit of instances the cluster can scale up to.
- Min
Size int - The lower limit of instances the cluster can scale down to.
- Monitoring bool
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
- The Ocean cluster name.
- Optimize
Images OceanOptimize Images Args - Region string
- The region the cluster will run in.
- Scheduled
Tasks []OceanScheduled Task Args - Security
Group []stringIds - One or more security group ids.
- Spot
Percentage int - The percentage of Spot instances that would spin up from the
desired_capacity
number. - Subnet
Ids []string - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- []Ocean
Tag Args - Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy OceanUpdate Policy Args - Use
As boolTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- User
Data string - Base64-encoded MIME user data to make available to the instances.
- Utilize
Commitments bool - If savings plans exist, Ocean will utilize them before launching Spot instances.
- Utilize
Reserved boolInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- Whitelists []string
- associate
Public BooleanIp Address - Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler - blacklists List<String>
- block
Device List<OceanMappings Block Device Mapping> - cluster
Name String - The name of the ECS cluster.
- cluster
Orientations List<OceanCluster Orientation> - desired
Capacity Integer - The number of instances to launch and maintain in the cluster.
- draining
Timeout Integer - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized Boolean - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters
Ocean
Filters - iam
Instance StringProfile - The instance profile iam role.
- image
Id String - ID of the image used to launch the instances.
- instance
Metadata OceanOptions Instance Metadata Options - Ocean instance metadata options object for IMDSv2.
- key
Pair String - The key pair to attach the instances.
- logging
Ocean
Logging - Logging configuration.
- max
Size Integer - The upper limit of instances the cluster can scale up to.
- min
Size Integer - The lower limit of instances the cluster can scale down to.
- monitoring Boolean
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name String
- The Ocean cluster name.
- optimize
Images OceanOptimize Images - region String
- The region the cluster will run in.
- scheduled
Tasks List<OceanScheduled Task> - security
Group List<String>Ids - One or more security group ids.
- spot
Percentage Integer - The percentage of Spot instances that would spin up from the
desired_capacity
number. - subnet
Ids List<String> - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- List<Ocean
Tag> - Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy OceanUpdate Policy - use
As BooleanTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user
Data String - Base64-encoded MIME user data to make available to the instances.
- utilize
Commitments Boolean - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize
Reserved BooleanInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists List<String>
- associate
Public booleanIp Address - Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler - blacklists string[]
- block
Device OceanMappings Block Device Mapping[] - cluster
Name string - The name of the ECS cluster.
- cluster
Orientations OceanCluster Orientation[] - desired
Capacity number - The number of instances to launch and maintain in the cluster.
- draining
Timeout number - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized boolean - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters
Ocean
Filters - iam
Instance stringProfile - The instance profile iam role.
- image
Id string - ID of the image used to launch the instances.
- instance
Metadata OceanOptions Instance Metadata Options - Ocean instance metadata options object for IMDSv2.
- key
Pair string - The key pair to attach the instances.
- logging
Ocean
Logging - Logging configuration.
- max
Size number - The upper limit of instances the cluster can scale up to.
- min
Size number - The lower limit of instances the cluster can scale down to.
- monitoring boolean
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name string
- The Ocean cluster name.
- optimize
Images OceanOptimize Images - region string
- The region the cluster will run in.
- scheduled
Tasks OceanScheduled Task[] - security
Group string[]Ids - One or more security group ids.
- spot
Percentage number - The percentage of Spot instances that would spin up from the
desired_capacity
number. - subnet
Ids string[] - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- Ocean
Tag[] - Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy OceanUpdate Policy - use
As booleanTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user
Data string - Base64-encoded MIME user data to make available to the instances.
- utilize
Commitments boolean - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize
Reserved booleanInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists string[]
- associate_
public_ boolip_ address - Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler Args - blacklists Sequence[str]
- block_
device_ Sequence[Oceanmappings Block Device Mapping Args] - cluster_
name str - The name of the ECS cluster.
- cluster_
orientations Sequence[OceanCluster Orientation Args] - desired_
capacity int - The number of instances to launch and maintain in the cluster.
- draining_
timeout int - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs_
optimized bool - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters
Ocean
Filters Args - iam_
instance_ strprofile - The instance profile iam role.
- image_
id str - ID of the image used to launch the instances.
- instance_
metadata_ Oceanoptions Instance Metadata Options Args - Ocean instance metadata options object for IMDSv2.
- key_
pair str - The key pair to attach the instances.
- logging
Ocean
Logging Args - Logging configuration.
- max_
size int - The upper limit of instances the cluster can scale up to.
- min_
size int - The lower limit of instances the cluster can scale down to.
- monitoring bool
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name str
- The Ocean cluster name.
- optimize_
images OceanOptimize Images Args - region str
- The region the cluster will run in.
- scheduled_
tasks Sequence[OceanScheduled Task Args] - security_
group_ Sequence[str]ids - One or more security group ids.
- spot_
percentage int - The percentage of Spot instances that would spin up from the
desired_capacity
number. - subnet_
ids Sequence[str] - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- Sequence[Ocean
Tag Args] - Optionally adds tags to instances launched in an Ocean cluster.
- update_
policy OceanUpdate Policy Args - use_
as_ booltemplate_ only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user_
data str - Base64-encoded MIME user data to make available to the instances.
- utilize_
commitments bool - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize_
reserved_ boolinstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists Sequence[str]
- associate
Public BooleanIp Address - Configure public IP address allocation.
- autoscaler Property Map
- blacklists List<String>
- block
Device List<Property Map>Mappings - cluster
Name String - The name of the ECS cluster.
- cluster
Orientations List<Property Map> - desired
Capacity Number - The number of instances to launch and maintain in the cluster.
- draining
Timeout Number - The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized Boolean - Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- filters Property Map
- iam
Instance StringProfile - The instance profile iam role.
- image
Id String - ID of the image used to launch the instances.
- instance
Metadata Property MapOptions - Ocean instance metadata options object for IMDSv2.
- key
Pair String - The key pair to attach the instances.
- logging Property Map
- Logging configuration.
- max
Size Number - The upper limit of instances the cluster can scale up to.
- min
Size Number - The lower limit of instances the cluster can scale down to.
- monitoring Boolean
- Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name String
- The Ocean cluster name.
- optimize
Images Property Map - region String
- The region the cluster will run in.
- scheduled
Tasks List<Property Map> - security
Group List<String>Ids - One or more security group ids.
- spot
Percentage Number - The percentage of Spot instances that would spin up from the
desired_capacity
number. - subnet
Ids List<String> - A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- List<Property Map>
- Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy Property Map - use
As BooleanTemplate Only - launch specification defined on the Ocean object will function only as a template for virtual node groups.
- user
Data String - Base64-encoded MIME user data to make available to the instances.
- utilize
Commitments Boolean - If savings plans exist, Ocean will utilize them before launching Spot instances.
- utilize
Reserved BooleanInstances - If Reserved instances exist, Ocean will utilize them before launching Spot instances.
- whitelists List<String>
Supporting Types
OceanAutoscaler, OceanAutoscalerArgs
- Auto
Headroom intPercentage - Cooldown int
- Down
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Autoscaler Down - Enable
Automatic boolAnd Manual Headroom - Headroom
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Autoscaler Headroom - Is
Auto boolConfig - Is
Enabled bool - Resource
Limits Pulumi.Spot Inst. Ecs. Inputs. Ocean Autoscaler Resource Limits - Should
Scale boolDown Non Service Tasks
- auto
Headroom NumberPercentage - cooldown Number
- down Property Map
- enable
Automatic BooleanAnd Manual Headroom - headroom Property Map
- is
Auto BooleanConfig - is
Enabled Boolean - resource
Limits Property Map - should
Scale BooleanDown Non Service Tasks
OceanAutoscalerDown, OceanAutoscalerDownArgs
- Max
Scale doubleDown Percentage
- Max
Scale float64Down Percentage
- max
Scale DoubleDown Percentage
- max
Scale numberDown Percentage
- max
Scale NumberDown Percentage
OceanAutoscalerHeadroom, OceanAutoscalerHeadroomArgs
- Cpu
Per intUnit - Memory
Per intUnit - Num
Of intUnits
- Cpu
Per intUnit - Memory
Per intUnit - Num
Of intUnits
- cpu
Per IntegerUnit - memory
Per IntegerUnit - num
Of IntegerUnits
- cpu
Per numberUnit - memory
Per numberUnit - num
Of numberUnits
- cpu_
per_ intunit - memory_
per_ intunit - num_
of_ intunits
- cpu
Per NumberUnit - memory
Per NumberUnit - num
Of NumberUnits
OceanAutoscalerResourceLimits, OceanAutoscalerResourceLimitsArgs
- Max
Memory intGib - Max
Vcpu int
- Max
Memory intGib - Max
Vcpu int
- max
Memory IntegerGib - max
Vcpu Integer
- max
Memory numberGib - max
Vcpu number
- max_
memory_ intgib - max_
vcpu int
- max
Memory NumberGib - max
Vcpu Number
OceanBlockDeviceMapping, OceanBlockDeviceMappingArgs
- Device
Name string - Ebs
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Block Device Mapping Ebs - No
Device string - Virtual
Name string
- Device
Name string - Ebs
Ocean
Block Device Mapping Ebs - No
Device string - Virtual
Name string
- device
Name String - ebs
Ocean
Block Device Mapping Ebs - no
Device String - virtual
Name String
- device
Name string - ebs
Ocean
Block Device Mapping Ebs - no
Device string - virtual
Name string
- device
Name String - ebs Property Map
- no
Device String - virtual
Name String
OceanBlockDeviceMappingEbs, OceanBlockDeviceMappingEbsArgs
- Delete
On boolTermination - Dynamic
Volume Pulumi.Size Spot Inst. Ecs. Inputs. Ocean Block Device Mapping Ebs Dynamic Volume Size - Encrypted bool
- Iops int
- Kms
Key stringId - Snapshot
Id string - Throughput int
- Volume
Size int - Volume
Type string
- Delete
On boolTermination - Dynamic
Volume OceanSize Block Device Mapping Ebs Dynamic Volume Size - Encrypted bool
- Iops int
- Kms
Key stringId - Snapshot
Id string - Throughput int
- Volume
Size int - Volume
Type string
- delete
On BooleanTermination - dynamic
Volume OceanSize Block Device Mapping Ebs Dynamic Volume Size - encrypted Boolean
- iops Integer
- kms
Key StringId - snapshot
Id String - throughput Integer
- volume
Size Integer - volume
Type String
- delete
On booleanTermination - dynamic
Volume OceanSize Block Device Mapping Ebs Dynamic Volume Size - encrypted boolean
- iops number
- kms
Key stringId - snapshot
Id string - throughput number
- volume
Size number - volume
Type string
- delete
On BooleanTermination - dynamic
Volume Property MapSize - encrypted Boolean
- iops Number
- kms
Key StringId - snapshot
Id String - throughput Number
- volume
Size Number - volume
Type String
OceanBlockDeviceMappingEbsDynamicVolumeSize, OceanBlockDeviceMappingEbsDynamicVolumeSizeArgs
- Base
Size int - Resource string
- Size
Per intResource Unit
- Base
Size int - Resource string
- Size
Per intResource Unit
- base
Size Integer - resource String
- size
Per IntegerResource Unit
- base
Size number - resource string
- size
Per numberResource Unit
- base_
size int - resource str
- size_
per_ intresource_ unit
- base
Size Number - resource String
- size
Per NumberResource Unit
OceanClusterOrientation, OceanClusterOrientationArgs
- Availability
Vs stringCost - You can control the approach that Ocean takes while launching nodes by configuring this value. Possible values:
costOriented
,balanced
,cheapest
.
- Availability
Vs stringCost - You can control the approach that Ocean takes while launching nodes by configuring this value. Possible values:
costOriented
,balanced
,cheapest
.
- availability
Vs StringCost - You can control the approach that Ocean takes while launching nodes by configuring this value. Possible values:
costOriented
,balanced
,cheapest
.
- availability
Vs stringCost - You can control the approach that Ocean takes while launching nodes by configuring this value. Possible values:
costOriented
,balanced
,cheapest
.
- availability_
vs_ strcost - You can control the approach that Ocean takes while launching nodes by configuring this value. Possible values:
costOriented
,balanced
,cheapest
.
- availability
Vs StringCost - You can control the approach that Ocean takes while launching nodes by configuring this value. Possible values:
costOriented
,balanced
,cheapest
.
OceanFilters, OceanFiltersArgs
- Architectures List<string>
- Categories List<string>
- Disk
Types List<string> - Exclude
Families List<string> - Exclude
Metal bool - Hypervisors List<string>
- Include
Families List<string> - Is
Ena stringSupported - Max
Gpu int - Max
Memory doubleGib - Max
Network intPerformance - Max
Vcpu int - Min
Enis int - Min
Gpu int - Min
Memory doubleGib - Min
Network intPerformance - Min
Vcpu int - Root
Device List<string>Types - Virtualization
Types List<string>
- Architectures []string
- Categories []string
- Disk
Types []string - Exclude
Families []string - Exclude
Metal bool - Hypervisors []string
- Include
Families []string - Is
Ena stringSupported - Max
Gpu int - Max
Memory float64Gib - Max
Network intPerformance - Max
Vcpu int - Min
Enis int - Min
Gpu int - Min
Memory float64Gib - Min
Network intPerformance - Min
Vcpu int - Root
Device []stringTypes - Virtualization
Types []string
- architectures List<String>
- categories List<String>
- disk
Types List<String> - exclude
Families List<String> - exclude
Metal Boolean - hypervisors List<String>
- include
Families List<String> - is
Ena StringSupported - max
Gpu Integer - max
Memory DoubleGib - max
Network IntegerPerformance - max
Vcpu Integer - min
Enis Integer - min
Gpu Integer - min
Memory DoubleGib - min
Network IntegerPerformance - min
Vcpu Integer - root
Device List<String>Types - virtualization
Types List<String>
- architectures string[]
- categories string[]
- disk
Types string[] - exclude
Families string[] - exclude
Metal boolean - hypervisors string[]
- include
Families string[] - is
Ena stringSupported - max
Gpu number - max
Memory numberGib - max
Network numberPerformance - max
Vcpu number - min
Enis number - min
Gpu number - min
Memory numberGib - min
Network numberPerformance - min
Vcpu number - root
Device string[]Types - virtualization
Types string[]
- architectures Sequence[str]
- categories Sequence[str]
- disk_
types Sequence[str] - exclude_
families Sequence[str] - exclude_
metal bool - hypervisors Sequence[str]
- include_
families Sequence[str] - is_
ena_ strsupported - max_
gpu int - max_
memory_ floatgib - max_
network_ intperformance - max_
vcpu int - min_
enis int - min_
gpu int - min_
memory_ floatgib - min_
network_ intperformance - min_
vcpu int - root_
device_ Sequence[str]types - virtualization_
types Sequence[str]
- architectures List<String>
- categories List<String>
- disk
Types List<String> - exclude
Families List<String> - exclude
Metal Boolean - hypervisors List<String>
- include
Families List<String> - is
Ena StringSupported - max
Gpu Number - max
Memory NumberGib - max
Network NumberPerformance - max
Vcpu Number - min
Enis Number - min
Gpu Number - min
Memory NumberGib - min
Network NumberPerformance - min
Vcpu Number - root
Device List<String>Types - virtualization
Types List<String>
OceanInstanceMetadataOptions, OceanInstanceMetadataOptionsArgs
- Http
Tokens string - Determines if a signed token is required or not. Valid values:
optional
orrequired
. - Http
Put intResponse Hop Limit - An integer from 1 through 64. The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further the instance metadata requests can travel.
- Http
Tokens string - Determines if a signed token is required or not. Valid values:
optional
orrequired
. - Http
Put intResponse Hop Limit - An integer from 1 through 64. The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further the instance metadata requests can travel.
- http
Tokens String - Determines if a signed token is required or not. Valid values:
optional
orrequired
. - http
Put IntegerResponse Hop Limit - An integer from 1 through 64. The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further the instance metadata requests can travel.
- http
Tokens string - Determines if a signed token is required or not. Valid values:
optional
orrequired
. - http
Put numberResponse Hop Limit - An integer from 1 through 64. The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further the instance metadata requests can travel.
- http_
tokens str - Determines if a signed token is required or not. Valid values:
optional
orrequired
. - http_
put_ intresponse_ hop_ limit - An integer from 1 through 64. The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further the instance metadata requests can travel.
- http
Tokens String - Determines if a signed token is required or not. Valid values:
optional
orrequired
. - http
Put NumberResponse Hop Limit - An integer from 1 through 64. The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further the instance metadata requests can travel.
OceanLogging, OceanLoggingArgs
- Export
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Logging Export - Logging Export configuration.
- Export
Ocean
Logging Export - Logging Export configuration.
- export
Ocean
Logging Export - Logging Export configuration.
- export
Ocean
Logging Export - Logging Export configuration.
- export
Ocean
Logging Export - Logging Export configuration.
- export Property Map
- Logging Export configuration.
OceanLoggingExport, OceanLoggingExportArgs
OceanLoggingExportS3, OceanLoggingExportS3Args
- Id string
- The Spotinst Ocean ID.
- Id string
- The Spotinst Ocean ID.
- id String
- The Spotinst Ocean ID.
- id string
- The Spotinst Ocean ID.
- id str
- The Spotinst Ocean ID.
- id String
- The Spotinst Ocean ID.
OceanOptimizeImages, OceanOptimizeImagesArgs
- Perform
At string - Should
Optimize boolEcs Ami - Time
Windows List<string>
- Perform
At string - Should
Optimize boolEcs Ami - Time
Windows []string
- perform
At String - should
Optimize BooleanEcs Ami - time
Windows List<String>
- perform
At string - should
Optimize booleanEcs Ami - time
Windows string[]
- perform_
at str - should_
optimize_ boolecs_ ami - time_
windows Sequence[str]
- perform
At String - should
Optimize BooleanEcs Ami - time
Windows List<String>
OceanScheduledTask, OceanScheduledTaskArgs
OceanScheduledTaskShutdownHours, OceanScheduledTaskShutdownHoursArgs
- Time
Windows List<string> - Is
Enabled bool
- Time
Windows []string - Is
Enabled bool
- time
Windows List<String> - is
Enabled Boolean
- time
Windows string[] - is
Enabled boolean
- time_
windows Sequence[str] - is_
enabled bool
- time
Windows List<String> - is
Enabled Boolean
OceanScheduledTaskTask, OceanScheduledTaskTaskArgs
- Cron
Expression string - Is
Enabled bool - Task
Type string
- Cron
Expression string - Is
Enabled bool - Task
Type string
- cron
Expression String - is
Enabled Boolean - task
Type String
- cron
Expression string - is
Enabled boolean - task
Type string
- cron_
expression str - is_
enabled bool - task_
type str
- cron
Expression String - is
Enabled Boolean - task
Type String
OceanTag, OceanTagArgs
OceanUpdatePolicy, OceanUpdatePolicyArgs
- Should
Roll bool - bool
- Conditioned
Roll bool - Roll
Config OceanUpdate Policy Roll Config
- should
Roll Boolean - Boolean
- conditioned
Roll Boolean - roll
Config OceanUpdate Policy Roll Config
- should
Roll boolean - boolean
- conditioned
Roll boolean - roll
Config OceanUpdate Policy Roll Config
- should
Roll Boolean - Boolean
- conditioned
Roll Boolean - roll
Config Property Map
OceanUpdatePolicyRollConfig, OceanUpdatePolicyRollConfigArgs
- batch
Size IntegerPercentage - batch
Min IntegerHealthy Percentage
- batch
Size numberPercentage - batch
Min numberHealthy Percentage
- batch
Size NumberPercentage - batch
Min NumberHealthy Percentage
Import
Clusters can be imported using the Ocean id
, e.g.,
hcl
$ pulumi import spotinst:ecs/ocean:Ocean this o-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinst
Terraform Provider.