com.pulumi.azurenative.cloudngfw.GlobalRulestack 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.cloudngfw;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.cloudngfw.GlobalRulestackArgs;
import com.pulumi.azurenative.cloudngfw.outputs.AzureResourceManagerManagedIdentityPropertiesResponse;
import com.pulumi.azurenative.cloudngfw.outputs.SecurityServicesResponse;
import com.pulumi.azurenative.cloudngfw.outputs.SystemDataResponse;
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;
/**
* PaloAltoNetworks GlobalRulestack
* Azure REST API version: 2023-09-01.
*
* Other available API versions: 2022-08-29, 2022-08-29-preview, 2023-09-01-preview, 2023-10-10-preview, 2024-01-19-preview, 2024-02-07-preview.
*
* ## Example Usage
* ### GlobalRulestack_CreateOrUpdate_MaximumSet_Gen
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.cloudngfw.GlobalRulestack;
* import com.pulumi.azurenative.cloudngfw.GlobalRulestackArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.AzureResourceManagerManagedIdentityPropertiesArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.SecurityServicesArgs;
* 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 globalRulestack = new GlobalRulestack("globalRulestack", GlobalRulestackArgs.builder()
* .associatedSubscriptions("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")
* .defaultMode("IPS")
* .description("global rulestacks")
* .globalRulestackName("praval")
* .identity(AzureResourceManagerManagedIdentityPropertiesArgs.builder()
* .type("None")
* .userAssignedIdentities(Map.of("key16", Map.ofEntries(
* Map.entry("clientId", "aaaa"),
* Map.entry("principalId", "aaaaaaaaaaaaaaa")
* )))
* .build())
* .location("eastus")
* .minAppIdVersion("8.5.3")
* .panEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
* .panLocation("eastus")
* .scope("GLOBAL")
* .securityServices(SecurityServicesArgs.builder()
* .antiSpywareProfile("default")
* .antiVirusProfile("default")
* .dnsSubscription("default")
* .fileBlockingProfile("default")
* .outboundTrustCertificate("default")
* .outboundUnTrustCertificate("default")
* .urlFilteringProfile("default")
* .vulnerabilityProfile("default")
* .build())
* .build());
*
* }
* }
*
* }
*
* ### GlobalRulestack_CreateOrUpdate_MinimumSet_Gen
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.cloudngfw.GlobalRulestack;
* import com.pulumi.azurenative.cloudngfw.GlobalRulestackArgs;
* 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 globalRulestack = new GlobalRulestack("globalRulestack", GlobalRulestackArgs.builder()
* .globalRulestackName("praval")
* .location("eastus")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:cloudngfw:GlobalRulestack armid1 /providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}
* ```
*
*/
@ResourceType(type="azure-native:cloudngfw:GlobalRulestack")
public class GlobalRulestack extends com.pulumi.resources.CustomResource {
/**
* subscription scope of global rulestack
*
*/
@Export(name="associatedSubscriptions", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> associatedSubscriptions;
/**
* @return subscription scope of global rulestack
*
*/
public Output>> associatedSubscriptions() {
return Codegen.optional(this.associatedSubscriptions);
}
/**
* Mode for default rules creation
*
*/
@Export(name="defaultMode", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> defaultMode;
/**
* @return Mode for default rules creation
*
*/
public Output> defaultMode() {
return Codegen.optional(this.defaultMode);
}
/**
* rulestack description
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return rulestack description
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The managed service identities assigned to this resource.
*
*/
@Export(name="identity", refs={AzureResourceManagerManagedIdentityPropertiesResponse.class}, tree="[0]")
private Output* @Nullable */ AzureResourceManagerManagedIdentityPropertiesResponse> identity;
/**
* @return The managed service identities assigned to this resource.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Global Location
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Global Location
*
*/
public Output location() {
return this.location;
}
/**
* minimum version
*
*/
@Export(name="minAppIdVersion", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> minAppIdVersion;
/**
* @return minimum version
*
*/
public Output> minAppIdVersion() {
return Codegen.optional(this.minAppIdVersion);
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* PanEtag info
*
*/
@Export(name="panEtag", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> panEtag;
/**
* @return PanEtag info
*
*/
public Output> panEtag() {
return Codegen.optional(this.panEtag);
}
/**
* Rulestack Location, Required for GlobalRulestacks, Not for LocalRulestacks
*
*/
@Export(name="panLocation", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> panLocation;
/**
* @return Rulestack Location, Required for GlobalRulestacks, Not for LocalRulestacks
*
*/
public Output> panLocation() {
return Codegen.optional(this.panLocation);
}
/**
* Provisioning state of the resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Provisioning state of the resource.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Rulestack Type
*
*/
@Export(name="scope", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> scope;
/**
* @return Rulestack Type
*
*/
public Output> scope() {
return Codegen.optional(this.scope);
}
/**
* Security Profile
*
*/
@Export(name="securityServices", refs={SecurityServicesResponse.class}, tree="[0]")
private Output* @Nullable */ SecurityServicesResponse> securityServices;
/**
* @return Security Profile
*
*/
public Output> securityServices() {
return Codegen.optional(this.securityServices);
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public GlobalRulestack(java.lang.String name) {
this(name, GlobalRulestackArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public GlobalRulestack(java.lang.String name, @Nullable GlobalRulestackArgs 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 GlobalRulestack(java.lang.String name, @Nullable GlobalRulestackArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:cloudngfw:GlobalRulestack", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private GlobalRulestack(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:cloudngfw:GlobalRulestack", name, null, makeResourceOptions(options, id), false);
}
private static GlobalRulestackArgs makeArgs(@Nullable GlobalRulestackArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? GlobalRulestackArgs.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:cloudngfw/v20220829:GlobalRulestack").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20220829preview:GlobalRulestack").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20230901:GlobalRulestack").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20230901preview:GlobalRulestack").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20231010preview:GlobalRulestack").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20240119preview:GlobalRulestack").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20240207preview:GlobalRulestack").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 GlobalRulestack get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new GlobalRulestack(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy