class CfnCertificatePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Transfer.Mixins.CfnCertificatePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awstransfer/mixins#CfnCertificatePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.transfer.mixins.CfnCertificatePropsMixin |
Python | aws_cdk.mixins_preview.aws_transfer.mixins.CfnCertificatePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_transfer » mixins » CfnCertificatePropsMixin |
Implements
IMixin
Extends
Mixin
Imports the signing and encryption certificates that you need to create local (AS2) profiles and partner profiles.
You can import both the certificate and its chain in the Certificate parameter.
After importing a certificate, AWS Transfer Family automatically creates a Amazon CloudWatch metric called DaysUntilExpiry that tracks the number of days until the certificate expires. The metric is based on the InactiveDate parameter and is published daily in the AWS/Transfer namespace.
It can take up to a full day after importing a certificate for Transfer Family to emit the
DaysUntilExpirymetric to your account. > If you use theCertificateparameter to upload both the certificate and its chain, don't use theCertificateChainparameter.
CloudWatch monitoring
The DaysUntilExpiry metric includes the following specifications:
- Units: Count (days)
- Dimensions:
CertificateId(always present),Description(if provided during certificate import) - Statistics: Minimum, Maximum, Average
- Frequency: Published daily
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-certificate.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as transfer_mixins } from '@aws-cdk/mixins-preview/aws-transfer';
const cfnCertificatePropsMixin = new transfer_mixins.CfnCertificatePropsMixin({
activeDate: 'activeDate',
certificate: 'certificate',
certificateChain: 'certificateChain',
description: 'description',
inactiveDate: 'inactiveDate',
privateKey: 'privateKey',
tags: [{
key: 'key',
value: 'value',
}],
usage: 'usage',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnCertificatePropsMixin(props: CfnCertificateMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Certificate Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Transfer::Certificate.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript