Package com.pulumi.cloudamqp
Class CustomDomain
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.cloudamqp.CustomDomain
-
public class CustomDomain extends com.pulumi.resources.CustomResourceThis resource allows you to configure and manage your custom domain for the CloudAMQP instance. Adding a custom domain to your instance will generate a TLS certificate from [Let's Encrypt], for the given hostname, and install it on all servers in your cluster. The certificate will be automatically renewed going forward. > **WARNING:** Please note that when creating, changing or deleting the custom domain, the listeners on your servers will be restarted in order to apply the changes. This will close your current connections. Your custom domain name needs to point to your CloudAMQP hostname, preferably using a CNAME DNS record. Only available for dedicated subscription plans. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.cloudamqp.CustomDomain; import com.pulumi.cloudamqp.CustomDomainArgs; 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 settings = new CustomDomain("settings", CustomDomainArgs.builder() .instanceId(cloudamqp_instance.instance().id()) .hostname("myname.mydomain") .build()); } } ``` ## Depedency This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`. ## Import `cloudamqp_custom_domain` can be imported using CloudAMQP instance identifier. ```sh $ pulumi import cloudamqp:index/customDomain:CustomDomain settings <instance_id>` ``` [Let's Encrypt]https://letsencrypt.org/
-
-
Constructor Summary
Constructors Constructor Description CustomDomain(java.lang.String name)CustomDomain(java.lang.String name, CustomDomainArgs args)CustomDomain(java.lang.String name, CustomDomainArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomDomainget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, CustomDomainState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>hostname()com.pulumi.core.Output<java.lang.Integer>instanceId()
-
-
-
Constructor Detail
-
CustomDomain
public CustomDomain(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
CustomDomain
public CustomDomain(java.lang.String name, CustomDomainArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
CustomDomain
public CustomDomain(java.lang.String name, CustomDomainArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
hostname
public com.pulumi.core.Output<java.lang.String> hostname()
- Returns:
- Your custom domain name.
-
instanceId
public com.pulumi.core.Output<java.lang.Integer> instanceId()
- Returns:
- The CloudAMQP instance ID.
-
get
public static CustomDomain get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable CustomDomainState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-