Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* IoT Central Application Network Rule Sets can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:iotcentral/applicationNetworkRuleSet:ApplicationNetworkRuleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.IoTCentral/iotApps/app1
* ```
*
*/
@ResourceType(type="azure:iotcentral/applicationNetworkRuleSet:ApplicationNetworkRuleSet")
public class ApplicationNetworkRuleSet extends com.pulumi.resources.CustomResource {
/**
* Whether these IP Rules apply for device connectivity to IoT Hub and Device Provisioning Service associated with this IoT Central Application. Possible values are `true`, `false`. Defaults to `true`
*
*/
@Export(name="applyToDevice", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> applyToDevice;
/**
* @return Whether these IP Rules apply for device connectivity to IoT Hub and Device Provisioning Service associated with this IoT Central Application. Possible values are `true`, `false`. Defaults to `true`
*
*/
public Output> applyToDevice() {
return Codegen.optional(this.applyToDevice);
}
/**
* Specifies the default action for the IoT Central Application Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
*
*/
@Export(name="defaultAction", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> defaultAction;
/**
* @return Specifies the default action for the IoT Central Application Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
*
*/
public Output> defaultAction() {
return Codegen.optional(this.defaultAction);
}
/**
* The ID of the IoT Central Application. Changing this forces a new resource to be created.
*
*/
@Export(name="iotcentralApplicationId", refs={String.class}, tree="[0]")
private Output iotcentralApplicationId;
/**
* @return The ID of the IoT Central Application. Changing this forces a new resource to be created.
*
*/
public Output iotcentralApplicationId() {
return this.iotcentralApplicationId;
}
/**
* One or more `ip_rule` blocks as defined below.
*
*/
@Export(name="ipRules", refs={List.class,ApplicationNetworkRuleSetIpRule.class}, tree="[0,1]")
private Output* @Nullable */ List> ipRules;
/**
* @return One or more `ip_rule` blocks as defined below.
*
*/
public Output>> ipRules() {
return Codegen.optional(this.ipRules);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ApplicationNetworkRuleSet(java.lang.String name) {
this(name, ApplicationNetworkRuleSetArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ApplicationNetworkRuleSet(java.lang.String name, ApplicationNetworkRuleSetArgs 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 ApplicationNetworkRuleSet(java.lang.String name, ApplicationNetworkRuleSetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:iotcentral/applicationNetworkRuleSet:ApplicationNetworkRuleSet", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ApplicationNetworkRuleSet(java.lang.String name, Output id, @Nullable ApplicationNetworkRuleSetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:iotcentral/applicationNetworkRuleSet:ApplicationNetworkRuleSet", name, state, makeResourceOptions(options, id), false);
}
private static ApplicationNetworkRuleSetArgs makeArgs(ApplicationNetworkRuleSetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ApplicationNetworkRuleSetArgs.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 ApplicationNetworkRuleSet get(java.lang.String name, Output id, @Nullable ApplicationNetworkRuleSetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ApplicationNetworkRuleSet(name, id, state, options);
}
}