All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.containerregistry.Registry Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.containerregistry;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.containerregistry.RegistryArgs;
import com.pulumi.azurenative.containerregistry.outputs.EncryptionPropertyResponse;
import com.pulumi.azurenative.containerregistry.outputs.IdentityPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.NetworkRuleSetResponse;
import com.pulumi.azurenative.containerregistry.outputs.PoliciesResponse;
import com.pulumi.azurenative.containerregistry.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.containerregistry.outputs.SkuResponse;
import com.pulumi.azurenative.containerregistry.outputs.StatusResponse;
import com.pulumi.azurenative.containerregistry.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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * An object that represents a container registry.
 * Azure REST API version: 2022-12-01. Prior API version in Azure Native 1.x: 2019-05-01.
 * 
 * Other available API versions: 2017-03-01, 2019-05-01, 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview.
 * 
 * ## Example Usage
 * ### RegistryCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.containerregistry.Registry;
 * import com.pulumi.azurenative.containerregistry.RegistryArgs;
 * import com.pulumi.azurenative.containerregistry.inputs.SkuArgs;
 * 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 registry = new Registry("registry", RegistryArgs.builder()
 *             .adminUserEnabled(true)
 *             .location("westus")
 *             .registryName("myRegistry")
 *             .resourceGroupName("myResourceGroup")
 *             .sku(SkuArgs.builder()
 *                 .name("Standard")
 *                 .build())
 *             .tags(Map.of("key", "value"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### RegistryCreateZoneRedundant * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.containerregistry.Registry;
 * import com.pulumi.azurenative.containerregistry.RegistryArgs;
 * import com.pulumi.azurenative.containerregistry.inputs.SkuArgs;
 * 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 registry = new Registry("registry", RegistryArgs.builder()
 *             .location("westus")
 *             .registryName("myRegistry")
 *             .resourceGroupName("myResourceGroup")
 *             .sku(SkuArgs.builder()
 *                 .name("Standard")
 *                 .build())
 *             .tags(Map.of("key", "value"))
 *             .zoneRedundancy("Enabled")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:containerregistry:Registry myRegistry /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName} * ``` * */ @ResourceType(type="azure-native:containerregistry:Registry") public class Registry extends com.pulumi.resources.CustomResource { /** * The value that indicates whether the admin user is enabled. * */ @Export(name="adminUserEnabled", refs={Boolean.class}, tree="[0]") private Output adminUserEnabled; /** * @return The value that indicates whether the admin user is enabled. * */ public Output> adminUserEnabled() { return Codegen.optional(this.adminUserEnabled); } /** * The creation date of the container registry in ISO8601 format. * */ @Export(name="creationDate", refs={String.class}, tree="[0]") private Output creationDate; /** * @return The creation date of the container registry in ISO8601 format. * */ public Output creationDate() { return this.creationDate; } /** * Enable a single data endpoint per region for serving data. * */ @Export(name="dataEndpointEnabled", refs={Boolean.class}, tree="[0]") private Output dataEndpointEnabled; /** * @return Enable a single data endpoint per region for serving data. * */ public Output> dataEndpointEnabled() { return Codegen.optional(this.dataEndpointEnabled); } /** * List of host names that will serve data when dataEndpointEnabled is true. * */ @Export(name="dataEndpointHostNames", refs={List.class,String.class}, tree="[0,1]") private Output> dataEndpointHostNames; /** * @return List of host names that will serve data when dataEndpointEnabled is true. * */ public Output> dataEndpointHostNames() { return this.dataEndpointHostNames; } /** * The encryption settings of container registry. * */ @Export(name="encryption", refs={EncryptionPropertyResponse.class}, tree="[0]") private Output encryption; /** * @return The encryption settings of container registry. * */ public Output> encryption() { return Codegen.optional(this.encryption); } /** * The identity of the container registry. * */ @Export(name="identity", refs={IdentityPropertiesResponse.class}, tree="[0]") private Output identity; /** * @return The identity of the container registry. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The location of the resource. This cannot be changed after the resource is created. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The location of the resource. This cannot be changed after the resource is created. * */ public Output location() { return this.location; } /** * The URL that can be used to log into the container registry. * */ @Export(name="loginServer", refs={String.class}, tree="[0]") private Output loginServer; /** * @return The URL that can be used to log into the container registry. * */ public Output loginServer() { return this.loginServer; } /** * 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; } /** * Whether to allow trusted Azure services to access a network restricted registry. * */ @Export(name="networkRuleBypassOptions", refs={String.class}, tree="[0]") private Output networkRuleBypassOptions; /** * @return Whether to allow trusted Azure services to access a network restricted registry. * */ public Output> networkRuleBypassOptions() { return Codegen.optional(this.networkRuleBypassOptions); } /** * The network rule set for a container registry. * */ @Export(name="networkRuleSet", refs={NetworkRuleSetResponse.class}, tree="[0]") private Output networkRuleSet; /** * @return The network rule set for a container registry. * */ public Output> networkRuleSet() { return Codegen.optional(this.networkRuleSet); } /** * The policies for a container registry. * */ @Export(name="policies", refs={PoliciesResponse.class}, tree="[0]") private Output policies; /** * @return The policies for a container registry. * */ public Output> policies() { return Codegen.optional(this.policies); } /** * List of private endpoint connections for a container registry. * */ @Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]") private Output> privateEndpointConnections; /** * @return List of private endpoint connections for a container registry. * */ public Output> privateEndpointConnections() { return this.privateEndpointConnections; } /** * The provisioning state of the container registry at the time the operation was called. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the container registry at the time the operation was called. * */ public Output provisioningState() { return this.provisioningState; } /** * Whether or not public network access is allowed for the container registry. * */ @Export(name="publicNetworkAccess", refs={String.class}, tree="[0]") private Output publicNetworkAccess; /** * @return Whether or not public network access is allowed for the container registry. * */ public Output> publicNetworkAccess() { return Codegen.optional(this.publicNetworkAccess); } /** * The SKU of the container registry. * */ @Export(name="sku", refs={SkuResponse.class}, tree="[0]") private Output sku; /** * @return The SKU of the container registry. * */ public Output sku() { return this.sku; } /** * The status of the container registry at the time the operation was called. * */ @Export(name="status", refs={StatusResponse.class}, tree="[0]") private Output status; /** * @return The status of the container registry at the time the operation was called. * */ public Output status() { return this.status; } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ public Output systemData() { return this.systemData; } /** * The tags of the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The tags of the resource. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. * */ public Output type() { return this.type; } /** * Whether or not zone redundancy is enabled for this container registry * */ @Export(name="zoneRedundancy", refs={String.class}, tree="[0]") private Output zoneRedundancy; /** * @return Whether or not zone redundancy is enabled for this container registry * */ public Output> zoneRedundancy() { return Codegen.optional(this.zoneRedundancy); } /** * * @param name The _unique_ name of the resulting resource. */ public Registry(java.lang.String name) { this(name, RegistryArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Registry(java.lang.String name, RegistryArgs 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 Registry(java.lang.String name, RegistryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:containerregistry:Registry", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Registry(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:containerregistry:Registry", name, null, makeResourceOptions(options, id), false); } private static RegistryArgs makeArgs(RegistryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? RegistryArgs.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:containerregistry/v20170301:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20171001:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20190501:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20191201preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20201101preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20210601preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20210801preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20210901:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20211201preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20220201preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20221201:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20230101preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20230601preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20230701:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20230801preview:Registry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20231101preview:Registry").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 Registry get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Registry(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy