Ocean

Manages a Spotinst Ocean AKS resource.

Example Usage

using Pulumi;
using SpotInst = Pulumi.SpotInst;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new SpotInst.Azure.Ocean("example", new SpotInst.Azure.OceanArgs
        {
            AcdIdentifier = "acd-12345",
            AksName = "AKSName",
            AksResourceGroupName = "ResourceGroupName",
            ControllerClusterId = "controller-cluster-id",
            SshPublicKey = "ssh-rsa [... redacted ...] generated-by-azure",
            UserName = "some-name",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/azure"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azure.NewOcean(ctx, "example", &azure.OceanArgs{
			AcdIdentifier:        pulumi.String("acd-12345"),
			AksName:              pulumi.String("AKSName"),
			AksResourceGroupName: pulumi.String("ResourceGroupName"),
			ControllerClusterId:  pulumi.String("controller-cluster-id"),
			SshPublicKey:         pulumi.String("ssh-rsa [... redacted ...] generated-by-azure"),
			UserName:             pulumi.String("some-name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_spotinst as spotinst

example = spotinst.azure.Ocean("example",
    acd_identifier="acd-12345",
    aks_name="AKSName",
    aks_resource_group_name="ResourceGroupName",
    controller_cluster_id="controller-cluster-id",
    ssh_public_key="ssh-rsa [... redacted ...] generated-by-azure",
    user_name="some-name")
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";

const example = new spotinst.azure.Ocean("example", {
    // --- AKS -----------------------------------------------------------
    acdIdentifier: "acd-12345",
    aksName: "AKSName",
    aksResourceGroupName: "ResourceGroupName",
    controllerClusterId: "controller-cluster-id",
    // --- LOGIN ---------------------------------------------------------
    sshPublicKey: "ssh-rsa [... redacted ...] generated-by-azure",
    userName: "some-name",
});

Create a Ocean Resource

new Ocean(name: string, args: OceanArgs, opts?: CustomResourceOptions);
@overload
def Ocean(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          acd_identifier: Optional[str] = None,
          aks_name: Optional[str] = None,
          aks_resource_group_name: Optional[str] = None,
          controller_cluster_id: Optional[str] = None,
          name: Optional[str] = None,
          ssh_public_key: Optional[str] = None,
          user_name: Optional[str] = None)
@overload
def Ocean(resource_name: str,
          args: OceanArgs,
          opts: Optional[ResourceOptions] = None)
func NewOcean(ctx *Context, name string, args OceanArgs, opts ...ResourceOption) (*Ocean, error)
public Ocean(string name, OceanArgs args, CustomResourceOptions? opts = null)
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.

Ocean Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Ocean resource accepts the following input properties:

AcdIdentifier string
The AKS identifier.
AksName string
The AKS cluster name.
AksResourceGroupName string
Name of the Resource Group for AKS cluster.
SshPublicKey string
SSH public key for admin access to Linux VMs.
ControllerClusterId string
The Ocean controller cluster.
Name string
The Ocean cluster name.
UserName string
Username for admin access to VMs.
AcdIdentifier string
The AKS identifier.
AksName string
The AKS cluster name.
AksResourceGroupName string
Name of the Resource Group for AKS cluster.
SshPublicKey string
SSH public key for admin access to Linux VMs.
ControllerClusterId string
The Ocean controller cluster.
Name string
The Ocean cluster name.
UserName string
Username for admin access to VMs.
acdIdentifier string
The AKS identifier.
aksName string
The AKS cluster name.
aksResourceGroupName string
Name of the Resource Group for AKS cluster.
sshPublicKey string
SSH public key for admin access to Linux VMs.
controllerClusterId string
The Ocean controller cluster.
name string
The Ocean cluster name.
userName string
Username for admin access to VMs.
acd_identifier str
The AKS identifier.
aks_name str
The AKS cluster name.
aks_resource_group_name str
Name of the Resource Group for AKS cluster.
ssh_public_key str
SSH public key for admin access to Linux VMs.
controller_cluster_id str
The Ocean controller cluster.
name str
The Ocean cluster name.
user_name str
Username for admin access to VMs.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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,
        acd_identifier: Optional[str] = None,
        aks_name: Optional[str] = None,
        aks_resource_group_name: Optional[str] = None,
        controller_cluster_id: Optional[str] = None,
        name: Optional[str] = None,
        ssh_public_key: Optional[str] = None,
        user_name: Optional[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)
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.

The following state arguments are supported:

AcdIdentifier string
The AKS identifier.
AksName string
The AKS cluster name.
AksResourceGroupName string
Name of the Resource Group for AKS cluster.
ControllerClusterId string
The Ocean controller cluster.
Name string
The Ocean cluster name.
SshPublicKey string
SSH public key for admin access to Linux VMs.
UserName string
Username for admin access to VMs.
AcdIdentifier string
The AKS identifier.
AksName string
The AKS cluster name.
AksResourceGroupName string
Name of the Resource Group for AKS cluster.
ControllerClusterId string
The Ocean controller cluster.
Name string
The Ocean cluster name.
SshPublicKey string
SSH public key for admin access to Linux VMs.
UserName string
Username for admin access to VMs.
acdIdentifier string
The AKS identifier.
aksName string
The AKS cluster name.
aksResourceGroupName string
Name of the Resource Group for AKS cluster.
controllerClusterId string
The Ocean controller cluster.
name string
The Ocean cluster name.
sshPublicKey string
SSH public key for admin access to Linux VMs.
userName string
Username for admin access to VMs.
acd_identifier str
The AKS identifier.
aks_name str
The AKS cluster name.
aks_resource_group_name str
Name of the Resource Group for AKS cluster.
controller_cluster_id str
The Ocean controller cluster.
name str
The Ocean cluster name.
ssh_public_key str
SSH public key for admin access to Linux VMs.
user_name str
Username for admin access to VMs.

Package Details

Repository
https://github.com/pulumi/pulumi-spotinst
License
Apache-2.0
Notes
This Pulumi package is based on the spotinst Terraform Provider.