@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:38.420Z") public class CfnLoadBalancerTlsCertificate extends CfnResource implements IInspectable
The AWS::Lightsail::LoadBalancerTlsCertificate
resource specifies a TLS certificate that can be used with a Lightsail load balancer.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.lightsail.*; CfnLoadBalancerTlsCertificate cfnLoadBalancerTlsCertificate = CfnLoadBalancerTlsCertificate.Builder.create(this, "MyCfnLoadBalancerTlsCertificate") .certificateDomainName("certificateDomainName") .certificateName("certificateName") .loadBalancerName("loadBalancerName") // the properties below are optional .certificateAlternativeNames(List.of("certificateAlternativeNames")) .httpsRedirectionEnabled(false) .isAttached(false) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnLoadBalancerTlsCertificate.Builder
A fluent builder for
CfnLoadBalancerTlsCertificate . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnLoadBalancerTlsCertificate(Construct scope,
java.lang.String id,
CfnLoadBalancerTlsCertificateProps props)
Create a new `AWS::Lightsail::LoadBalancerTlsCertificate`.
|
protected |
CfnLoadBalancerTlsCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLoadBalancerTlsCertificate(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrLoadBalancerTlsCertificateArn()
The Amazon Resource Name (ARN) of the SSL/TLS certificate.
|
java.lang.String |
getAttrStatus()
The validation status of the SSL/TLS certificate.
|
java.util.List<java.lang.String> |
getCertificateAlternativeNames()
An array of alternative domain names and subdomain names for your SSL/TLS certificate.
|
java.lang.String |
getCertificateDomainName()
The domain name for the SSL/TLS certificate.
|
java.lang.String |
getCertificateName()
The name of the SSL/TLS certificate.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getHttpsRedirectionEnabled()
A Boolean value indicating whether HTTPS redirection is enabled for the load balancer that the TLS certificate is attached to.
|
java.lang.Object |
getIsAttached()
A Boolean value indicating whether the SSL/TLS certificate is attached to a Lightsail load balancer.
|
java.lang.String |
getLoadBalancerName()
The name of the load balancer that the SSL/TLS certificate is attached to.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCertificateAlternativeNames(java.util.List<java.lang.String> value)
An array of alternative domain names and subdomain names for your SSL/TLS certificate.
|
void |
setCertificateDomainName(java.lang.String value)
The domain name for the SSL/TLS certificate.
|
void |
setCertificateName(java.lang.String value)
The name of the SSL/TLS certificate.
|
void |
setHttpsRedirectionEnabled(java.lang.Boolean value)
A Boolean value indicating whether HTTPS redirection is enabled for the load balancer that the TLS certificate is attached to.
|
void |
setHttpsRedirectionEnabled(IResolvable value)
A Boolean value indicating whether HTTPS redirection is enabled for the load balancer that the TLS certificate is attached to.
|
void |
setIsAttached(java.lang.Boolean value)
A Boolean value indicating whether the SSL/TLS certificate is attached to a Lightsail load balancer.
|
void |
setIsAttached(IResolvable value)
A Boolean value indicating whether the SSL/TLS certificate is attached to a Lightsail load balancer.
|
void |
setLoadBalancerName(java.lang.String value)
The name of the load balancer that the SSL/TLS certificate is attached to.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnLoadBalancerTlsCertificate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLoadBalancerTlsCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnLoadBalancerTlsCertificate(Construct scope, java.lang.String id, CfnLoadBalancerTlsCertificateProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrLoadBalancerTlsCertificateArn()
public java.lang.String getAttrStatus()
Valid Values: PENDING_VALIDATION
| ISSUED
| INACTIVE
| EXPIRED
| VALIDATION_TIMED_OUT
| REVOKED
| FAILED
| UNKNOWN
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getCertificateDomainName()
For example, example.com
or www.example.com
.
public void setCertificateDomainName(java.lang.String value)
For example, example.com
or www.example.com
.
public java.lang.String getCertificateName()
public void setCertificateName(java.lang.String value)
public java.lang.String getLoadBalancerName()
public void setLoadBalancerName(java.lang.String value)
public java.util.List<java.lang.String> getCertificateAlternativeNames()
In addition to the primary domain name, you can have up to nine alternative domain names. Wildcards (such as *.example.com
) are not supported.
public void setCertificateAlternativeNames(java.util.List<java.lang.String> value)
In addition to the primary domain name, you can have up to nine alternative domain names. Wildcards (such as *.example.com
) are not supported.
public java.lang.Object getHttpsRedirectionEnabled()
public void setHttpsRedirectionEnabled(java.lang.Boolean value)
public void setHttpsRedirectionEnabled(IResolvable value)
public java.lang.Object getIsAttached()
public void setIsAttached(java.lang.Boolean value)
public void setIsAttached(IResolvable value)