1. Packages
  2. Azure Native v1
  3. API Docs
  4. customproviders
  5. Association
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.customproviders.Association

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

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

    Example Usage

    Create or update an association

    using System.Collections.Generic;
    using System.Linq;
    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/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 Association Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Association(name: string, args: AssociationArgs, opts?: CustomResourceOptions);
    @overload
    def Association(resource_name: str,
                    args: AssociationArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Association(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    scope: Optional[str] = None,
                    association_name: Optional[str] = None,
                    target_resource_id: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var associationResource = new AzureNative.Customproviders.Association("associationResource", new()
    {
        Scope = "string",
        AssociationName = "string",
        TargetResourceId = "string",
    });
    
    example, err := customproviders.NewAssociation(ctx, "associationResource", &customproviders.AssociationArgs{
    	Scope:            "string",
    	AssociationName:  "string",
    	TargetResourceId: "string",
    })
    
    var associationResource = new Association("associationResource", AssociationArgs.builder()
        .scope("string")
        .associationName("string")
        .targetResourceId("string")
        .build());
    
    association_resource = azure_native.customproviders.Association("associationResource",
        scope=string,
        association_name=string,
        target_resource_id=string)
    
    const associationResource = new azure_native.customproviders.Association("associationResource", {
        scope: "string",
        associationName: "string",
        targetResourceId: "string",
    });
    
    type: azure-native:customproviders:Association
    properties:
        associationName: string
        scope: string
        targetResourceId: string
    

    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 
    

    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
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi