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

com.pulumi.azurenative.cdn.AFDOrigin 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.cdn;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.cdn.AFDOriginArgs;
import com.pulumi.azurenative.cdn.outputs.ResourceReferenceResponse;
import com.pulumi.azurenative.cdn.outputs.SharedPrivateLinkResourcePropertiesResponse;
import com.pulumi.azurenative.cdn.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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.
 * Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2020-09-01.
 * 
 * Other available API versions: 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview.
 * 
 * ## Example Usage
 * ### AFDOrigins_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.cdn.AFDOrigin;
 * import com.pulumi.azurenative.cdn.AFDOriginArgs;
 * 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 afdOrigin = new AFDOrigin("afdOrigin", AFDOriginArgs.builder()
 *             .enabledState("Enabled")
 *             .hostName("host1.blob.core.windows.net")
 *             .httpPort(80)
 *             .httpsPort(443)
 *             .originGroupName("origingroup1")
 *             .originHostHeader("host1.foo.com")
 *             .originName("origin1")
 *             .profileName("profile1")
 *             .resourceGroupName("RG")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:cdn:AFDOrigin origin1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName} * ``` * */ @ResourceType(type="azure-native:cdn:AFDOrigin") public class AFDOrigin extends com.pulumi.resources.CustomResource { /** * Resource reference to the Azure origin resource. * */ @Export(name="azureOrigin", refs={ResourceReferenceResponse.class}, tree="[0]") private Output azureOrigin; /** * @return Resource reference to the Azure origin resource. * */ public Output> azureOrigin() { return Codegen.optional(this.azureOrigin); } @Export(name="deploymentStatus", refs={String.class}, tree="[0]") private Output deploymentStatus; public Output deploymentStatus() { return this.deploymentStatus; } /** * Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. * */ @Export(name="enabledState", refs={String.class}, tree="[0]") private Output enabledState; /** * @return Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. * */ public Output> enabledState() { return Codegen.optional(this.enabledState); } /** * Whether to enable certificate name check at origin level * */ @Export(name="enforceCertificateNameCheck", refs={Boolean.class}, tree="[0]") private Output enforceCertificateNameCheck; /** * @return Whether to enable certificate name check at origin level * */ public Output> enforceCertificateNameCheck() { return Codegen.optional(this.enforceCertificateNameCheck); } /** * The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. * */ @Export(name="hostName", refs={String.class}, tree="[0]") private Output hostName; /** * @return The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. * */ public Output hostName() { return this.hostName; } /** * The value of the HTTP port. Must be between 1 and 65535. * */ @Export(name="httpPort", refs={Integer.class}, tree="[0]") private Output httpPort; /** * @return The value of the HTTP port. Must be between 1 and 65535. * */ public Output> httpPort() { return Codegen.optional(this.httpPort); } /** * The value of the HTTPS port. Must be between 1 and 65535. * */ @Export(name="httpsPort", refs={Integer.class}, tree="[0]") private Output httpsPort; /** * @return The value of the HTTPS port. Must be between 1 and 65535. * */ public Output> httpsPort() { return Codegen.optional(this.httpsPort); } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * The name of the origin group which contains this origin. * */ @Export(name="originGroupName", refs={String.class}, tree="[0]") private Output originGroupName; /** * @return The name of the origin group which contains this origin. * */ public Output originGroupName() { return this.originGroupName; } /** * The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint * */ @Export(name="originHostHeader", refs={String.class}, tree="[0]") private Output originHostHeader; /** * @return The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint * */ public Output> originHostHeader() { return Codegen.optional(this.originHostHeader); } /** * Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 * */ @Export(name="priority", refs={Integer.class}, tree="[0]") private Output priority; /** * @return Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5 * */ public Output> priority() { return Codegen.optional(this.priority); } /** * Provisioning status * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning status * */ public Output provisioningState() { return this.provisioningState; } /** * The properties of the private link resource for private origin. * */ @Export(name="sharedPrivateLinkResource", refs={SharedPrivateLinkResourcePropertiesResponse.class}, tree="[0]") private Output sharedPrivateLinkResource; /** * @return The properties of the private link resource for private origin. * */ public Output> sharedPrivateLinkResource() { return Codegen.optional(this.sharedPrivateLinkResource); } /** * Read only system data * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Read only system data * */ public Output systemData() { return this.systemData; } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 * */ @Export(name="weight", refs={Integer.class}, tree="[0]") private Output weight; /** * @return Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 * */ public Output> weight() { return Codegen.optional(this.weight); } /** * * @param name The _unique_ name of the resulting resource. */ public AFDOrigin(java.lang.String name) { this(name, AFDOriginArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AFDOrigin(java.lang.String name, AFDOriginArgs 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 AFDOrigin(java.lang.String name, AFDOriginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:cdn:AFDOrigin", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AFDOrigin(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:cdn:AFDOrigin", name, null, makeResourceOptions(options, id), false); } private static AFDOriginArgs makeArgs(AFDOriginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AFDOriginArgs.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:cdn/v20200901:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20210601:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20220501preview:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20221101preview:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20230501:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20230701preview:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20240201:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20240501preview:AFDOrigin").build()), Output.of(Alias.builder().type("azure-native:cdn/v20240601preview:AFDOrigin").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 AFDOrigin get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AFDOrigin(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy