class CfnServerCertificatePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IAM.Mixins.CfnServerCertificatePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiam/mixins#CfnServerCertificatePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.iam.mixins.CfnServerCertificatePropsMixin |
Python | aws_cdk.mixins_preview.aws_iam.mixins.CfnServerCertificatePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_iam » mixins » CfnServerCertificatePropsMixin |
Implements
IMixin
Extends
Mixin
Uploads a server certificate entity for the AWS account .
The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.
We recommend that you use Certificate Manager to provision, manage, and deploy your server certificates. With ACM you can request a certificate, deploy it to AWS resources, and let ACM handle certificate renewals for you. Certificates provided by ACM are free. For more information about using ACM, see the Certificate Manager User Guide .
For more information about working with server certificates, see Working with server certificates in the IAM User Guide . This topic includes a list of AWS services that can use the server certificates that you manage with IAM.
For information about the number of server certificates you can upload, see IAM and AWS STS quotas in the IAM User Guide .
Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling
UploadServerCertificate. For information about setting up signatures and authorization through the API, see Signing AWS API requests in the AWS General Reference . For general information about using the Query API with IAM, see Calling the API by making HTTP query requests in the IAM User Guide .
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 iam_mixins } from '@aws-cdk/mixins-preview/aws-iam';
const cfnServerCertificatePropsMixin = new iam_mixins.CfnServerCertificatePropsMixin({
certificateBody: 'certificateBody',
certificateChain: 'certificateChain',
path: 'path',
privateKey: 'privateKey',
serverCertificateName: 'serverCertificateName',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnServerCertificatePropsMixin(props: CfnServerCertificateMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Server Certificate Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::IAM::ServerCertificate.
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