# CfnCertificateProps

Properties for defining a `CfnCertificate`.

Used as props by: [CfnCertificate](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_transfer.CfnCertificate.html)

- Source: Generated at build time
- Type last changed: v2.46.0 · 13 Oct 2022

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `activeDate`: 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.

- `certificate`: string (required) — The file name for the certificate.

- `certificateChain`: string — The list of certificates that make up the chain for the certificate.

- `description`: string — The name or description that's used to identity the certificate.

- `inactiveDate`: 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.

- `privateKey`: string — The file that contains the private key for the certificate that's being imported.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Key-value pairs that can be used to group and search for certificates.

- `usage`: string (required) — 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
