![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.servicefabricmesh.kotlin.ApplicationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicefabricmesh.kotlin
import com.pulumi.azurenative.servicefabricmesh.ApplicationArgs.builder
import com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.DiagnosticsDescriptionArgs
import com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.DiagnosticsDescriptionArgsBuilder
import com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.ServiceResourceDescriptionArgs
import com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.ServiceResourceDescriptionArgsBuilder
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
/**
* This type describes an application resource.
* Azure REST API version: 2018-09-01-preview. Prior API version in Azure Native 1.x: 2018-09-01-preview.
* Other available API versions: 2018-07-01-preview.
* ## Example Usage
* ### CreateOrUpdateApplication
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var application = new AzureNative.ServiceFabricMesh.Application("application", new()
* {
* ApplicationResourceName = "sampleApplication",
* Description = "Service Fabric Mesh sample application.",
* Location = "EastUS",
* ResourceGroupName = "sbz_demo",
* Services = new[]
* {
* new AzureNative.ServiceFabricMesh.Inputs.ServiceResourceDescriptionArgs
* {
* CodePackages = new[]
* {
* new AzureNative.ServiceFabricMesh.Inputs.ContainerCodePackagePropertiesArgs
* {
* Endpoints = new[]
* {
* new AzureNative.ServiceFabricMesh.Inputs.EndpointPropertiesArgs
* {
* Name = "helloWorldListener",
* Port = 80,
* },
* },
* Image = "seabreeze/sbz-helloworld:1.0-alpine",
* Name = "helloWorldCode",
* Resources = new AzureNative.ServiceFabricMesh.Inputs.ResourceRequirementsArgs
* {
* Requests = new AzureNative.ServiceFabricMesh.Inputs.ResourceRequestsArgs
* {
* Cpu = 1,
* MemoryInGB = 1,
* },
* },
* },
* },
* Description = "SeaBreeze Hello World Service.",
* Name = "helloWorldService",
* NetworkRefs = new[]
* {
* new AzureNative.ServiceFabricMesh.Inputs.NetworkRefArgs
* {
* EndpointRefs = new[]
* {
* new AzureNative.ServiceFabricMesh.Inputs.EndpointRefArgs
* {
* Name = "helloWorldListener",
* },
* },
* Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
* },
* },
* OsType = AzureNative.ServiceFabricMesh.OperatingSystemType.Linux,
* ReplicaCount = 1,
* },
* },
* Tags = null,
* });
* });
* ```
* ```go
* package main
* import (
* servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := servicefabricmesh.NewApplication(ctx, "application", &servicefabricmesh.ApplicationArgs{
* ApplicationResourceName: pulumi.String("sampleApplication"),
* Description: pulumi.String("Service Fabric Mesh sample application."),
* Location: pulumi.String("EastUS"),
* ResourceGroupName: pulumi.String("sbz_demo"),
* Services: servicefabricmesh.ServiceResourceDescriptionArray{
* &servicefabricmesh.ServiceResourceDescriptionArgs{
* CodePackages: servicefabricmesh.ContainerCodePackagePropertiesArray{
* &servicefabricmesh.ContainerCodePackagePropertiesArgs{
* Endpoints: servicefabricmesh.EndpointPropertiesArray{
* &servicefabricmesh.EndpointPropertiesArgs{
* Name: pulumi.String("helloWorldListener"),
* Port: pulumi.Int(80),
* },
* },
* Image: pulumi.String("seabreeze/sbz-helloworld:1.0-alpine"),
* Name: pulumi.String("helloWorldCode"),
* Resources: &servicefabricmesh.ResourceRequirementsArgs{
* Requests: &servicefabricmesh.ResourceRequestsArgs{
* Cpu: pulumi.Float64(1),
* MemoryInGB: pulumi.Float64(1),
* },
* },
* },
* },
* Description: pulumi.String("SeaBreeze Hello World Service."),
* Name: pulumi.String("helloWorldService"),
* NetworkRefs: servicefabricmesh.NetworkRefArray{
* &servicefabricmesh.NetworkRefArgs{
* EndpointRefs: servicefabricmesh.EndpointRefArray{
* &servicefabricmesh.EndpointRefArgs{
* Name: pulumi.String("helloWorldListener"),
* },
* },
* Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork"),
* },
* },
* OsType: pulumi.String(servicefabricmesh.OperatingSystemTypeLinux),
* ReplicaCount: pulumi.Int(1),
* },
* },
* Tags: nil,
* })
* 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.azurenative.servicefabricmesh.Application;
* import com.pulumi.azurenative.servicefabricmesh.ApplicationArgs;
* import com.pulumi.azurenative.servicefabricmesh.inputs.ServiceResourceDescriptionArgs;
* 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 application = new Application("application", ApplicationArgs.builder()
* .applicationResourceName("sampleApplication")
* .description("Service Fabric Mesh sample application.")
* .location("EastUS")
* .resourceGroupName("sbz_demo")
* .services(ServiceResourceDescriptionArgs.builder()
* .codePackages(ContainerCodePackagePropertiesArgs.builder()
* .endpoints(EndpointPropertiesArgs.builder()
* .name("helloWorldListener")
* .port(80)
* .build())
* .image("seabreeze/sbz-helloworld:1.0-alpine")
* .name("helloWorldCode")
* .resources(ResourceRequirementsArgs.builder()
* .requests(ResourceRequestsArgs.builder()
* .cpu(1)
* .memoryInGB(1)
* .build())
* .build())
* .build())
* .description("SeaBreeze Hello World Service.")
* .name("helloWorldService")
* .networkRefs(NetworkRefArgs.builder()
* .endpointRefs(EndpointRefArgs.builder()
* .name("helloWorldListener")
* .build())
* .name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork")
* .build())
* .osType("Linux")
* .replicaCount(1)
* .build())
* .tags()
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:servicefabricmesh:Application sampleApplication /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}
* ```
* @property applicationResourceName The identity of the application.
* @property debugParams Internal - used by Visual Studio to setup the debugging session on the local development environment.
* @property description User readable description of the application.
* @property diagnostics Describes the diagnostics definition and usage for an application resource.
* @property location The geo-location where the resource lives
* @property resourceGroupName Azure resource group name
* @property services Describes the services in the application. This property is used to create or modify services of the application. On get only the name of the service is returned. The service description can be obtained by querying for the service resource.
* @property tags Resource tags.
*/
public data class ApplicationArgs(
public val applicationResourceName: Output? = null,
public val debugParams: Output? = null,
public val description: Output? = null,
public val diagnostics: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val services: Output>? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy