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

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

There is a newer version: 2.82.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.ConnectedRegistryArgs;
import com.pulumi.azurenative.containerregistry.outputs.ActivationPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.LoggingPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.LoginServerPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.ParentPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.StatusDetailPropertiesResponse;
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.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * An object that represents a connected registry for a container registry.
 * Azure REST API version: 2023-01-01-preview. Prior API version in Azure Native 1.x: 2020-11-01-preview.
 * 
 * Other available API versions: 2023-06-01-preview, 2023-08-01-preview, 2023-11-01-preview.
 * 
 * ## Example Usage
 * ### ConnectedRegistryCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.containerregistry.ConnectedRegistry;
 * import com.pulumi.azurenative.containerregistry.ConnectedRegistryArgs;
 * import com.pulumi.azurenative.containerregistry.inputs.ParentPropertiesArgs;
 * import com.pulumi.azurenative.containerregistry.inputs.SyncPropertiesArgs;
 * 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 connectedRegistry = new ConnectedRegistry("connectedRegistry", ConnectedRegistryArgs.builder()
 *             .clientTokenIds("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token")
 *             .connectedRegistryName("myConnectedRegistry")
 *             .mode("ReadWrite")
 *             .notificationsList(            
 *                 "hello-world:*:*",
 *                 "sample/repo/*:1.0:*")
 *             .parent(ParentPropertiesArgs.builder()
 *                 .syncProperties(SyncPropertiesArgs.builder()
 *                     .messageTtl("P2D")
 *                     .schedule("0 9 * * *")
 *                     .syncWindow("PT3H")
 *                     .tokenId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken")
 *                     .build())
 *                 .build())
 *             .registryName("myRegistry")
 *             .resourceGroupName("myResourceGroup")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:containerregistry:ConnectedRegistry myConnectedRegistry /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName} * ``` * */ @ResourceType(type="azure-native:containerregistry:ConnectedRegistry") public class ConnectedRegistry extends com.pulumi.resources.CustomResource { /** * The activation properties of the connected registry. * */ @Export(name="activation", refs={ActivationPropertiesResponse.class}, tree="[0]") private Output activation; /** * @return The activation properties of the connected registry. * */ public Output activation() { return this.activation; } /** * The list of the ACR token resource IDs used to authenticate clients to the connected registry. * */ @Export(name="clientTokenIds", refs={List.class,String.class}, tree="[0,1]") private Output> clientTokenIds; /** * @return The list of the ACR token resource IDs used to authenticate clients to the connected registry. * */ public Output>> clientTokenIds() { return Codegen.optional(this.clientTokenIds); } /** * The current connection state of the connected registry. * */ @Export(name="connectionState", refs={String.class}, tree="[0]") private Output connectionState; /** * @return The current connection state of the connected registry. * */ public Output connectionState() { return this.connectionState; } /** * The last activity time of the connected registry. * */ @Export(name="lastActivityTime", refs={String.class}, tree="[0]") private Output lastActivityTime; /** * @return The last activity time of the connected registry. * */ public Output lastActivityTime() { return this.lastActivityTime; } /** * The logging properties of the connected registry. * */ @Export(name="logging", refs={LoggingPropertiesResponse.class}, tree="[0]") private Output logging; /** * @return The logging properties of the connected registry. * */ public Output> logging() { return Codegen.optional(this.logging); } /** * The login server properties of the connected registry. * */ @Export(name="loginServer", refs={LoginServerPropertiesResponse.class}, tree="[0]") private Output loginServer; /** * @return The login server properties of the connected registry. * */ public Output> loginServer() { return Codegen.optional(this.loginServer); } /** * The mode of the connected registry resource that indicates the permissions of the registry. * */ @Export(name="mode", refs={String.class}, tree="[0]") private Output mode; /** * @return The mode of the connected registry resource that indicates the permissions of the registry. * */ public Output mode() { return this.mode; } /** * 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; } /** * The list of notifications subscription information for the connected registry. * */ @Export(name="notificationsList", refs={List.class,String.class}, tree="[0,1]") private Output> notificationsList; /** * @return The list of notifications subscription information for the connected registry. * */ public Output>> notificationsList() { return Codegen.optional(this.notificationsList); } /** * The parent of the connected registry. * */ @Export(name="parent", refs={ParentPropertiesResponse.class}, tree="[0]") private Output parent; /** * @return The parent of the connected registry. * */ public Output parent() { return this.parent; } /** * 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; } /** * The list of current statuses of the connected registry. * */ @Export(name="statusDetails", refs={List.class,StatusDetailPropertiesResponse.class}, tree="[0,1]") private Output> statusDetails; /** * @return The list of current statuses of the connected registry. * */ public Output> statusDetails() { return this.statusDetails; } /** * 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 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; } /** * The current version of ACR runtime on the connected registry. * */ @Export(name="version", refs={String.class}, tree="[0]") private Output version; /** * @return The current version of ACR runtime on the connected registry. * */ public Output version() { return this.version; } /** * * @param name The _unique_ name of the resulting resource. */ public ConnectedRegistry(java.lang.String name) { this(name, ConnectedRegistryArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ConnectedRegistry(java.lang.String name, ConnectedRegistryArgs 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 ConnectedRegistry(java.lang.String name, ConnectedRegistryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:containerregistry:ConnectedRegistry", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ConnectedRegistry(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:containerregistry:ConnectedRegistry", name, null, makeResourceOptions(options, id), false); } private static ConnectedRegistryArgs makeArgs(ConnectedRegistryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ConnectedRegistryArgs.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/v20201101preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20210601preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20210801preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20211201preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20220201preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20230101preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20230601preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20230801preview:ConnectedRegistry").build()), Output.of(Alias.builder().type("azure-native:containerregistry/v20231101preview:ConnectedRegistry").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 ConnectedRegistry get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ConnectedRegistry(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy