All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.orbital.kotlin.SpacecraftArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.orbital.kotlin

import com.pulumi.azure.orbital.SpacecraftArgs.builder
import com.pulumi.azure.orbital.kotlin.inputs.SpacecraftLinkArgs
import com.pulumi.azure.orbital.kotlin.inputs.SpacecraftLinkArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Spacecraft.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "rg-example",
 *     location: "West Europe",
 * });
 * const exampleSpacecraft = new azure.orbital.Spacecraft("example", {
 *     name: "example-spacecraft",
 *     resourceGroupName: example.name,
 *     location: "westeurope",
 *     noradId: "12345",
 *     links: [{
 *         bandwidthMhz: 30,
 *         centerFrequencyMhz: 2050,
 *         direction: "Uplink",
 *         polarization: "LHCP",
 *         name: "examplename",
 *     }],
 *     twoLineElements: [
 *         "1 23455U 94089A   97320.90946019  .00000140  00000-0  10191-3 0  2621",
 *         "2 23455  99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495",
 *     ],
 *     titleLine: "AQUA",
 *     tags: {
 *         "aks-managed-cluster-name": "9a57225d-a405-4d40-aa46-f13d2342abef",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="rg-example",
 *     location="West Europe")
 * example_spacecraft = azure.orbital.Spacecraft("example",
 *     name="example-spacecraft",
 *     resource_group_name=example.name,
 *     location="westeurope",
 *     norad_id="12345",
 *     links=[azure.orbital.SpacecraftLinkArgs(
 *         bandwidth_mhz=30,
 *         center_frequency_mhz=2050,
 *         direction="Uplink",
 *         polarization="LHCP",
 *         name="examplename",
 *     )],
 *     two_line_elements=[
 *         "1 23455U 94089A   97320.90946019  .00000140  00000-0  10191-3 0  2621",
 *         "2 23455  99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495",
 *     ],
 *     title_line="AQUA",
 *     tags={
 *         "aks-managed-cluster-name": "9a57225d-a405-4d40-aa46-f13d2342abef",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "rg-example",
 *         Location = "West Europe",
 *     });
 *     var exampleSpacecraft = new Azure.Orbital.Spacecraft("example", new()
 *     {
 *         Name = "example-spacecraft",
 *         ResourceGroupName = example.Name,
 *         Location = "westeurope",
 *         NoradId = "12345",
 *         Links = new[]
 *         {
 *             new Azure.Orbital.Inputs.SpacecraftLinkArgs
 *             {
 *                 BandwidthMhz = 30,
 *                 CenterFrequencyMhz = 2050,
 *                 Direction = "Uplink",
 *                 Polarization = "LHCP",
 *                 Name = "examplename",
 *             },
 *         },
 *         TwoLineElements = new[]
 *         {
 *             "1 23455U 94089A   97320.90946019  .00000140  00000-0  10191-3 0  2621",
 *             "2 23455  99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495",
 *         },
 *         TitleLine = "AQUA",
 *         Tags =
 *         {
 *             { "aks-managed-cluster-name", "9a57225d-a405-4d40-aa46-f13d2342abef" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/orbital"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("rg-example"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = orbital.NewSpacecraft(ctx, "example", &orbital.SpacecraftArgs{
 * 			Name:              pulumi.String("example-spacecraft"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          pulumi.String("westeurope"),
 * 			NoradId:           pulumi.String("12345"),
 * 			Links: orbital.SpacecraftLinkArray{
 * 				&orbital.SpacecraftLinkArgs{
 * 					BandwidthMhz:       pulumi.Float64(30),
 * 					CenterFrequencyMhz: pulumi.Float64(2050),
 * 					Direction:          pulumi.String("Uplink"),
 * 					Polarization:       pulumi.String("LHCP"),
 * 					Name:               pulumi.String("examplename"),
 * 				},
 * 			},
 * 			TwoLineElements: pulumi.StringArray{
 * 				pulumi.String("1 23455U 94089A   97320.90946019  .00000140  00000-0  10191-3 0  2621"),
 * 				pulumi.String("2 23455  99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495"),
 * 			},
 * 			TitleLine: pulumi.String("AQUA"),
 * 			Tags: pulumi.StringMap{
 * 				"aks-managed-cluster-name": pulumi.String("9a57225d-a405-4d40-aa46-f13d2342abef"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.orbital.Spacecraft;
 * import com.pulumi.azure.orbital.SpacecraftArgs;
 * import com.pulumi.azure.orbital.inputs.SpacecraftLinkArgs;
 * 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 ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("rg-example")
 *             .location("West Europe")
 *             .build());
 *         var exampleSpacecraft = new Spacecraft("exampleSpacecraft", SpacecraftArgs.builder()
 *             .name("example-spacecraft")
 *             .resourceGroupName(example.name())
 *             .location("westeurope")
 *             .noradId("12345")
 *             .links(SpacecraftLinkArgs.builder()
 *                 .bandwidthMhz(30)
 *                 .centerFrequencyMhz(2050)
 *                 .direction("Uplink")
 *                 .polarization("LHCP")
 *                 .name("examplename")
 *                 .build())
 *             .twoLineElements(
 *                 "1 23455U 94089A   97320.90946019  .00000140  00000-0  10191-3 0  2621",
 *                 "2 23455  99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495")
 *             .titleLine("AQUA")
 *             .tags(Map.of("aks-managed-cluster-name", "9a57225d-a405-4d40-aa46-f13d2342abef"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: rg-example
 *       location: West Europe
 *   exampleSpacecraft:
 *     type: azure:orbital:Spacecraft
 *     name: example
 *     properties:
 *       name: example-spacecraft
 *       resourceGroupName: ${example.name}
 *       location: westeurope
 *       noradId: '12345'
 *       links:
 *         - bandwidthMhz: 30
 *           centerFrequencyMhz: 2050
 *           direction: Uplink
 *           polarization: LHCP
 *           name: examplename
 *       twoLineElements:
 *         - 1 23455U 94089A   97320.90946019  .00000140  00000-0  10191-3 0  2621
 *         - 2 23455  99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495
 *       titleLine: AQUA
 *       tags:
 *         aks-managed-cluster-name: 9a57225d-a405-4d40-aa46-f13d2342abef
 * ```
 * 
 * ## Import
 * Spacecraft can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:orbital/spacecraft:Spacecraft example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Orbital/spacecrafts/spacecraft1
 * ```
 * @property links A `links` block as defined below. Changing this forces a new resource to be created.
 * @property location The location where the Spacecraft exists. Changing this forces a new resource to be created.
 * @property name The name of the Spacecraft. Changing this forces a new resource to be created.
 * @property noradId NORAD ID of the Spacecraft.
 * @property resourceGroupName The name of the Resource Group where the Spacecraft exists. Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the resource.
 * @property titleLine Title of the two line elements (TLE).
 * @property twoLineElements A list of the two line elements (TLE), the first string being the first of the TLE, the second string being the second line of the TLE. Changing this forces a new resource to be created.
 */
public data class SpacecraftArgs(
    public val links: Output>? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val noradId: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val titleLine: Output? = null,
    public val twoLineElements: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.orbital.SpacecraftArgs =
        com.pulumi.azure.orbital.SpacecraftArgs.builder()
            .links(links?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .noradId(noradId?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .titleLine(titleLine?.applyValue({ args0 -> args0 }))
            .twoLineElements(twoLineElements?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SpacecraftArgs].
 */
@PulumiTagMarker
public class SpacecraftArgsBuilder internal constructor() {
    private var links: Output>? = null

    private var location: Output? = null

    private var name: Output? = null

    private var noradId: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var titleLine: Output? = null

    private var twoLineElements: Output>? = null

    /**
     * @param value A `links` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("sksdvqjhyeqnhncv")
    public suspend fun links(`value`: Output>) {
        this.links = value
    }

    @JvmName("fnbtlbiperyoahbx")
    public suspend fun links(vararg values: Output) {
        this.links = Output.all(values.asList())
    }

    /**
     * @param values A `links` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("uakkgtmtndsjfuec")
    public suspend fun links(values: List>) {
        this.links = Output.all(values)
    }

    /**
     * @param value The location where the Spacecraft exists. Changing this forces a new resource to be created.
     */
    @JvmName("kuholssfkawjmrxp")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the Spacecraft. Changing this forces a new resource to be created.
     */
    @JvmName("hvpukpfeejpmpkpp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value NORAD ID of the Spacecraft.
     */
    @JvmName("fguxgdwogqmumxxj")
    public suspend fun noradId(`value`: Output) {
        this.noradId = value
    }

    /**
     * @param value The name of the Resource Group where the Spacecraft exists. Changing this forces a new resource to be created.
     */
    @JvmName("ljrqnukdmacgrqww")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("jfrfscjqdljukkxp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Title of the two line elements (TLE).
     */
    @JvmName("ufksvcwdalsrtukb")
    public suspend fun titleLine(`value`: Output) {
        this.titleLine = value
    }

    /**
     * @param value A list of the two line elements (TLE), the first string being the first of the TLE, the second string being the second line of the TLE. Changing this forces a new resource to be created.
     */
    @JvmName("asrvjvwmsdqpedky")
    public suspend fun twoLineElements(`value`: Output>) {
        this.twoLineElements = value
    }

    @JvmName("ycvbxtooignuakqs")
    public suspend fun twoLineElements(vararg values: Output) {
        this.twoLineElements = Output.all(values.asList())
    }

    /**
     * @param values A list of the two line elements (TLE), the first string being the first of the TLE, the second string being the second line of the TLE. Changing this forces a new resource to be created.
     */
    @JvmName("pkjkxhjiljpcnqol")
    public suspend fun twoLineElements(values: List>) {
        this.twoLineElements = Output.all(values)
    }

    /**
     * @param value A `links` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("smauhrhdgroovvbd")
    public suspend fun links(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param argument A `links` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("hljdxhdmrkmnqjjx")
    public suspend fun links(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpacecraftLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument A `links` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("capokmduhfhmysqs")
    public suspend fun links(vararg argument: suspend SpacecraftLinkArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SpacecraftLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument A `links` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("yiuaomgjiwwdvppy")
    public suspend fun links(argument: suspend SpacecraftLinkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SpacecraftLinkArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param values A `links` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("yljvyynttiriaghi")
    public suspend fun links(vararg values: SpacecraftLinkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param value The location where the Spacecraft exists. Changing this forces a new resource to be created.
     */
    @JvmName("xncdikfodiikiuni")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the Spacecraft. Changing this forces a new resource to be created.
     */
    @JvmName("ehofbapsaslwlnch")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value NORAD ID of the Spacecraft.
     */
    @JvmName("lawevohscwqipfvl")
    public suspend fun noradId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noradId = mapped
    }

    /**
     * @param value The name of the Resource Group where the Spacecraft exists. Changing this forces a new resource to be created.
     */
    @JvmName("pawdcdoixndixdny")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("xkkabjgajoooukft")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("pgvxspixqeorenye")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Title of the two line elements (TLE).
     */
    @JvmName("smvqvfmgbgxmfmeu")
    public suspend fun titleLine(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.titleLine = mapped
    }

    /**
     * @param value A list of the two line elements (TLE), the first string being the first of the TLE, the second string being the second line of the TLE. Changing this forces a new resource to be created.
     */
    @JvmName("cqphhckmqmltoikc")
    public suspend fun twoLineElements(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.twoLineElements = mapped
    }

    /**
     * @param values A list of the two line elements (TLE), the first string being the first of the TLE, the second string being the second line of the TLE. Changing this forces a new resource to be created.
     */
    @JvmName("nvkpaggeigcdmjjc")
    public suspend fun twoLineElements(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.twoLineElements = mapped
    }

    internal fun build(): SpacecraftArgs = SpacecraftArgs(
        links = links,
        location = location,
        name = name,
        noradId = noradId,
        resourceGroupName = resourceGroupName,
        tags = tags,
        titleLine = titleLine,
        twoLineElements = twoLineElements,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy