Package com.pulumi.gcp.compute
Class MangedSslCertificate
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.gcp.compute.MangedSslCertificate
-
@Deprecated public class MangedSslCertificate extends com.pulumi.resources.CustomResource
Deprecated.gcp.compute.MangedSslCertificate has been deprecated in favor of gcp.compute.ManagedSslCertificateAn SslCertificate resource, used for HTTPS load balancing. This resource represents a certificate for which the certificate secrets are created and managed by Google. For a resource where you provide the key, see the SSL Certificate resource. To get more information about ManagedSslCertificate, see: * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/sslCertificates) * How-to Guides * [Official Documentation](https://cloud.google.com/load-balancing/docs/ssl-certificates) > **Warning:** This resource should be used with extreme caution! Provisioning an SSL certificate is complex. Ensure that you understand the lifecycle of a certificate before attempting complex tasks like cert rotation automatically. This resource will "return" as soon as the certificate object is created, but post-creation the certificate object will go through a "provisioning" process. The provisioning process can complete only when the domain name for which the certificate is created points to a target pool which, itself, points at the certificate. Depending on your DNS provider, this may take some time, and migrating from self-managed certificates to Google-managed certificates may entail some downtime while the certificate provisions. In conclusion: Be extremely cautious. ## Example Usage ### Managed Ssl Certificate Basic ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.compute.ManagedSslCertificate; import com.pulumi.gcp.compute.ManagedSslCertificateArgs; import com.pulumi.gcp.compute.inputs.ManagedSslCertificateManagedArgs; import com.pulumi.gcp.compute.HttpHealthCheck; import com.pulumi.gcp.compute.HttpHealthCheckArgs; import com.pulumi.gcp.compute.BackendService; import com.pulumi.gcp.compute.BackendServiceArgs; import com.pulumi.gcp.compute.URLMap; import com.pulumi.gcp.compute.URLMapArgs; import com.pulumi.gcp.compute.inputs.URLMapHostRuleArgs; import com.pulumi.gcp.compute.inputs.URLMapPathMatcherArgs; import com.pulumi.gcp.compute.TargetHttpsProxy; import com.pulumi.gcp.compute.TargetHttpsProxyArgs; import com.pulumi.gcp.compute.GlobalForwardingRule; import com.pulumi.gcp.compute.GlobalForwardingRuleArgs; 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 defaultManagedSslCertificate = new ManagedSslCertificate("defaultManagedSslCertificate", ManagedSslCertificateArgs.builder() .managed(ManagedSslCertificateManagedArgs.builder() .domains("sslcert.tf-test.club.") .build()) .build()); var defaultHttpHealthCheck = new HttpHealthCheck("defaultHttpHealthCheck", HttpHealthCheckArgs.builder() .requestPath("/") .checkIntervalSec(1) .timeoutSec(1) .build()); var defaultBackendService = new BackendService("defaultBackendService", BackendServiceArgs.builder() .portName("http") .protocol("HTTP") .timeoutSec(10) .healthChecks(defaultHttpHealthCheck.id()) .build()); var defaultURLMap = new URLMap("defaultURLMap", URLMapArgs.builder() .description("a description") .defaultService(defaultBackendService.id()) .hostRules(URLMapHostRuleArgs.builder() .hosts("sslcert.tf-test.club") .pathMatcher("allpaths") .build()) .pathMatchers(URLMapPathMatcherArgs.builder() .name("allpaths") .defaultService(defaultBackendService.id()) .pathRules(URLMapPathMatcherPathRuleArgs.builder() .paths("/*") .service(defaultBackendService.id()) .build()) .build()) .build()); var defaultTargetHttpsProxy = new TargetHttpsProxy("defaultTargetHttpsProxy", TargetHttpsProxyArgs.builder() .urlMap(defaultURLMap.id()) .sslCertificates(defaultManagedSslCertificate.id()) .build()); var defaultGlobalForwardingRule = new GlobalForwardingRule("defaultGlobalForwardingRule", GlobalForwardingRuleArgs.builder() .target(defaultTargetHttpsProxy.id()) .portRange(443) .build()); } } ``` ## Import ManagedSslCertificate can be imported using any of these accepted formats ```sh $ pulumi import gcp:compute/mangedSslCertificate:MangedSslCertificate default projects/{{project}}/global/sslCertificates/{{name}} ``` ```sh $ pulumi import gcp:compute/mangedSslCertificate:MangedSslCertificate default {{project}}/{{name}} ``` ```sh $ pulumi import gcp:compute/mangedSslCertificate:MangedSslCertificate default {{name}} ```
-
-
Constructor Summary
Constructors Constructor Description MangedSslCertificate(java.lang.String name)
Deprecated.MangedSslCertificate(java.lang.String name, MangedSslCertificateArgs args)
Deprecated.MangedSslCertificate(java.lang.String name, MangedSslCertificateArgs args, com.pulumi.resources.CustomResourceOptions options)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Integer>
certificateId()
Deprecated.com.pulumi.core.Output<java.lang.String>
creationTimestamp()
Deprecated.com.pulumi.core.Output<java.util.Optional<java.lang.String>>
description()
Deprecated.com.pulumi.core.Output<java.lang.String>
expireTime()
Deprecated.static MangedSslCertificate
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, MangedSslCertificateState state, com.pulumi.resources.CustomResourceOptions options)
Deprecated.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.util.Optional<MangedSslCertificateManaged>>
managed()
Deprecated.com.pulumi.core.Output<java.lang.String>
name()
Deprecated.com.pulumi.core.Output<java.lang.String>
project()
Deprecated.com.pulumi.core.Output<java.lang.String>
selfLink()
Deprecated.com.pulumi.core.Output<java.util.List<java.lang.String>>
subjectAlternativeNames()
Deprecated.com.pulumi.core.Output<java.util.Optional<java.lang.String>>
type()
Deprecated.
-
-
-
Constructor Detail
-
MangedSslCertificate
public MangedSslCertificate(java.lang.String name)
Deprecated.- Parameters:
name
- The _unique_ name of the resulting resource.
-
MangedSslCertificate
public MangedSslCertificate(java.lang.String name, @Nullable MangedSslCertificateArgs args)
Deprecated.- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
MangedSslCertificate
public MangedSslCertificate(java.lang.String name, @Nullable MangedSslCertificateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
Deprecated.- 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
-
certificateId
public com.pulumi.core.Output<java.lang.Integer> certificateId()
Deprecated.- Returns:
- The unique identifier for the resource.
-
creationTimestamp
public com.pulumi.core.Output<java.lang.String> creationTimestamp()
Deprecated.- Returns:
- Creation timestamp in RFC3339 text format.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
Deprecated.- Returns:
- An optional description of this resource.
-
expireTime
public com.pulumi.core.Output<java.lang.String> expireTime()
Deprecated.- Returns:
- Expire time of the certificate in RFC3339 text format.
-
managed
public com.pulumi.core.Output<java.util.Optional<MangedSslCertificateManaged>> managed()
Deprecated.- Returns:
- Properties relevant to a managed certificate. These will be used if the certificate is managed (as indicated by a value of `MANAGED` in `type`). Structure is documented below.
-
name
public com.pulumi.core.Output<java.lang.String> name()
Deprecated.- Returns:
- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. These are in the same namespace as the managed SSL certificates.
-
project
public com.pulumi.core.Output<java.lang.String> project()
Deprecated.- Returns:
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
selfLink
public com.pulumi.core.Output<java.lang.String> selfLink()
Deprecated.- Returns:
- The URI of the created resource.
-
subjectAlternativeNames
public com.pulumi.core.Output<java.util.List<java.lang.String>> subjectAlternativeNames()
Deprecated.- Returns:
- Domains associated with the certificate via Subject Alternative Name.
-
type
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> type()
Deprecated.- Returns:
- Enum field whose value is always `MANAGED` - used to signal to the API which type this is. Default value is `MANAGED`. Possible values are: `MANAGED`.
-
get
public static MangedSslCertificate get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable MangedSslCertificateState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Deprecated.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.
-
-