azure-native.relationships.DependencyOfRelationship
Explore with Pulumi AI
Defines a dependencyOf relationship resource.
Uses Azure REST API version 2023-09-01-preview.
Example Usage
DependencyOfRelationships_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dependencyOfRelationship = new AzureNative.Relationships.DependencyOfRelationship("dependencyOfRelationship", new()
{
Name = "relationshipOne",
Properties = new AzureNative.Relationships.Inputs.DependencyOfRelationshipPropertiesArgs
{
TargetId = "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg123/providers/Microsoft.Web/staticSites/test-site",
TargetTenant = "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
ResourceUri = "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account",
});
});
package main
import (
relationships "github.com/pulumi/pulumi-azure-native-sdk/relationships/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relationships.NewDependencyOfRelationship(ctx, "dependencyOfRelationship", &relationships.DependencyOfRelationshipArgs{
Name: pulumi.String("relationshipOne"),
Properties: &relationships.DependencyOfRelationshipPropertiesArgs{
TargetId: pulumi.String("/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg123/providers/Microsoft.Web/staticSites/test-site"),
TargetTenant: pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
},
ResourceUri: pulumi.String("subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account"),
})
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.relationships.DependencyOfRelationship;
import com.pulumi.azurenative.relationships.DependencyOfRelationshipArgs;
import com.pulumi.azurenative.relationships.inputs.DependencyOfRelationshipPropertiesArgs;
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 dependencyOfRelationship = new DependencyOfRelationship("dependencyOfRelationship", DependencyOfRelationshipArgs.builder()
.name("relationshipOne")
.properties(DependencyOfRelationshipPropertiesArgs.builder()
.targetId("/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg123/providers/Microsoft.Web/staticSites/test-site")
.targetTenant("72f988bf-86f1-41af-91ab-2d7cd011db47")
.build())
.resourceUri("subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const dependencyOfRelationship = new azure_native.relationships.DependencyOfRelationship("dependencyOfRelationship", {
name: "relationshipOne",
properties: {
targetId: "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg123/providers/Microsoft.Web/staticSites/test-site",
targetTenant: "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
resourceUri: "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account",
});
import pulumi
import pulumi_azure_native as azure_native
dependency_of_relationship = azure_native.relationships.DependencyOfRelationship("dependencyOfRelationship",
name="relationshipOne",
properties={
"target_id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg123/providers/Microsoft.Web/staticSites/test-site",
"target_tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
resource_uri="subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account")
resources:
dependencyOfRelationship:
type: azure-native:relationships:DependencyOfRelationship
properties:
name: relationshipOne
properties:
targetId: /subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg123/providers/Microsoft.Web/staticSites/test-site
targetTenant: 72f988bf-86f1-41af-91ab-2d7cd011db47
resourceUri: subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account
Create DependencyOfRelationship Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DependencyOfRelationship(name: string, args: DependencyOfRelationshipArgs, opts?: CustomResourceOptions);
@overload
def DependencyOfRelationship(resource_name: str,
args: DependencyOfRelationshipArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DependencyOfRelationship(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_uri: Optional[str] = None,
name: Optional[str] = None,
properties: Optional[DependencyOfRelationshipPropertiesArgs] = None)
func NewDependencyOfRelationship(ctx *Context, name string, args DependencyOfRelationshipArgs, opts ...ResourceOption) (*DependencyOfRelationship, error)
public DependencyOfRelationship(string name, DependencyOfRelationshipArgs args, CustomResourceOptions? opts = null)
public DependencyOfRelationship(String name, DependencyOfRelationshipArgs args)
public DependencyOfRelationship(String name, DependencyOfRelationshipArgs args, CustomResourceOptions options)
type: azure-native:relationships:DependencyOfRelationship
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 DependencyOfRelationshipArgs
- 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 DependencyOfRelationshipArgs
- 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 DependencyOfRelationshipArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DependencyOfRelationshipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DependencyOfRelationshipArgs
- 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 dependencyOfRelationshipResource = new AzureNative.Relationships.DependencyOfRelationship("dependencyOfRelationshipResource", new()
{
ResourceUri = "string",
Name = "string",
Properties = new AzureNative.Relationships.Inputs.DependencyOfRelationshipPropertiesArgs
{
TargetId = "string",
TargetTenant = "string",
},
});
example, err := relationships.NewDependencyOfRelationship(ctx, "dependencyOfRelationshipResource", &relationships.DependencyOfRelationshipArgs{
ResourceUri: pulumi.String("string"),
Name: pulumi.String("string"),
Properties: &relationships.DependencyOfRelationshipPropertiesArgs{
TargetId: pulumi.String("string"),
TargetTenant: pulumi.String("string"),
},
})
var dependencyOfRelationshipResource = new DependencyOfRelationship("dependencyOfRelationshipResource", DependencyOfRelationshipArgs.builder()
.resourceUri("string")
.name("string")
.properties(DependencyOfRelationshipPropertiesArgs.builder()
.targetId("string")
.targetTenant("string")
.build())
.build());
dependency_of_relationship_resource = azure_native.relationships.DependencyOfRelationship("dependencyOfRelationshipResource",
resource_uri="string",
name="string",
properties={
"target_id": "string",
"target_tenant": "string",
})
const dependencyOfRelationshipResource = new azure_native.relationships.DependencyOfRelationship("dependencyOfRelationshipResource", {
resourceUri: "string",
name: "string",
properties: {
targetId: "string",
targetTenant: "string",
},
});
type: azure-native:relationships:DependencyOfRelationship
properties:
name: string
properties:
targetId: string
targetTenant: string
resourceUri: string
DependencyOfRelationship Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DependencyOfRelationship resource accepts the following input properties:
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- Name string
- Name of dependencyOf relationship.
- Properties
Pulumi.
Azure Native. Relationships. Inputs. Dependency Of Relationship Properties - The resource-specific properties for this resource.
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- Name string
- Name of dependencyOf relationship.
- Properties
Dependency
Of Relationship Properties Args - The resource-specific properties for this resource.
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
- name String
- Name of dependencyOf relationship.
- properties
Dependency
Of Relationship Properties - The resource-specific properties for this resource.
- resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- name string
- Name of dependencyOf relationship.
- properties
Dependency
Of Relationship Properties - The resource-specific properties for this resource.
- resource_
uri str - The fully qualified Azure Resource manager identifier of the resource.
- name str
- Name of dependencyOf relationship.
- properties
Dependency
Of Relationship Properties Args - The resource-specific properties for this resource.
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
- name String
- Name of dependencyOf relationship.
- properties Property Map
- The resource-specific properties for this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DependencyOfRelationship resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Data Pulumi.Azure Native. Relationships. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DependencyOfRelationshipProperties, DependencyOfRelationshipPropertiesArgs
- Target
Id string - The relationship target resource id.
- Target
Tenant string - The relationship target tenant id.
- Target
Id string - The relationship target resource id.
- Target
Tenant string - The relationship target tenant id.
- target
Id String - The relationship target resource id.
- target
Tenant String - The relationship target tenant id.
- target
Id string - The relationship target resource id.
- target
Tenant string - The relationship target tenant id.
- target_
id str - The relationship target resource id.
- target_
tenant str - The relationship target tenant id.
- target
Id String - The relationship target resource id.
- target
Tenant String - The relationship target tenant id.
DependencyOfRelationshipPropertiesResponse, DependencyOfRelationshipPropertiesResponseArgs
- Metadata
Pulumi.
Azure Native. Relationships. Inputs. Relationship Metadata Response - Metadata about the relationship.
- Origin
Information Pulumi.Azure Native. Relationships. Inputs. Relationship Origin Information Response - Information about the origin of the relationship.
- Provisioning
State string - The provisioning state of the relationship.
- Source
Id string - The relationship source resource id.
- Target
Id string - The relationship target resource id.
- Target
Tenant string - The relationship target tenant id.
- Metadata
Relationship
Metadata Response - Metadata about the relationship.
- Origin
Information RelationshipOrigin Information Response - Information about the origin of the relationship.
- Provisioning
State string - The provisioning state of the relationship.
- Source
Id string - The relationship source resource id.
- Target
Id string - The relationship target resource id.
- Target
Tenant string - The relationship target tenant id.
- metadata
Relationship
Metadata Response - Metadata about the relationship.
- origin
Information RelationshipOrigin Information Response - Information about the origin of the relationship.
- provisioning
State String - The provisioning state of the relationship.
- source
Id String - The relationship source resource id.
- target
Id String - The relationship target resource id.
- target
Tenant String - The relationship target tenant id.
- metadata
Relationship
Metadata Response - Metadata about the relationship.
- origin
Information RelationshipOrigin Information Response - Information about the origin of the relationship.
- provisioning
State string - The provisioning state of the relationship.
- source
Id string - The relationship source resource id.
- target
Id string - The relationship target resource id.
- target
Tenant string - The relationship target tenant id.
- metadata
Relationship
Metadata Response - Metadata about the relationship.
- origin_
information RelationshipOrigin Information Response - Information about the origin of the relationship.
- provisioning_
state str - The provisioning state of the relationship.
- source_
id str - The relationship source resource id.
- target_
id str - The relationship target resource id.
- target_
tenant str - The relationship target tenant id.
- metadata Property Map
- Metadata about the relationship.
- origin
Information Property Map - Information about the origin of the relationship.
- provisioning
State String - The provisioning state of the relationship.
- source
Id String - The relationship source resource id.
- target
Id String - The relationship target resource id.
- target
Tenant String - The relationship target tenant id.
RelationshipMetadataResponse, RelationshipMetadataResponseArgs
- Source
Type string - The type of the relationship source resource.
- Target
Type string - The type of the relationship target resource.
- Source
Type string - The type of the relationship source resource.
- Target
Type string - The type of the relationship target resource.
- source
Type String - The type of the relationship source resource.
- target
Type String - The type of the relationship target resource.
- source
Type string - The type of the relationship source resource.
- target
Type string - The type of the relationship target resource.
- source_
type str - The type of the relationship source resource.
- target_
type str - The type of the relationship target resource.
- source
Type String - The type of the relationship source resource.
- target
Type String - The type of the relationship target resource.
RelationshipOriginInformationResponse, RelationshipOriginInformationResponseArgs
- Discovery
Engine string - The name of the discovery engine that created the relationship.
- Relationship
Origin stringType - Identifies the origin type of the relationship.
- Discovery
Engine string - The name of the discovery engine that created the relationship.
- Relationship
Origin stringType - Identifies the origin type of the relationship.
- discovery
Engine String - The name of the discovery engine that created the relationship.
- relationship
Origin StringType - Identifies the origin type of the relationship.
- discovery
Engine string - The name of the discovery engine that created the relationship.
- relationship
Origin stringType - Identifies the origin type of the relationship.
- discovery_
engine str - The name of the discovery engine that created the relationship.
- relationship_
origin_ strtype - Identifies the origin type of the relationship.
- discovery
Engine String - The name of the discovery engine that created the relationship.
- relationship
Origin StringType - Identifies the origin type of the relationship.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:relationships:DependencyOfRelationship relationshipOne /{resourceUri}/providers/Microsoft.Relationships/dependencyOf/{name}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0