azure-native.network.NspAssociation
Explore with Pulumi AI
The NSP resource association resource API Version: 2021-02-01-preview.
Example Usage
NspAssociationPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var nspAssociation = new AzureNative.Network.NspAssociation("nspAssociation", new()
{
AccessMode = "Enforced",
AssociationName = "association1",
NetworkSecurityPerimeterName = "nsp1",
PrivateLinkResource = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}",
},
Profile = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}",
},
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewNspAssociation(ctx, "nspAssociation", &network.NspAssociationArgs{
AccessMode: pulumi.String("Enforced"),
AssociationName: pulumi.String("association1"),
NetworkSecurityPerimeterName: pulumi.String("nsp1"),
PrivateLinkResource: &network.SubResourceArgs{
Id: pulumi.String("/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}"),
},
Profile: &network.SubResourceArgs{
Id: pulumi.String("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"),
},
ResourceGroupName: pulumi.String("rg1"),
})
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.network.NspAssociation;
import com.pulumi.azurenative.network.NspAssociationArgs;
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 nspAssociation = new NspAssociation("nspAssociation", NspAssociationArgs.builder()
.accessMode("Enforced")
.associationName("association1")
.networkSecurityPerimeterName("nsp1")
.privateLinkResource(Map.of("id", "/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}"))
.profile(Map.of("id", "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"))
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
nsp_association = azure_native.network.NspAssociation("nspAssociation",
access_mode="Enforced",
association_name="association1",
network_security_perimeter_name="nsp1",
private_link_resource=azure_native.network.SubResourceArgs(
id="/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}",
),
profile=azure_native.network.SubResourceArgs(
id="/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}",
),
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const nspAssociation = new azure_native.network.NspAssociation("nspAssociation", {
accessMode: "Enforced",
associationName: "association1",
networkSecurityPerimeterName: "nsp1",
privateLinkResource: {
id: "/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}",
},
profile: {
id: "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}",
},
resourceGroupName: "rg1",
});
resources:
nspAssociation:
type: azure-native:network:NspAssociation
properties:
accessMode: Enforced
associationName: association1
networkSecurityPerimeterName: nsp1
privateLinkResource:
id: /subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}
profile:
id: /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}
resourceGroupName: rg1
Create NspAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NspAssociation(name: string, args: NspAssociationArgs, opts?: CustomResourceOptions);
@overload
def NspAssociation(resource_name: str,
args: NspAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NspAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_security_perimeter_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
access_mode: Optional[Union[str, AssociationAccessMode]] = None,
association_name: Optional[str] = None,
id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
private_link_resource: Optional[SubResourceArgs] = None,
profile: Optional[SubResourceArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewNspAssociation(ctx *Context, name string, args NspAssociationArgs, opts ...ResourceOption) (*NspAssociation, error)
public NspAssociation(string name, NspAssociationArgs args, CustomResourceOptions? opts = null)
public NspAssociation(String name, NspAssociationArgs args)
public NspAssociation(String name, NspAssociationArgs args, CustomResourceOptions options)
type: azure-native:network:NspAssociation
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 NspAssociationArgs
- 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 NspAssociationArgs
- 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 NspAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NspAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NspAssociationArgs
- 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 nspAssociationResource = new AzureNative.Network.NspAssociation("nspAssociationResource", new()
{
NetworkSecurityPerimeterName = "string",
ResourceGroupName = "string",
AccessMode = "string",
AssociationName = "string",
Id = "string",
Location = "string",
Name = "string",
PrivateLinkResource =
{
{ "id", "string" },
},
Profile =
{
{ "id", "string" },
},
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewNspAssociation(ctx, "nspAssociationResource", &network.NspAssociationArgs{
NetworkSecurityPerimeterName: "string",
ResourceGroupName: "string",
AccessMode: "string",
AssociationName: "string",
Id: "string",
Location: "string",
Name: "string",
PrivateLinkResource: map[string]interface{}{
"id": "string",
},
Profile: map[string]interface{}{
"id": "string",
},
Tags: map[string]interface{}{
"string": "string",
},
})
var nspAssociationResource = new NspAssociation("nspAssociationResource", NspAssociationArgs.builder()
.networkSecurityPerimeterName("string")
.resourceGroupName("string")
.accessMode("string")
.associationName("string")
.id("string")
.location("string")
.name("string")
.privateLinkResource(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.profile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
nsp_association_resource = azure_native.network.NspAssociation("nspAssociationResource",
network_security_perimeter_name=string,
resource_group_name=string,
access_mode=string,
association_name=string,
id=string,
location=string,
name=string,
private_link_resource={
id: string,
},
profile={
id: string,
},
tags={
string: string,
})
const nspAssociationResource = new azure_native.network.NspAssociation("nspAssociationResource", {
networkSecurityPerimeterName: "string",
resourceGroupName: "string",
accessMode: "string",
associationName: "string",
id: "string",
location: "string",
name: "string",
privateLinkResource: {
id: "string",
},
profile: {
id: "string",
},
tags: {
string: "string",
},
});
type: azure-native:network:NspAssociation
properties:
accessMode: string
associationName: string
id: string
location: string
name: string
networkSecurityPerimeterName: string
privateLinkResource:
id: string
profile:
id: string
resourceGroupName: string
tags:
string: string
NspAssociation 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 NspAssociation resource accepts the following input properties:
- Network
Security stringPerimeter Name - The name of the network security perimeter.
- Resource
Group stringName - The name of the resource group.
- Access
Mode string | Pulumi.Azure Native. Network. Association Access Mode - Access mode on the association.
- Association
Name string - The name of the NSP association.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Private
Link Pulumi.Resource Azure Native. Network. Inputs. Sub Resource - The PaaS resource to be associated.
- Profile
Pulumi.
Azure Native. Network. Inputs. Sub Resource - Profile id to which the PaaS resource is associated.
- Dictionary<string, string>
- Resource tags.
- Network
Security stringPerimeter Name - The name of the network security perimeter.
- Resource
Group stringName - The name of the resource group.
- Access
Mode string | AssociationAccess Mode - Access mode on the association.
- Association
Name string - The name of the NSP association.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Private
Link SubResource Resource Args - The PaaS resource to be associated.
- Profile
Sub
Resource Args - Profile id to which the PaaS resource is associated.
- map[string]string
- Resource tags.
- network
Security StringPerimeter Name - The name of the network security perimeter.
- resource
Group StringName - The name of the resource group.
- access
Mode String | AssociationAccess Mode - Access mode on the association.
- association
Name String - The name of the NSP association.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- private
Link SubResource Resource - The PaaS resource to be associated.
- profile
Sub
Resource - Profile id to which the PaaS resource is associated.
- Map<String,String>
- Resource tags.
- network
Security stringPerimeter Name - The name of the network security perimeter.
- resource
Group stringName - The name of the resource group.
- access
Mode string | AssociationAccess Mode - Access mode on the association.
- association
Name string - The name of the NSP association.
- id string
- Resource ID.
- location string
- Resource location.
- name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- private
Link SubResource Resource - The PaaS resource to be associated.
- profile
Sub
Resource - Profile id to which the PaaS resource is associated.
- {[key: string]: string}
- Resource tags.
- network_
security_ strperimeter_ name - The name of the network security perimeter.
- resource_
group_ strname - The name of the resource group.
- access_
mode str | AssociationAccess Mode - Access mode on the association.
- association_
name str - The name of the NSP association.
- id str
- Resource ID.
- location str
- Resource location.
- name str
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- private_
link_ Subresource Resource Args - The PaaS resource to be associated.
- profile
Sub
Resource Args - Profile id to which the PaaS resource is associated.
- Mapping[str, str]
- Resource tags.
- network
Security StringPerimeter Name - The name of the network security perimeter.
- resource
Group StringName - The name of the resource group.
- access
Mode String | "Learning" | "Enforced" | "Audit" - Access mode on the association.
- association
Name String - The name of the NSP association.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- private
Link Property MapResource - The PaaS resource to be associated.
- profile Property Map
- Profile id to which the PaaS resource is associated.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the NspAssociation resource produces the following output properties:
- Has
Provisioning stringIssues - Specifies if there are provisioning issues
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state of the resource association resource.
- Type string
- Resource type.
- Has
Provisioning stringIssues - Specifies if there are provisioning issues
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state of the resource association resource.
- Type string
- Resource type.
- has
Provisioning StringIssues - Specifies if there are provisioning issues
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state of the resource association resource.
- type String
- Resource type.
- has
Provisioning stringIssues - Specifies if there are provisioning issues
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - The provisioning state of the resource association resource.
- type string
- Resource type.
- has_
provisioning_ strissues - Specifies if there are provisioning issues
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - The provisioning state of the resource association resource.
- type str
- Resource type.
- has
Provisioning StringIssues - Specifies if there are provisioning issues
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state of the resource association resource.
- type String
- Resource type.
Supporting Types
AssociationAccessMode, AssociationAccessModeArgs
- Learning
- Learning
- Enforced
- Enforced
- Audit
- Audit
- Association
Access Mode Learning - Learning
- Association
Access Mode Enforced - Enforced
- Association
Access Mode Audit - Audit
- Learning
- Learning
- Enforced
- Enforced
- Audit
- Audit
- Learning
- Learning
- Enforced
- Enforced
- Audit
- Audit
- LEARNING
- Learning
- ENFORCED
- Enforced
- AUDIT
- Audit
- "Learning"
- Learning
- "Enforced"
- Enforced
- "Audit"
- Audit
SubResource, SubResourceArgs
- Id string
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- Id string
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id String
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id string
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id str
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id String
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
SubResourceResponse, SubResourceResponseArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:NspAssociation association1 /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/resourceAssociations/association1
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