Certificate
- Implements: ICertificate
This class encapsulates and extends the ROS resource type ALIYUN::ESA::Certificate.
Initializers
import com.aliyun.ros.cdk.esa.Certificate;
Certificate.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.createdType(java.lang.String)
.createdType(IResolvable)
.domains(IResolvable)
.domains(java.util.List<java.lang.String)
.domains(IResolvable>)
.siteId(java.lang.Number)
.siteId(IResolvable)
// .casId(java.lang.String)
// .casId(IResolvable)
// .certId(java.lang.String)
// .certId(IResolvable)
// .certificate(java.lang.String)
// .certificate(IResolvable)
// .certName(java.lang.String)
// .certName(IResolvable)
// .privateKey(java.lang.String)
// .privateKey(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
createdType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property createdType: The certificate type. |
domains | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property domains: A list of domain names. |
siteId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteId: The site ID, which can be obtained by calling the ListSites interface. |
casId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property casId: Cloud certificate ID. |
certId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property certId: The certificate Id. |
certificate | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property certificate: Certificate content. |
certName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property certName: The certificate name. |
privateKey | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property privateKey: The certificate private key. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
createdTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property createdType: The certificate type.
- cas (Certificate Center Certificate)
- upload (custom upload certificate)
- free( Free certificate).
domainsRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property domains: A list of domain names.
Multiple domain names are separated by commas.
siteIdRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteId: The site ID, which can be obtained by calling the ListSites interface.
casIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property casId: Cloud certificate ID.
certIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property certId: The certificate Id.
certificateOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property certificate: Certificate content.
certNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property certName: The certificate name.
privateKeyOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property privateKey: The certificate private key.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.esa.Certificate;
Certificate.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrApplyCode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ApplyCode: Certificate application error code. |
attrApplyMessage | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ApplyMessage: Certificate application error message. |
attrCasId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CasId: Cloud certificate ID. |
attrCertId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CertId: The certificate Id. |
attrCertificate | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Certificate: Certificate content. |
attrCertName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CertName: The certificate name. |
attrCommonName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CommonName: Common Name (CN) field of the certificate. |
attrCreateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CreateTime: Creation time. |
attrDcv | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DCV: DCV information. |
attrDomains | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Domains: A list of domain names. |
attrFingerprintSha256 | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute FingerprintSha256: SHA256 fingerprint of the certificate. |
attrIssuer | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Issuer: Certificate issuer. |
attrIssuerCn | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute IssuerCN: Common name of the certificate issuer. |
attrNotAfter | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute NotAfter: End time of the certificate validity period. |
attrNotBefore | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute NotBefore: Start time of the certificate validity period. |
attrPubAlg | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PubAlg: Certificate public key algorithm. |
attrSerialNumber | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SerialNumber: Serial number of the certificate. |
attrSigAlg | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SigAlg: Certificate signature algorithm. |
attrSiteId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SiteId: The site ID, which can be obtained by calling the ListSites interface. |
attrSiteName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SiteName: Site name. |
attrUpdateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute UpdateTime: Update time. |
props | CertificateProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrApplyCodeRequired
public java.lang.Object getAttrApplyCode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ApplyCode: Certificate application error code.
attrApplyMessageRequired
public java.lang.Object getAttrApplyMessage();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ApplyMessage: Certificate application error message.
attrCasIdRequired
public java.lang.Object getAttrCasId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CasId: Cloud certificate ID.
attrCertIdRequired
public java.lang.Object getAttrCertId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CertId: The certificate Id.
attrCertificateRequired
public java.lang.Object getAttrCertificate();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Certificate: Certificate content.
attrCertNameRequired
public java.lang.Object getAttrCertName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CertName: The certificate name.
attrCommonNameRequired
public java.lang.Object getAttrCommonName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CommonName: Common Name (CN) field of the certificate.
attrCreateTimeRequired
public java.lang.Object getAttrCreateTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: Creation time.
attrDcvRequired
public java.lang.Object getAttrDcv();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DCV: DCV information.
attrDomainsRequired
public java.lang.Object getAttrDomains();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Domains: A list of domain names.
Multiple domain names are separated by commas.
attrFingerprintSha256Required
public java.lang.Object getAttrFingerprintSha256();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute FingerprintSha256: SHA256 fingerprint of the certificate.
attrIssuerRequired
public java.lang.Object getAttrIssuer();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Issuer: Certificate issuer.
attrIssuerCnRequired
public java.lang.Object getAttrIssuerCn();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute IssuerCN: Common name of the certificate issuer.
attrNotAfterRequired
public java.lang.Object getAttrNotAfter();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute NotAfter: End time of the certificate validity period.
attrNotBeforeRequired
public java.lang.Object getAttrNotBefore();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute NotBefore: Start time of the certificate validity period.
attrPubAlgRequired
public java.lang.Object getAttrPubAlg();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute PubAlg: Certificate public key algorithm.
attrSerialNumberRequired
public java.lang.Object getAttrSerialNumber();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SerialNumber: Serial number of the certificate.
attrSigAlgRequired
public java.lang.Object getAttrSigAlg();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SigAlg: Certificate signature algorithm.
attrSiteIdRequired
public java.lang.Object getAttrSiteId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SiteId: The site ID, which can be obtained by calling the ListSites interface.
attrSiteNameRequired
public java.lang.Object getAttrSiteName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SiteName: Site name.
attrUpdateTimeRequired
public java.lang.Object getAttrUpdateTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute UpdateTime: Update time.
propsRequired
public CertificateProps getProps();
- Type: CertificateProps