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

com.pulumi.azurenative.logic.IntegrationAccountCertificate 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.logic;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.logic.IntegrationAccountCertificateArgs;
import com.pulumi.azurenative.logic.outputs.KeyVaultKeyReferenceResponse;
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.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The integration account certificate.
 * Azure REST API version: 2019-05-01. Prior API version in Azure Native 1.x: 2019-05-01.
 * 
 * Other available API versions: 2015-08-01-preview.
 * 
 * ## Example Usage
 * ### Create or update a certificate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.logic.IntegrationAccountCertificate;
 * import com.pulumi.azurenative.logic.IntegrationAccountCertificateArgs;
 * import com.pulumi.azurenative.logic.inputs.KeyVaultKeyReferenceArgs;
 * import com.pulumi.azurenative.logic.inputs.KeyVaultKeyReferenceKeyVaultArgs;
 * 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 integrationAccountCertificate = new IntegrationAccountCertificate("integrationAccountCertificate", IntegrationAccountCertificateArgs.builder()
 *             .certificateName("testCertificate")
 *             .integrationAccountName("testIntegrationAccount")
 *             .key(KeyVaultKeyReferenceArgs.builder()
 *                 .keyName("")
 *                 .keyVault(KeyVaultKeyReferenceKeyVaultArgs.builder()
 *                     .id("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testResourceGroup/providers/microsoft.keyvault/vaults/")
 *                     .build())
 *                 .keyVersion("87d9764197604449b9b8eb7bd8710868")
 *                 .build())
 *             .location("brazilsouth")
 *             .publicCertificate("")
 *             .resourceGroupName("testResourceGroup")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:logic:IntegrationAccountCertificate testCertificate /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName} * ``` * */ @ResourceType(type="azure-native:logic:IntegrationAccountCertificate") public class IntegrationAccountCertificate extends com.pulumi.resources.CustomResource { /** * The changed time. * */ @Export(name="changedTime", refs={String.class}, tree="[0]") private Output changedTime; /** * @return The changed time. * */ public Output changedTime() { return this.changedTime; } /** * The created time. * */ @Export(name="createdTime", refs={String.class}, tree="[0]") private Output createdTime; /** * @return The created time. * */ public Output createdTime() { return this.createdTime; } /** * The key details in the key vault. * */ @Export(name="key", refs={KeyVaultKeyReferenceResponse.class}, tree="[0]") private Output key; /** * @return The key details in the key vault. * */ public Output> key() { return Codegen.optional(this.key); } /** * The resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The resource location. * */ public Output> location() { return Codegen.optional(this.location); } /** * The metadata. * */ @Export(name="metadata", refs={Object.class}, tree="[0]") private Output metadata; /** * @return The metadata. * */ public Output> metadata() { return Codegen.optional(this.metadata); } /** * Gets the resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Gets the resource name. * */ public Output name() { return this.name; } /** * The public certificate. * */ @Export(name="publicCertificate", refs={String.class}, tree="[0]") private Output publicCertificate; /** * @return The public certificate. * */ public Output> publicCertificate() { return Codegen.optional(this.publicCertificate); } /** * The resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Gets the resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Gets the resource type. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public IntegrationAccountCertificate(java.lang.String name) { this(name, IntegrationAccountCertificateArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public IntegrationAccountCertificate(java.lang.String name, IntegrationAccountCertificateArgs 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 IntegrationAccountCertificate(java.lang.String name, IntegrationAccountCertificateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:logic:IntegrationAccountCertificate", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private IntegrationAccountCertificate(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:logic:IntegrationAccountCertificate", name, null, makeResourceOptions(options, id), false); } private static IntegrationAccountCertificateArgs makeArgs(IntegrationAccountCertificateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? IntegrationAccountCertificateArgs.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:logic/v20150801preview:IntegrationAccountCertificate").build()), Output.of(Alias.builder().type("azure-native:logic/v20160601:IntegrationAccountCertificate").build()), Output.of(Alias.builder().type("azure-native:logic/v20180701preview:IntegrationAccountCertificate").build()), Output.of(Alias.builder().type("azure-native:logic/v20190501:IntegrationAccountCertificate").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 IntegrationAccountCertificate get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new IntegrationAccountCertificate(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy