com.pulumi.azurenative.eventgrid.Namespace 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.eventgrid;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.eventgrid.NamespaceArgs;
import com.pulumi.azurenative.eventgrid.outputs.IdentityInfoResponse;
import com.pulumi.azurenative.eventgrid.outputs.InboundIpRuleResponse;
import com.pulumi.azurenative.eventgrid.outputs.NamespaceSkuResponse;
import com.pulumi.azurenative.eventgrid.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
import com.pulumi.azurenative.eventgrid.outputs.TopicSpacesConfigurationResponse;
import com.pulumi.azurenative.eventgrid.outputs.TopicsConfigurationResponse;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Namespace resource.
* Azure REST API version: 2023-06-01-preview.
*
* Other available API versions: 2023-12-15-preview, 2024-06-01-preview.
*
* ## Example Usage
* ### Namespaces_CreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.eventgrid.Namespace;
* import com.pulumi.azurenative.eventgrid.NamespaceArgs;
* import com.pulumi.azurenative.eventgrid.inputs.TopicSpacesConfigurationArgs;
* 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 namespace = new Namespace("namespace", NamespaceArgs.builder()
* .location("westus")
* .namespaceName("exampleNamespaceName1")
* .resourceGroupName("examplerg")
* .tags(Map.ofEntries(
* Map.entry("tag1", "value11"),
* Map.entry("tag2", "value22")
* ))
* .topicSpacesConfiguration(TopicSpacesConfigurationArgs.builder()
* .routeTopicResourceId("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1")
* .state("Enabled")
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:eventgrid:Namespace exampleNamespaceName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
* ```
*
*/
@ResourceType(type="azure-native:eventgrid:Namespace")
public class Namespace extends com.pulumi.resources.CustomResource {
/**
* Identity information for the Namespace resource.
*
*/
@Export(name="identity", refs={IdentityInfoResponse.class}, tree="[0]")
private Output* @Nullable */ IdentityInfoResponse> identity;
/**
* @return Identity information for the Namespace resource.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
*
*/
@Export(name="inboundIpRules", refs={List.class,InboundIpRuleResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> inboundIpRules;
/**
* @return This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
*
*/
public Output>> inboundIpRules() {
return Codegen.optional(this.inboundIpRules);
}
/**
* Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
* Once specified, this property cannot be updated.
*
*/
@Export(name="isZoneRedundant", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> isZoneRedundant;
/**
* @return Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
* Once specified, this property cannot be updated.
*
*/
public Output> isZoneRedundant() {
return Codegen.optional(this.isZoneRedundant);
}
/**
* Location of the resource.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Location of the resource.
*
*/
public Output location() {
return this.location;
}
/**
* Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
*
*/
@Export(name="minimumTlsVersionAllowed", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> minimumTlsVersionAllowed;
/**
* @return Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
*
*/
public Output> minimumTlsVersionAllowed() {
return Codegen.optional(this.minimumTlsVersionAllowed);
}
/**
* Name of the resource.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the resource.
*
*/
public Output name() {
return this.name;
}
@Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> privateEndpointConnections;
public Output>> privateEndpointConnections() {
return Codegen.optional(this.privateEndpointConnections);
}
/**
* Provisioning state of the namespace resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Provisioning state of the namespace resource.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* This determines if traffic is allowed over public network. By default it is enabled.
* You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
*
*/
@Export(name="publicNetworkAccess", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> publicNetworkAccess;
/**
* @return This determines if traffic is allowed over public network. By default it is enabled.
* You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
*
*/
public Output> publicNetworkAccess() {
return Codegen.optional(this.publicNetworkAccess);
}
/**
* Represents available Sku pricing tiers.
*
*/
@Export(name="sku", refs={NamespaceSkuResponse.class}, tree="[0]")
private Output* @Nullable */ NamespaceSkuResponse> sku;
/**
* @return Represents available Sku pricing tiers.
*
*/
public Output> sku() {
return Codegen.optional(this.sku);
}
/**
* The system metadata relating to the namespace resource.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return The system metadata relating to the namespace resource.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Tags of the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Tags of the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Topic spaces configuration information for the namespace resource
*
*/
@Export(name="topicSpacesConfiguration", refs={TopicSpacesConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ TopicSpacesConfigurationResponse> topicSpacesConfiguration;
/**
* @return Topic spaces configuration information for the namespace resource
*
*/
public Output> topicSpacesConfiguration() {
return Codegen.optional(this.topicSpacesConfiguration);
}
/**
* Topics configuration information for the namespace resource
*
*/
@Export(name="topicsConfiguration", refs={TopicsConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ TopicsConfigurationResponse> topicsConfiguration;
/**
* @return Topics configuration information for the namespace resource
*
*/
public Output> topicsConfiguration() {
return Codegen.optional(this.topicsConfiguration);
}
/**
* Type of the resource.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Type of the resource.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Namespace(java.lang.String name) {
this(name, NamespaceArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Namespace(java.lang.String name, NamespaceArgs 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 Namespace(java.lang.String name, NamespaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:eventgrid:Namespace", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Namespace(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:eventgrid:Namespace", name, null, makeResourceOptions(options, id), false);
}
private static NamespaceArgs makeArgs(NamespaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? NamespaceArgs.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:eventgrid/v20230601preview:Namespace").build()),
Output.of(Alias.builder().type("azure-native:eventgrid/v20231215preview:Namespace").build()),
Output.of(Alias.builder().type("azure-native:eventgrid/v20240601preview:Namespace").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 Namespace get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Namespace(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy