From a6f93a69c5097c71b3753dea349671ea71ff5425 Mon Sep 17 00:00:00 2001 From: AWS <> Date: Wed, 3 Mar 2021 19:10:00 +0000 Subject: [PATCH] AWS Certificate Manager Update: Adds 2 new APIs to add and retrieve account configuration in AWS Certificate Manager. --- ...feature-AWSCertificateManager-7f4cf99.json | 6 + .../codegen-resources/service-2.json | 140 +++++++++++++++--- 2 files changed, 129 insertions(+), 17 deletions(-) create mode 100644 .changes/next-release/feature-AWSCertificateManager-7f4cf99.json diff --git a/.changes/next-release/feature-AWSCertificateManager-7f4cf99.json b/.changes/next-release/feature-AWSCertificateManager-7f4cf99.json new file mode 100644 index 000000000000..f9b9e02fc93f --- /dev/null +++ b/.changes/next-release/feature-AWSCertificateManager-7f4cf99.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "AWS Certificate Manager", + "contributor": "", + "description": "Adds 2 new APIs to add and retrieve account configuration in AWS Certificate Manager." +} diff --git a/services/acm/src/main/resources/codegen-resources/service-2.json b/services/acm/src/main/resources/codegen-resources/service-2.json index 7c055bde82f3..93adef55ae57 100644 --- a/services/acm/src/main/resources/codegen-resources/service-2.json +++ b/services/acm/src/main/resources/codegen-resources/service-2.json @@ -26,7 +26,8 @@ {"shape":"InvalidTagException"}, {"shape":"TooManyTagsException"}, {"shape":"TagPolicyException"}, - {"shape":"InvalidParameterException"} + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} ], "documentation":"
Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key
and an optional value
. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair.
You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM certificates.
To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action.
" }, @@ -73,6 +74,19 @@ ], "documentation":"Exports a private certificate issued by a private certificate authority (CA) for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private 2048-bit RSA key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it.
For information about exporting and formatting a certificate using the ACM console or CLI, see Export a Private Certificate.
" }, + "GetAccountConfiguration":{ + "name":"GetAccountConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "output":{"shape":"GetAccountConfigurationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"Returns the account configuration options associated with an AWS account.
" + }, "GetCertificate":{ "name":"GetCertificate", "http":{ @@ -102,9 +116,10 @@ {"shape":"InvalidTagException"}, {"shape":"TooManyTagsException"}, {"shape":"TagPolicyException"}, - {"shape":"InvalidParameterException"} + {"shape":"InvalidParameterException"}, + {"shape":"InvalidArnException"} ], - "documentation":"Imports a certificate into AWS Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates in the AWS Certificate Manager User Guide.
ACM does not provide managed renewal for certificates that you import.
Note the following guidelines when importing third party certificates:
You must enter the private key that matches the certificate you are importing.
The private key must be unencrypted. You cannot import a private key that is protected by a password or a passphrase.
If the certificate you are importing is not self-signed, you must enter its certificate chain.
If a certificate chain is included, the issuer must be the subject of one of the certificates in the chain.
The certificate, private key, and certificate chain must be PEM-encoded.
The current time must be between the Not Before
and Not After
certificate fields.
The Issuer
field must not be empty.
The OCSP authority URL, if present, must not exceed 1000 characters.
To import a new certificate, omit the CertificateArn
argument. Include this argument only when you want to replace a previously imported certifica
When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by file://
. For example, you can specify a certificate saved in the C:\\temp
folder as file://C:\\temp\\certificate_to_import.pem
. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs.
When you import a certificate by using an SDK, you must specify the certificate, the certificate chain, and the private key files in the manner required by the programming language you're using.
The cryptographic algorithm of an imported certificate must match the algorithm of the signing CA. For example, if the signing CA key type is RSA, then the certificate key type must also be RSA.
This operation returns the Amazon Resource Name (ARN) of the imported certificate.
" + "documentation":"Imports a certificate into AWS Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates in the AWS Certificate Manager User Guide.
ACM does not provide managed renewal for certificates that you import.
Note the following guidelines when importing third party certificates:
You must enter the private key that matches the certificate you are importing.
The private key must be unencrypted. You cannot import a private key that is protected by a password or a passphrase.
The private key must be no larger than 5 KB (5,120 bytes).
If the certificate you are importing is not self-signed, you must enter its certificate chain.
If a certificate chain is included, the issuer must be the subject of one of the certificates in the chain.
The certificate, private key, and certificate chain must be PEM-encoded.
The current time must be between the Not Before
and Not After
certificate fields.
The Issuer
field must not be empty.
The OCSP authority URL, if present, must not exceed 1000 characters.
To import a new certificate, omit the CertificateArn
argument. Include this argument only when you want to replace a previously imported certificate.
When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by fileb://
. For example, you can specify a certificate saved in the C:\\temp
folder as fileb://C:\\temp\\certificate_to_import.pem
. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs.
When you import a certificate by using an SDK, you must specify the certificate, the certificate chain, and the private key files in the manner required by the programming language you're using.
The cryptographic algorithm of an imported certificate must match the algorithm of the signing CA. For example, if the signing CA key type is RSA, then the certificate key type must also be RSA.
This operation returns the Amazon Resource Name (ARN) of the imported certificate.
" }, "ListCertificates":{ "name":"ListCertificates", @@ -133,6 +148,21 @@ ], "documentation":"Lists the tags that have been applied to the ACM certificate. Use the certificate's Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action.
" }, + "PutAccountConfiguration":{ + "name":"PutAccountConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutAccountConfigurationRequest"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"Adds or modifies account-level configurations in ACM.
The supported configuration option is DaysBeforeExpiry
. This option specifies the number of days prior to certificate expiration when ACM starts generating EventBridge
events. ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration.
Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value.
To add tags to a certificate, use the AddTagsToCertificate action. To view all of the tags that have been applied to a specific ACM certificate, use the ListTagsForCertificate action.
" }, @@ -160,7 +191,7 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InvalidArnException"} ], - "documentation":"Renews an eligable ACM certificate. At this time, only exported private certificates can be renewed with this operation. In order to renew your ACM PCA certificates with ACM, you must first grant the ACM service principal permission to do so. For more information, see Testing Managed Renewal in the ACM User Guide.
" + "documentation":"Renews an eligible ACM certificate. At this time, only exported private certificates can be renewed with this operation. In order to renew your ACM PCA certificates with ACM, you must first grant the ACM service principal permission to do so. For more information, see Testing Managed Renewal in the ACM User Guide.
" }, "RequestCertificate":{ "name":"RequestCertificate", @@ -213,6 +244,15 @@ } }, "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ServiceErrorMessage"} + }, + "documentation":"You do not have access required to perform this action.
", + "exception":true, + "synthetic":true + }, "AddTagsToCertificateRequest":{ "type":"structure", "required":[ @@ -222,7 +262,7 @@ "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"String that contains the ARN of the ACM certificate to which the tag is to be applied. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"String that contains the ARN of the ACM certificate to which the tag is to be applied. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" }, "Tags":{ "shape":"TagList", @@ -236,6 +276,7 @@ "min":20, "pattern":"arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:[\\w+=/,.@-]*:[0-9]+:[\\w+=,.@-]+(/[\\w+=,.@-]+)*" }, + "AvailabilityErrorMessage":{"type":"string"}, "CertificateBody":{ "type":"string", "max":32768, @@ -263,7 +304,7 @@ "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
" + "documentation":"The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.
" }, "DomainName":{ "shape":"DomainNameString", @@ -291,7 +332,7 @@ }, "CreatedAt":{ "shape":"TStamp", - "documentation":"The time at which the certificate was requested. This value exists only when the certificate type is AMAZON_ISSUED
.
The time at which the certificate was requested.
" }, "IssuedAt":{ "shape":"TStamp", @@ -399,7 +440,7 @@ "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"Amazon Resource Name (ARN) of the certificate. This is of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"Amazon Resource Name (ARN) of the certificate. This is of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" }, "DomainName":{ "shape":"DomainNameString", @@ -427,13 +468,21 @@ "PRIVATE" ] }, + "ConflictException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "documentation":"You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again.
", + "exception":true + }, "DeleteCertificateRequest":{ "type":"structure", "required":["CertificateArn"], "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"String that contains the ARN of the ACM certificate to be deleted. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"String that contains the ARN of the ACM certificate to be deleted. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" } } }, @@ -443,7 +492,7 @@ "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" } } }, @@ -537,6 +586,16 @@ "max":100, "min":1 }, + "ExpiryEventsConfiguration":{ + "type":"structure", + "members":{ + "DaysBeforeExpiry":{ + "shape":"PositiveInteger", + "documentation":"Specifies the number of days prior to certificate expiration when ACM starts generating EventBridge
events. ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration.
Object containing expiration events options associated with an AWS account.
" + }, "ExportCertificateRequest":{ "type":"structure", "required":[ @@ -645,18 +704,27 @@ }, "keyTypes":{ "shape":"KeyAlgorithmList", - "documentation":"Specify one or more algorithms that can be used to generate key pairs.
Default filtering returns only RSA_2048
certificates. To return other certificate types, provide the desired type signatures in a comma-separated list. For example, \"keyTypes\": [\"RSA_2048,RSA_4096\"]
returns both RSA_2048
and RSA_4096
certificates.
Specify one or more algorithms that can be used to generate key pairs.
Default filtering returns only RSA_1024
and RSA_2048
certificates that have at least one domain. To return other certificate types, provide the desired type signatures in a comma-separated list. For example, \"keyTypes\": [\"RSA_2048,RSA_4096\"]
returns both RSA_2048
and RSA_4096
certificates.
This structure can be used in the ListCertificates action to filter the output of the certificate list.
" }, + "GetAccountConfigurationResponse":{ + "type":"structure", + "members":{ + "ExpiryEvents":{ + "shape":"ExpiryEventsConfiguration", + "documentation":"Expiration events configuration options associated with the AWS account.
" + } + } + }, "GetCertificateRequest":{ "type":"structure", "required":["CertificateArn"], "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"String that contains a certificate ARN in the following format:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"String that contains a certificate ARN in the following format:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" } } }, @@ -866,7 +934,7 @@ "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"String that contains the ARN of the ACM certificate for which you want to list the tags. This must have the following form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"String that contains the ARN of the ACM certificate for which you want to list the tags. This must have the following form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" } } }, @@ -896,6 +964,10 @@ "min":4, "sensitive":true }, + "PositiveInteger":{ + "type":"integer", + "min":1 + }, "PrivateKey":{ "type":"string", "max":524288, @@ -909,6 +981,20 @@ "min":1, "sensitive":true }, + "PutAccountConfigurationRequest":{ + "type":"structure", + "required":["IdempotencyToken"], + "members":{ + "ExpiryEvents":{ + "shape":"ExpiryEventsConfiguration", + "documentation":"Specifies expiration events associated with an account.
" + }, + "IdempotencyToken":{ + "shape":"IdempotencyToken", + "documentation":"Customer-chosen string used to distinguish between calls to PutAccountConfiguration
. Idempotency tokens time out after one hour. If you call PutAccountConfiguration
multiple times with the same unexpired idempotency token, ACM treats it as the same request and returns the original result. If you change the idempotency token for each call, ACM treats each call as a new request.
String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" }, "Tags":{ "shape":"TagList", @@ -936,7 +1022,7 @@ "members":{ "CertificateArn":{ "shape":"Arn", - "documentation":"String that contains the ARN of the ACM certificate to be renewed. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "documentation":"String that contains the ARN of the ACM certificate to be renewed. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
" } } }, @@ -1114,6 +1200,7 @@ "A_A_COMPROMISE" ] }, + "ServiceErrorMessage":{"type":"string"}, "String":{"type":"string"}, "TStamp":{"type":"timestamp"}, "Tag":{ @@ -1157,6 +1244,15 @@ "min":0, "pattern":"[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*" }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "message":{"shape":"AvailabilityErrorMessage"} + }, + "documentation":"The request was denied because it exceeded a quota.
", + "exception":true, + "synthetic":true + }, "TooManyTagsException":{ "type":"structure", "members":{ @@ -1186,6 +1282,16 @@ "type":"list", "member":{"shape":"String"} }, + "ValidationException":{ + "type":"structure", + "members":{ + "message":{"shape":"ValidationExceptionMessage"} + }, + "documentation":"The supplied input failed to satisfy constraints of an AWS service.
", + "exception":true, + "synthetic":true + }, + "ValidationExceptionMessage":{"type":"string"}, "ValidationMethod":{ "type":"string", "enum":[ @@ -1194,5 +1300,5 @@ ] } }, - "documentation":"Welcome to the AWS Certificate Manager (ACM) API documentation.
You can use ACM to manage SSL/TLS certificates for your AWS-based websites and applications. For general information about using ACM, see the AWS Certificate Manager User Guide .
" + "documentation":"You can use AWS Certificate Manager (ACM) to manage SSL/TLS certificates for your AWS-based websites and applications. For more information about using ACM, see the AWS Certificate Manager User Guide.
" }