com.pulumi.azure.webpubsub.NetworkAcl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.webpubsub;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.webpubsub.NetworkAclArgs;
import com.pulumi.azure.webpubsub.inputs.NetworkAclState;
import com.pulumi.azure.webpubsub.outputs.NetworkAclPrivateEndpoint;
import com.pulumi.azure.webpubsub.outputs.NetworkAclPublicNetwork;
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;
/**
* Manages the Network ACL for a Web Pubsub.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Network ACLs for a Web Pubsub service can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:webpubsub/networkAcl:NetworkAcl example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/webpubsub1
* ```
*
*/
@ResourceType(type="azure:webpubsub/networkAcl:NetworkAcl")
public class NetworkAcl extends com.pulumi.resources.CustomResource {
/**
* The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
*
*/
@Export(name="defaultAction", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> defaultAction;
/**
* @return The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
*
*/
public Output> defaultAction() {
return Codegen.optional(this.defaultAction);
}
/**
* A `private_endpoint` block as defined below.
*
*/
@Export(name="privateEndpoints", refs={List.class,NetworkAclPrivateEndpoint.class}, tree="[0,1]")
private Output* @Nullable */ List> privateEndpoints;
/**
* @return A `private_endpoint` block as defined below.
*
*/
public Output>> privateEndpoints() {
return Codegen.optional(this.privateEndpoints);
}
/**
* A `public_network` block as defined below.
*
*/
@Export(name="publicNetwork", refs={NetworkAclPublicNetwork.class}, tree="[0]")
private Output publicNetwork;
/**
* @return A `public_network` block as defined below.
*
*/
public Output publicNetwork() {
return this.publicNetwork;
}
/**
* The ID of the Web Pubsub service. Changing this forces a new resource to be created.
*
*/
@Export(name="webPubsubId", refs={String.class}, tree="[0]")
private Output webPubsubId;
/**
* @return The ID of the Web Pubsub service. Changing this forces a new resource to be created.
*
*/
public Output webPubsubId() {
return this.webPubsubId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public NetworkAcl(java.lang.String name) {
this(name, NetworkAclArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public NetworkAcl(java.lang.String name, NetworkAclArgs 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 NetworkAcl(java.lang.String name, NetworkAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:webpubsub/networkAcl:NetworkAcl", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private NetworkAcl(java.lang.String name, Output id, @Nullable NetworkAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:webpubsub/networkAcl:NetworkAcl", name, state, makeResourceOptions(options, id), false);
}
private static NetworkAclArgs makeArgs(NetworkAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? NetworkAclArgs.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())
.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 state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static NetworkAcl get(java.lang.String name, Output id, @Nullable NetworkAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new NetworkAcl(name, id, state, options);
}
}