Infrastructure Resource Args
data class InfrastructureResourceArgs(val infrastructureResourceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceId: Output<String>? = null, val resourceType: Output<String>? = null, val spaceName: Output<String>? = null) : ConvertibleToJava<InfrastructureResourceArgs>
An infrastructure resource under Space. Uses Azure REST API version 2023-11-14-preview. In version 2.x of the Azure Native provider, it used API version 2023-11-14-preview.
Example Usage
CreateOrUpdateInfrastructureResource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var infrastructureResource = new AzureNative.IntegrationSpaces.InfrastructureResource("infrastructureResource", new()
{
InfrastructureResourceName = "InfrastructureResource1",
ResourceGroupName = "testrg",
ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1",
ResourceType = "Microsoft.ApiManagement/service",
SpaceName = "Space1",
});
});
Content copied to clipboard
package main
import (
integrationspaces "github.com/pulumi/pulumi-azure-native-sdk/integrationspaces/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := integrationspaces.NewInfrastructureResource(ctx, "infrastructureResource", &integrationspaces.InfrastructureResourceArgs{
InfrastructureResourceName: pulumi.String("InfrastructureResource1"),
ResourceGroupName: pulumi.String("testrg"),
ResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"),
ResourceType: pulumi.String("Microsoft.ApiManagement/service"),
SpaceName: pulumi.String("Space1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.integrationspaces.InfrastructureResource;
import com.pulumi.azurenative.integrationspaces.InfrastructureResourceArgs;
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 infrastructureResource = new InfrastructureResource("infrastructureResource", InfrastructureResourceArgs.builder()
.infrastructureResourceName("InfrastructureResource1")
.resourceGroupName("testrg")
.resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1")
.resourceType("Microsoft.ApiManagement/service")
.spaceName("Space1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:integrationspaces:InfrastructureResource InfrastructureResource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}
Content copied to clipboard