azure-native.deploymentmanager.ServiceTopology
Explore with Pulumi AI
The resource representation of a service topology. API Version: 2019-11-01-preview.
Example Usage
Create a topology with Artifact Source
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceTopology = new AzureNative.DeploymentManager.ServiceTopology("serviceTopology", new()
{
ArtifactSourceId = "Microsoft.DeploymentManager/artifactSources/myArtifactSource",
Location = "centralus",
ResourceGroupName = "myResourceGroup",
ServiceTopologyName = "myTopology",
Tags = null,
});
});
package main
import (
deploymentmanager "github.com/pulumi/pulumi-azure-native-sdk/deploymentmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deploymentmanager.NewServiceTopology(ctx, "serviceTopology", &deploymentmanager.ServiceTopologyArgs{
ArtifactSourceId: pulumi.String("Microsoft.DeploymentManager/artifactSources/myArtifactSource"),
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceTopologyName: pulumi.String("myTopology"),
Tags: nil,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.deploymentmanager.ServiceTopology;
import com.pulumi.azurenative.deploymentmanager.ServiceTopologyArgs;
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 serviceTopology = new ServiceTopology("serviceTopology", ServiceTopologyArgs.builder()
.artifactSourceId("Microsoft.DeploymentManager/artifactSources/myArtifactSource")
.location("centralus")
.resourceGroupName("myResourceGroup")
.serviceTopologyName("myTopology")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
service_topology = azure_native.deploymentmanager.ServiceTopology("serviceTopology",
artifact_source_id="Microsoft.DeploymentManager/artifactSources/myArtifactSource",
location="centralus",
resource_group_name="myResourceGroup",
service_topology_name="myTopology",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const serviceTopology = new azure_native.deploymentmanager.ServiceTopology("serviceTopology", {
artifactSourceId: "Microsoft.DeploymentManager/artifactSources/myArtifactSource",
location: "centralus",
resourceGroupName: "myResourceGroup",
serviceTopologyName: "myTopology",
tags: {},
});
resources:
serviceTopology:
type: azure-native:deploymentmanager:ServiceTopology
properties:
artifactSourceId: Microsoft.DeploymentManager/artifactSources/myArtifactSource
location: centralus
resourceGroupName: myResourceGroup
serviceTopologyName: myTopology
tags: {}
Create a topology without Artifact Source
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceTopology = new AzureNative.DeploymentManager.ServiceTopology("serviceTopology", new()
{
Location = "centralus",
ResourceGroupName = "myResourceGroup",
ServiceTopologyName = "myTopology",
Tags = null,
});
});
package main
import (
deploymentmanager "github.com/pulumi/pulumi-azure-native-sdk/deploymentmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deploymentmanager.NewServiceTopology(ctx, "serviceTopology", &deploymentmanager.ServiceTopologyArgs{
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceTopologyName: pulumi.String("myTopology"),
Tags: nil,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.deploymentmanager.ServiceTopology;
import com.pulumi.azurenative.deploymentmanager.ServiceTopologyArgs;
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 serviceTopology = new ServiceTopology("serviceTopology", ServiceTopologyArgs.builder()
.location("centralus")
.resourceGroupName("myResourceGroup")
.serviceTopologyName("myTopology")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
service_topology = azure_native.deploymentmanager.ServiceTopology("serviceTopology",
location="centralus",
resource_group_name="myResourceGroup",
service_topology_name="myTopology",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const serviceTopology = new azure_native.deploymentmanager.ServiceTopology("serviceTopology", {
location: "centralus",
resourceGroupName: "myResourceGroup",
serviceTopologyName: "myTopology",
tags: {},
});
resources:
serviceTopology:
type: azure-native:deploymentmanager:ServiceTopology
properties:
location: centralus
resourceGroupName: myResourceGroup
serviceTopologyName: myTopology
tags: {}
Create ServiceTopology Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceTopology(name: string, args: ServiceTopologyArgs, opts?: CustomResourceOptions);
@overload
def ServiceTopology(resource_name: str,
args: ServiceTopologyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceTopology(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
artifact_source_id: Optional[str] = None,
location: Optional[str] = None,
service_topology_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewServiceTopology(ctx *Context, name string, args ServiceTopologyArgs, opts ...ResourceOption) (*ServiceTopology, error)
public ServiceTopology(string name, ServiceTopologyArgs args, CustomResourceOptions? opts = null)
public ServiceTopology(String name, ServiceTopologyArgs args)
public ServiceTopology(String name, ServiceTopologyArgs args, CustomResourceOptions options)
type: azure-native:deploymentmanager:ServiceTopology
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 ServiceTopologyArgs
- 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 ServiceTopologyArgs
- 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 ServiceTopologyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceTopologyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceTopologyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serviceTopologyResource = new AzureNative.Deploymentmanager.ServiceTopology("serviceTopologyResource", new()
{
ResourceGroupName = "string",
ArtifactSourceId = "string",
Location = "string",
ServiceTopologyName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := deploymentmanager.NewServiceTopology(ctx, "serviceTopologyResource", &deploymentmanager.ServiceTopologyArgs{
ResourceGroupName: "string",
ArtifactSourceId: "string",
Location: "string",
ServiceTopologyName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var serviceTopologyResource = new ServiceTopology("serviceTopologyResource", ServiceTopologyArgs.builder()
.resourceGroupName("string")
.artifactSourceId("string")
.location("string")
.serviceTopologyName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
service_topology_resource = azure_native.deploymentmanager.ServiceTopology("serviceTopologyResource",
resource_group_name=string,
artifact_source_id=string,
location=string,
service_topology_name=string,
tags={
string: string,
})
const serviceTopologyResource = new azure_native.deploymentmanager.ServiceTopology("serviceTopologyResource", {
resourceGroupName: "string",
artifactSourceId: "string",
location: "string",
serviceTopologyName: "string",
tags: {
string: "string",
},
});
type: azure-native:deploymentmanager:ServiceTopology
properties:
artifactSourceId: string
location: string
resourceGroupName: string
serviceTopologyName: string
tags:
string: string
ServiceTopology 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 ServiceTopology resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Artifact
Source stringId - The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
- Location string
- The geo-location where the resource lives
- Service
Topology stringName - The name of the service topology .
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Artifact
Source stringId - The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
- Location string
- The geo-location where the resource lives
- Service
Topology stringName - The name of the service topology .
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- artifact
Source StringId - The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
- location String
- The geo-location where the resource lives
- service
Topology StringName - The name of the service topology .
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- artifact
Source stringId - The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
- location string
- The geo-location where the resource lives
- service
Topology stringName - The name of the service topology .
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- artifact_
source_ strid - The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
- location str
- The geo-location where the resource lives
- service_
topology_ strname - The name of the service topology .
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- artifact
Source StringId - The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
- location String
- The geo-location where the resource lives
- service
Topology StringName - The name of the service topology .
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceTopology resource produces the following output properties:
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:deploymentmanager:ServiceTopology myTopology /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0