
com.pulumi.azurenative.network.NspLink Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.network;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.network.NspLinkArgs;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* The network security perimeter link resource
* Azure REST API version: 2021-02-01-preview.
*
* Other available API versions: 2023-07-01-preview, 2023-08-01-preview.
*
* ## Example Usage
* ### NspLinksPut
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.network.NspLink;
* import com.pulumi.azurenative.network.NspLinkArgs;
* 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 nspLink = new NspLink("nspLink", NspLinkArgs.builder()
* .autoApprovedRemotePerimeterResourceId("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2")
* .linkName("link1")
* .networkSecurityPerimeterName("nsp1")
* .resourceGroupName("rg1")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:network:NspLink link1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName}
* ```
*
*/
@ResourceType(type="azure-native:network:NspLink")
public class NspLink extends com.pulumi.resources.CustomResource {
/**
* Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
*
*/
@Export(name="autoApprovedRemotePerimeterResourceId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> autoApprovedRemotePerimeterResourceId;
/**
* @return Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
*
*/
public Output> autoApprovedRemotePerimeterResourceId() {
return Codegen.optional(this.autoApprovedRemotePerimeterResourceId);
}
/**
* A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* A unique read-only string that changes whenever the resource is updated.
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private Output etag;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public Output etag() {
return this.etag;
}
/**
* Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. It's default value is ['*'].
*
*/
@Export(name="localInboundProfiles", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> localInboundProfiles;
/**
* @return Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. It's default value is ['*'].
*
*/
public Output>> localInboundProfiles() {
return Codegen.optional(this.localInboundProfiles);
}
/**
* Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
*
*/
@Export(name="localOutboundProfiles", refs={List.class,String.class}, tree="[0,1]")
private Output> localOutboundProfiles;
/**
* @return Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
*
*/
public Output> localOutboundProfiles() {
return this.localOutboundProfiles;
}
/**
* Resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource name.
*
*/
public Output name() {
return this.name;
}
/**
* The provisioning state of the NSP Link resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The provisioning state of the NSP Link resource.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode. It's default value is ['*'].
*
*/
@Export(name="remoteInboundProfiles", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> remoteInboundProfiles;
/**
* @return Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode. It's default value is ['*'].
*
*/
public Output>> remoteInboundProfiles() {
return Codegen.optional(this.remoteInboundProfiles);
}
/**
* Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
*
*/
@Export(name="remoteOutboundProfiles", refs={List.class,String.class}, tree="[0,1]")
private Output> remoteOutboundProfiles;
/**
* @return Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
*
*/
public Output> remoteOutboundProfiles() {
return this.remoteOutboundProfiles;
}
/**
* Remote NSP Guid with which the link gets created.
*
*/
@Export(name="remotePerimeterGuid", refs={String.class}, tree="[0]")
private Output remotePerimeterGuid;
/**
* @return Remote NSP Guid with which the link gets created.
*
*/
public Output remotePerimeterGuid() {
return this.remotePerimeterGuid;
}
/**
* Remote NSP location with which the link gets created.
*
*/
@Export(name="remotePerimeterLocation", refs={String.class}, tree="[0]")
private Output remotePerimeterLocation;
/**
* @return Remote NSP location with which the link gets created.
*
*/
public Output remotePerimeterLocation() {
return this.remotePerimeterLocation;
}
/**
* The NSP link state.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return The NSP link state.
*
*/
public Output status() {
return this.status;
}
/**
* Resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Resource type.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public NspLink(java.lang.String name) {
this(name, NspLinkArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public NspLink(java.lang.String name, NspLinkArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public NspLink(java.lang.String name, NspLinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:NspLink", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private NspLink(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:NspLink", name, null, makeResourceOptions(options, id), false);
}
private static NspLinkArgs makeArgs(NspLinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? NspLinkArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:network/v20210201preview:NspLink").build()),
Output.of(Alias.builder().type("azure-native:network/v20230701preview:NspLink").build()),
Output.of(Alias.builder().type("azure-native:network/v20230801preview:NspLink").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static NspLink get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new NspLink(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy