Azure Native

v1.80.0 published on Tuesday, Oct 4, 2022 by Pulumi

Association

The resource definition of this association. API Version: 2018-09-01-preview.

Example Usage

Create or update an association

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var association = new AzureNative.CustomProviders.Association("association", new()
    {
        AssociationName = "associationName",
        Scope = "scope",
        TargetResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := customproviders.NewAssociation(ctx, "association", &customproviders.AssociationArgs{
			AssociationName:  pulumi.String("associationName"),
			Scope:            pulumi.String("scope"),
			TargetResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName"),
		})
		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.customproviders.Association;
import com.pulumi.azurenative.customproviders.AssociationArgs;
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 association = new Association("association", AssociationArgs.builder()        
            .associationName("associationName")
            .scope("scope")
            .targetResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

association = azure_native.customproviders.Association("association",
    association_name="associationName",
    scope="scope",
    target_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const association = new azure_native.customproviders.Association("association", {
    associationName: "associationName",
    scope: "scope",
    targetResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName",
});
resources:
  association:
    type: azure-native:customproviders:Association
    properties:
      associationName: associationName
      scope: scope
      targetResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName

Create a Association Resource

new Association(name: string, args: AssociationArgs, opts?: CustomResourceOptions);
@overload
def Association(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                association_name: Optional[str] = None,
                scope: Optional[str] = None,
                target_resource_id: Optional[str] = None)
@overload
def Association(resource_name: str,
                args: AssociationArgs,
                opts: Optional[ResourceOptions] = None)
func NewAssociation(ctx *Context, name string, args AssociationArgs, opts ...ResourceOption) (*Association, error)
public Association(string name, AssociationArgs args, CustomResourceOptions? opts = null)
public Association(String name, AssociationArgs args)
public Association(String name, AssociationArgs args, CustomResourceOptions options)
type: azure-native:customproviders:Association
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AssociationArgs
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 AssociationArgs
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 AssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Association 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 Association resource accepts the following input properties:

Scope string

The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.

AssociationName string

The name of the association.

TargetResourceId string

The REST resource instance of the target resource for this association.

Scope string

The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.

AssociationName string

The name of the association.

TargetResourceId string

The REST resource instance of the target resource for this association.

scope String

The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.

associationName String

The name of the association.

targetResourceId String

The REST resource instance of the target resource for this association.

scope string

The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.

associationName string

The name of the association.

targetResourceId string

The REST resource instance of the target resource for this association.

scope str

The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.

association_name str

The name of the association.

target_resource_id str

The REST resource instance of the target resource for this association.

scope String

The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.

associationName String

The name of the association.

targetResourceId String

The REST resource instance of the target resource for this association.

Outputs

All input properties are implicitly available as output properties. Additionally, the Association resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The association name.

ProvisioningState string

The provisioning state of the association.

Type string

The association type.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The association name.

ProvisioningState string

The provisioning state of the association.

Type string

The association type.

id String

The provider-assigned unique ID for this managed resource.

name String

The association name.

provisioningState String

The provisioning state of the association.

type String

The association type.

id string

The provider-assigned unique ID for this managed resource.

name string

The association name.

provisioningState string

The provisioning state of the association.

type string

The association type.

id str

The provider-assigned unique ID for this managed resource.

name str

The association name.

provisioning_state str

The provisioning state of the association.

type str

The association type.

id String

The provider-assigned unique ID for this managed resource.

name String

The association name.

provisioningState String

The provisioning state of the association.

type String

The association type.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:customproviders:Association associationName /scope/providers/Microsoft.CustomProviders/associations/associationName 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0