Skip to content
v2.277.0

CfnCertificateProps Struct ​

Properties for defining a CfnCertificate.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_transfer as transfer } from 'aws-cdk-lib';
const cfnCertificateProps: transfer.CfnCertificateProps = {
  certificate: 'certificate',
  usage: 'usage',

  // the properties below are optional
  activeDate: 'activeDate',
  certificateChain: 'certificateChain',
  description: 'description',
  inactiveDate: 'inactiveDate',
  privateKey: 'privateKey',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_transfer as transfer

cfn_certificate_props = transfer.CfnCertificateProps(
    certificate="certificate",
    usage="usage",

    # the properties below are optional
    active_date="activeDate",
    certificate_chain="certificateChain",
    description="description",
    inactive_date="inactiveDate",
    private_key="privateKey",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.transfer.*;

CfnCertificateProps cfnCertificateProps = CfnCertificateProps.builder()
        .certificate("certificate")
        .usage("usage")

        // the properties below are optional
        .activeDate("activeDate")
        .certificateChain("certificateChain")
        .description("description")
        .inactiveDate("inactiveDate")
        .privateKey("privateKey")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Transfer;

var cfnCertificateProps = new CfnCertificateProps {
    Certificate = "certificate",
    Usage = "usage",

    // the properties below are optional
    ActiveDate = "activeDate",
    CertificateChain = "certificateChain",
    Description = "description",
    InactiveDate = "inactiveDate",
    PrivateKey = "privateKey",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnCertificateProps := &CfnCertificateProps{
	Certificate: jsii.String("certificate"),
	Usage: jsii.String("usage"),

	// the properties below are optional
	ActiveDate: jsii.String("activeDate"),
	CertificateChain: jsii.String("certificateChain"),
	Description: jsii.String("description"),
	InactiveDate: jsii.String("inactiveDate"),
	PrivateKey: jsii.String("privateKey"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

activeDateoptionalstringactive_dateoptionalstractiveDateoptionalStringActiveDateoptionalstringActiveDateoptional*string#
An optional date that specifies when the certificate becomes active.

If you do not specify a value, ActiveDate takes the same value as NotBeforeDate , which is specified by the CA.

certificatestringcertificatestrcertificateStringCertificatestringCertificate*stringrequired#
The file name for the certificate.
certificateChainoptionalstringcertificate_chainoptionalstrcertificateChainoptionalStringCertificateChainoptionalstringCertificateChainoptional*string#
The list of certificates that make up the chain for the certificate.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The name or description that's used to identity the certificate.
inactiveDateoptionalstringinactive_dateoptionalstrinactiveDateoptionalStringInactiveDateoptionalstringInactiveDateoptional*string#
An optional date that specifies when the certificate becomes inactive.

If you do not specify a value, InactiveDate takes the same value as NotAfterDate , which is specified by the CA.

privateKeyoptionalstringprivate_keyoptionalstrprivateKeyoptionalStringPrivateKeyoptionalstringPrivateKeyoptional*string#
The file that contains the private key for the certificate that's being imported.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
Key-value pairs that can be used to group and search for certificates.
usagestringusagestrusageStringUsagestringUsage*stringrequired#
Specifies how this certificate is used. It can be used in the following ways:.
  • SIGNING : For signing AS2 messages
  • ENCRYPTION : For encrypting AS2 messages
  • TLS : For securing AS2 communications sent over HTTPS