com.pulumi.azurenative.cdn.AFDCustomDomain 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.cdn;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.cdn.AFDCustomDomainArgs;
import com.pulumi.azurenative.cdn.outputs.AFDDomainHttpsParametersResponse;
import com.pulumi.azurenative.cdn.outputs.DomainValidationPropertiesResponse;
import com.pulumi.azurenative.cdn.outputs.ResourceReferenceResponse;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com.
* 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, 2024-09-01.
*
* ## Example Usage
* ### AFDCustomDomains_Create
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.cdn.AFDCustomDomain;
* import com.pulumi.azurenative.cdn.AFDCustomDomainArgs;
* import com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs;
* import com.pulumi.azurenative.cdn.inputs.AFDDomainHttpsParametersArgs;
* 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 afdCustomDomain = new AFDCustomDomain("afdCustomDomain", AFDCustomDomainArgs.builder()
* .azureDnsZone(ResourceReferenceArgs.builder()
* .id("")
* .build())
* .customDomainName("domain1")
* .hostName("www.someDomain.net")
* .profileName("profile1")
* .resourceGroupName("RG")
* .tlsSettings(AFDDomainHttpsParametersArgs.builder()
* .certificateType("ManagedCertificate")
* .minimumTlsVersion("TLS12")
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:cdn:AFDCustomDomain domain1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}
* ```
*
*/
@ResourceType(type="azure-native:cdn:AFDCustomDomain")
public class AFDCustomDomain extends com.pulumi.resources.CustomResource {
/**
* Resource reference to the Azure DNS zone
*
*/
@Export(name="azureDnsZone", refs={ResourceReferenceResponse.class}, tree="[0]")
private Output* @Nullable */ ResourceReferenceResponse> azureDnsZone;
/**
* @return Resource reference to the Azure DNS zone
*
*/
public Output> azureDnsZone() {
return Codegen.optional(this.azureDnsZone);
}
@Export(name="deploymentStatus", refs={String.class}, tree="[0]")
private Output deploymentStatus;
public Output deploymentStatus() {
return this.deploymentStatus;
}
/**
* Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.
*
*/
@Export(name="domainValidationState", refs={String.class}, tree="[0]")
private Output domainValidationState;
/**
* @return Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.
*
*/
public Output domainValidationState() {
return this.domainValidationState;
}
/**
* Key-Value pair representing migration properties for domains.
*
*/
@Export(name="extendedProperties", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> extendedProperties;
/**
* @return Key-Value pair representing migration properties for domains.
*
*/
public Output>> extendedProperties() {
return Codegen.optional(this.extendedProperties);
}
/**
* The host name of the domain. Must be a domain name.
*
*/
@Export(name="hostName", refs={String.class}, tree="[0]")
private Output hostName;
/**
* @return The host name of the domain. Must be a domain name.
*
*/
public Output hostName() {
return this.hostName;
}
/**
* Resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource name.
*
*/
public Output name() {
return this.name;
}
/**
* Resource reference to the Azure resource where custom domain ownership was prevalidated
*
*/
@Export(name="preValidatedCustomDomainResourceId", refs={ResourceReferenceResponse.class}, tree="[0]")
private Output* @Nullable */ ResourceReferenceResponse> preValidatedCustomDomainResourceId;
/**
* @return Resource reference to the Azure resource where custom domain ownership was prevalidated
*
*/
public Output> preValidatedCustomDomainResourceId() {
return Codegen.optional(this.preValidatedCustomDomainResourceId);
}
/**
* The name of the profile which holds the domain.
*
*/
@Export(name="profileName", refs={String.class}, tree="[0]")
private Output profileName;
/**
* @return The name of the profile which holds the domain.
*
*/
public Output profileName() {
return this.profileName;
}
/**
* Provisioning status
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Provisioning status
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* 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;
}
/**
* The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
*
*/
@Export(name="tlsSettings", refs={AFDDomainHttpsParametersResponse.class}, tree="[0]")
private Output* @Nullable */ AFDDomainHttpsParametersResponse> tlsSettings;
/**
* @return The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
*
*/
public Output> tlsSettings() {
return Codegen.optional(this.tlsSettings);
}
/**
* Resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Resource type.
*
*/
public Output type() {
return this.type;
}
/**
* Values the customer needs to validate domain ownership
*
*/
@Export(name="validationProperties", refs={DomainValidationPropertiesResponse.class}, tree="[0]")
private Output validationProperties;
/**
* @return Values the customer needs to validate domain ownership
*
*/
public Output validationProperties() {
return this.validationProperties;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public AFDCustomDomain(java.lang.String name) {
this(name, AFDCustomDomainArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public AFDCustomDomain(java.lang.String name, AFDCustomDomainArgs 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 AFDCustomDomain(java.lang.String name, AFDCustomDomainArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:cdn:AFDCustomDomain", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private AFDCustomDomain(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:cdn:AFDCustomDomain", name, null, makeResourceOptions(options, id), false);
}
private static AFDCustomDomainArgs makeArgs(AFDCustomDomainArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? AFDCustomDomainArgs.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:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20210601:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20220501preview:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20221101preview:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20230501:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20230701preview:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20240201:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20240501preview:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20240601preview:AFDCustomDomain").build()),
Output.of(Alias.builder().type("azure-native:cdn/v20240901:AFDCustomDomain").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 AFDCustomDomain get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new AFDCustomDomain(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy