diff --git a/.changelog/2175.txt b/.changelog/2175.txt index c56045b585..abd8c1da72 100644 --- a/.changelog/2175.txt +++ b/.changelog/2175.txt @@ -1,23 +1,23 @@ ```release-note:new-resource -tencentcloud_ssl_replace_certificate +tencentcloud_ssl_replace_certificate_operation ``` ```release-note:new-resource -tencentcloud_ssl_revoke_certificate +tencentcloud_ssl_revoke_certificate_operation ``` ```release-note:new-resource -tencentcloud_ssl_update_certificate_instance +tencentcloud_ssl_update_certificate_instance_operation ``` ```release-note:new-resource -tencentcloud_ssl_update_certificate_record_retry +tencentcloud_ssl_update_certificate_record_retry_operation ``` ```release-note:new-resource -tencentcloud_ssl_update_certificate_record_rollback +tencentcloud_ssl_update_certificate_record_rollback_operation ``` ```release-note:new-resource -tencentcloud_ssl_upload_revoke_letter +tencentcloud_ssl_upload_revoke_letter_operation ``` \ No newline at end of file diff --git a/tencentcloud/resource_tc_ssl_replace_certificate_operation.go b/tencentcloud/resource_tc_ssl_replace_certificate_operation.go index 094b9f58a3..76ecaa19a4 100644 --- a/tencentcloud/resource_tc_ssl_replace_certificate_operation.go +++ b/tencentcloud/resource_tc_ssl_replace_certificate_operation.go @@ -4,7 +4,7 @@ Provides a resource to create a ssl replace_certificate Example Usage ```hcl -resource "tencentcloud_ssl_replace_certificate" "replace_certificate" { +resource "tencentcloud_ssl_replace_certificate_operation" "replace_certificate" { certificate_id = "8L6JsWq2" valid_type = "DNS_AUTO" csr_type = "online" @@ -16,7 +16,7 @@ Import ssl replace_certificate can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_replace_certificate.replace_certificate replace_certificate_id +terraform import tencentcloud_ssl_replace_certificate_operation.replace_certificate replace_certificate_id ``` */ package tencentcloud @@ -99,7 +99,7 @@ func resourceTencentCloudSslReplaceCertificateOperation() *schema.Resource { } func resourceTencentCloudSslReplaceCertificateCreate(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_replace_certificate.create")() + defer logElapsed("resource.tencentcloud_ssl_replace_certificate_operation.create")() defer inconsistentCheck(d, meta)() logId := getLogId(contextNil) @@ -165,14 +165,14 @@ func resourceTencentCloudSslReplaceCertificateCreate(d *schema.ResourceData, met } func resourceTencentCloudSslReplaceCertificateRead(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_replace_certificate.read")() + defer logElapsed("resource.tencentcloud_ssl_replace_certificate_operation.read")() defer inconsistentCheck(d, meta)() return nil } func resourceTencentCloudSslReplaceCertificateDelete(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_replace_certificate.delete")() + defer logElapsed("resource.tencentcloud_ssl_replace_certificate_operation.delete")() defer inconsistentCheck(d, meta)() return nil diff --git a/tencentcloud/resource_tc_ssl_replace_certificate_operation_test.go b/tencentcloud/resource_tc_ssl_replace_certificate_operation_test.go index 4bb7a0c442..8cf01a43dc 100644 --- a/tencentcloud/resource_tc_ssl_replace_certificate_operation_test.go +++ b/tencentcloud/resource_tc_ssl_replace_certificate_operation_test.go @@ -16,10 +16,10 @@ func TestAccTencentCloudSslReplaceCertificateResource_basic(t *testing.T) { Steps: []resource.TestStep{ { Config: testAccSslReplaceCertificate, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_replace_certificate.replace_certificate", "id"), - resource.TestCheckResourceAttr("tencentcloud_ssl_replace_certificate.replace_certificate", "certificate_id", "8hUkH3xC"), - resource.TestCheckResourceAttr("tencentcloud_ssl_replace_certificate.replace_certificate", "valid_type", "DNS_AUTO"), - resource.TestCheckResourceAttr("tencentcloud_ssl_replace_certificate.replace_certificate", "csr_type", "online"), + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_replace_certificate_operation.replace_certificate", "id"), + resource.TestCheckResourceAttr("tencentcloud_ssl_replace_certificate_operation.replace_certificate", "certificate_id", "8hUkH3xC"), + resource.TestCheckResourceAttr("tencentcloud_ssl_replace_certificate_operation.replace_certificate", "valid_type", "DNS_AUTO"), + resource.TestCheckResourceAttr("tencentcloud_ssl_replace_certificate_operation.replace_certificate", "csr_type", "online"), ), }, }, @@ -28,7 +28,7 @@ func TestAccTencentCloudSslReplaceCertificateResource_basic(t *testing.T) { const testAccSslReplaceCertificate = ` -resource "tencentcloud_ssl_replace_certificate" "replace_certificate" { +resource "tencentcloud_ssl_replace_certificate_operation" "replace_certificate" { certificate_id = "8hUkH3xC" valid_type = "DNS_AUTO" csr_type = "online" diff --git a/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go b/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go index 13ffb1933d..5bbba02318 100644 --- a/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go +++ b/tencentcloud/resource_tc_ssl_revoke_certificate_operation.go @@ -4,7 +4,7 @@ Provides a resource to create a ssl revoke_certificate Example Usage ```hcl -resource "tencentcloud_ssl_revoke_certificate" "revoke_certificate" { +resource "tencentcloud_ssl_revoke_certificate_operation" "revoke_certificate" { certificate_id = "7zUGkVab" } ``` @@ -14,7 +14,7 @@ Import ssl revoke_certificate can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_revoke_certificate.revoke_certificate revoke_certificate_id +terraform import tencentcloud_ssl_revoke_certificate_operation.revoke_certificate revoke_certificate_id ``` */ package tencentcloud @@ -56,7 +56,7 @@ func resourceTencentCloudSslRevokeCertificateOperation() *schema.Resource { } func resourceTencentCloudSslRevokeCertificateCreate(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_revoke_certificate.create")() + defer logElapsed("resource.tencentcloud_ssl_revoke_certificate_operation.create")() defer inconsistentCheck(d, meta)() logId := getLogId(contextNil) @@ -99,14 +99,14 @@ func resourceTencentCloudSslRevokeCertificateCreate(d *schema.ResourceData, meta } func resourceTencentCloudSslRevokeCertificateRead(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_revoke_certificate.read")() + defer logElapsed("resource.tencentcloud_ssl_revoke_certificate_operation.read")() defer inconsistentCheck(d, meta)() return nil } func resourceTencentCloudSslRevokeCertificateDelete(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_revoke_certificate.delete")() + defer logElapsed("resource.tencentcloud_ssl_revoke_certificate_operation.delete")() defer inconsistentCheck(d, meta)() return nil diff --git a/tencentcloud/resource_tc_ssl_revoke_certificate_operation_test.go b/tencentcloud/resource_tc_ssl_revoke_certificate_operation_test.go index 688a0e77b6..02b2da03f0 100644 --- a/tencentcloud/resource_tc_ssl_revoke_certificate_operation_test.go +++ b/tencentcloud/resource_tc_ssl_revoke_certificate_operation_test.go @@ -16,8 +16,8 @@ func TestAccTencentCloudSslRevokeCertificateResource_basic(t *testing.T) { Steps: []resource.TestStep{ { Config: testAccSslRevokeCertificate, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_revoke_certificate.revoke_certificate", "id"), - resource.TestCheckResourceAttr("tencentcloud_ssl_revoke_certificate.revoke_certificate", "certificate_id", "8hUkH3xC"), + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_revoke_certificate_operation.revoke_certificate", "id"), + resource.TestCheckResourceAttr("tencentcloud_ssl_revoke_certificate_operation.revoke_certificate", "certificate_id", "8hUkH3xC"), ), }, }, @@ -26,7 +26,7 @@ func TestAccTencentCloudSslRevokeCertificateResource_basic(t *testing.T) { const testAccSslRevokeCertificate = ` -resource "tencentcloud_ssl_revoke_certificate" "revoke_certificate" { +resource "tencentcloud_ssl_revoke_certificate_operation" "revoke_certificate" { certificate_id = "8hUkH3xC" } diff --git a/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go b/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go index c7c684592d..f90ab25c43 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_instance_operation.go @@ -4,7 +4,7 @@ Provides a resource to create a ssl update_certificate_instance Example Usage ```hcl -resource "tencentcloud_ssl_update_certificate_instance" "update_certificate_instance" { +resource "tencentcloud_ssl_update_certificate_instance_operation" "update_certificate_instance" { certificate_id = "8x1eUSSl" old_certificate_id = "8xNdi2ig" resource_types = ["cdn"] @@ -16,7 +16,7 @@ Import ssl update_certificate_instance can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_update_certificate_instance.update_certificate_instance update_certificate_instance_id +terraform import tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance update_certificate_instance_id ``` */ package tencentcloud @@ -92,7 +92,7 @@ func resourceTencentCloudSslUpdateCertificateInstanceOperation() *schema.Resourc } func resourceTencentCloudSslUpdateCertificateInstanceCreate(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_instance.create")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_instance_operation.create")() defer inconsistentCheck(d, meta)() logId := getLogId(contextNil) @@ -167,14 +167,14 @@ func resourceTencentCloudSslUpdateCertificateInstanceCreate(d *schema.ResourceDa } func resourceTencentCloudSslUpdateCertificateInstanceRead(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_instance.read")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_instance_operation.read")() defer inconsistentCheck(d, meta)() return nil } func resourceTencentCloudSslUpdateCertificateInstanceDelete(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_instance.delete")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_instance_operation.delete")() defer inconsistentCheck(d, meta)() return nil diff --git a/tencentcloud/resource_tc_ssl_update_certificate_instance_operation_test.go b/tencentcloud/resource_tc_ssl_update_certificate_instance_operation_test.go index de1b3dccee..72dd499e06 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_instance_operation_test.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_instance_operation_test.go @@ -16,10 +16,10 @@ func TestAccTencentCloudSslUpdateCertificateInstanceResource_basic(t *testing.T) Steps: []resource.TestStep{ { Config: testAccSslUpdateCertificateInstance, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_update_certificate_instance.update_certificate_instance", "id"), - resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_instance.update_certificate_instance", "certificate_id", "7REHyHM1"), - resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_instance.update_certificate_instance", "old_certificate_id", "9D3qRt7r"), - resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_instance.update_certificate_instance", "resource_types.0", "cdn"), + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance", "id"), + resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance", "certificate_id", "7REHyHM1"), + resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance", "old_certificate_id", "9D3qRt7r"), + resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance", "resource_types.0", "cdn"), ), }, }, @@ -28,7 +28,7 @@ func TestAccTencentCloudSslUpdateCertificateInstanceResource_basic(t *testing.T) const testAccSslUpdateCertificateInstance = ` -resource "tencentcloud_ssl_update_certificate_instance" "update_certificate_instance" { +resource "tencentcloud_ssl_update_certificate_instance_operation" "update_certificate_instance" { certificate_id = "7REHyHM1" old_certificate_id = "9D3qRt7r" resource_types = ["cdn"] diff --git a/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go b/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go index e5c4246c6f..54dbc7e165 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation.go @@ -4,7 +4,7 @@ Provides a resource to create a ssl update_certificate_record_retry Example Usage ```hcl -resource "tencentcloud_ssl_update_certificate_record_retry" "update_certificate_record_retry" { +resource "tencentcloud_ssl_update_certificate_record_retry_operation" "update_certificate_record_retry" { deploy_record_id = "1603" } ``` @@ -14,7 +14,7 @@ Import ssl update_certificate_record_retry can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_update_certificate_record_retry.update_certificate_record_retry update_certificate_record_retry_id +terraform import tencentcloud_ssl_update_certificate_record_retry_operation.update_certificate_record_retry update_certificate_record_retry_id ``` */ package tencentcloud @@ -55,7 +55,7 @@ func resourceTencentCloudSslUpdateCertificateRecordRetryOperation() *schema.Reso } func resourceTencentCloudSslUpdateCertificateRecordRetryCreate(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_retry.create")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_retry_operation.create")() defer inconsistentCheck(d, meta)() logId := getLogId(contextNil) @@ -93,14 +93,14 @@ func resourceTencentCloudSslUpdateCertificateRecordRetryCreate(d *schema.Resourc } func resourceTencentCloudSslUpdateCertificateRecordRetryRead(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_retry.read")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_retry_operation.read")() defer inconsistentCheck(d, meta)() return nil } func resourceTencentCloudSslUpdateCertificateRecordRetryDelete(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_retry.delete")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_retry_operation.delete")() defer inconsistentCheck(d, meta)() return nil diff --git a/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation_test.go b/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation_test.go index dada88b14a..385b4b0c54 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation_test.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_record_retry_operation_test.go @@ -16,12 +16,12 @@ func TestAccTencentCloudSslUpdateCertificateRecordRetryResource_basic(t *testing Steps: []resource.TestStep{ { Config: testAccSslUpdateCertificateRecordRetry, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_update_certificate_record_retry.update_certificate_record_retry", "id"), - resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_record_retry.update_certificate_record_retry", "deploy_record_id", "1689"), + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_update_certificate_record_retry_operation.update_certificate_record_retry", "id"), + resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_record_retry_operation.update_certificate_record_retry", "deploy_record_id", "1689"), ), }, { - ResourceName: "tencentcloud_ssl_update_certificate_record_retry.update_certificate_record_retry", + ResourceName: "tencentcloud_ssl_update_certificate_record_retry_operation.update_certificate_record_retry", ImportState: true, ImportStateVerify: true, }, @@ -31,7 +31,7 @@ func TestAccTencentCloudSslUpdateCertificateRecordRetryResource_basic(t *testing const testAccSslUpdateCertificateRecordRetry = ` -resource "tencentcloud_ssl_update_certificate_record_retry" "update_certificate_record_retry" { +resource "tencentcloud_ssl_update_certificate_record_retry_operation" "update_certificate_record_retry" { deploy_record_id = "1689" } diff --git a/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go b/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go index db6013abcd..6a6f64bf15 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation.go @@ -4,7 +4,7 @@ Provides a resource to create a ssl update_certificate_record_rollback Example Usage ```hcl -resource "tencentcloud_ssl_update_certificate_record_rollback" "update_certificate_record_rollback" { +resource "tencentcloud_ssl_update_certificate_record_rollback_operation" "update_certificate_record_rollback" { deploy_record_id = "1603" } ``` @@ -14,7 +14,7 @@ Import ssl update_certificate_record_rollback can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_update_certificate_record_rollback.update_certificate_record_rollback update_certificate_record_rollback_id +terraform import tencentcloud_ssl_update_certificate_record_rollback_operation.update_certificate_record_rollback update_certificate_record_rollback_id ``` */ package tencentcloud @@ -48,7 +48,7 @@ func resourceTencentCloudSslUpdateCertificateRecordRollbackOperation() *schema.R } func resourceTencentCloudSslUpdateCertificateRecordRollbackCreate(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_rollback.create")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_rollback_operation.create")() defer inconsistentCheck(d, meta)() logId := getLogId(contextNil) @@ -85,14 +85,14 @@ func resourceTencentCloudSslUpdateCertificateRecordRollbackCreate(d *schema.Reso } func resourceTencentCloudSslUpdateCertificateRecordRollbackRead(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_rollback.read")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_rollback_operation.read")() defer inconsistentCheck(d, meta)() return nil } func resourceTencentCloudSslUpdateCertificateRecordRollbackDelete(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_rollback.delete")() + defer logElapsed("resource.tencentcloud_ssl_update_certificate_record_rollback_operation.delete")() defer inconsistentCheck(d, meta)() return nil diff --git a/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation_test.go b/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation_test.go index 6be541a9d4..538edb4193 100644 --- a/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation_test.go +++ b/tencentcloud/resource_tc_ssl_update_certificate_record_rollback_operation_test.go @@ -16,8 +16,8 @@ func TestAccTencentCloudSslUpdateCertificateRecordRollbackResource_basic(t *test Steps: []resource.TestStep{ { Config: testAccSslUpdateCertificateRecordRollback, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_update_certificate_record_rollback.update_certificate_record_rollback", "id"), - resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_record_rollback.update_certificate_record_rollback", "deploy_record_id", "1689"), + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_update_certificate_record_rollback_operation.update_certificate_record_rollback", "id"), + resource.TestCheckResourceAttr("tencentcloud_ssl_update_certificate_record_rollback_operation.update_certificate_record_rollback", "deploy_record_id", "1693"), ), }, }, @@ -26,8 +26,8 @@ func TestAccTencentCloudSslUpdateCertificateRecordRollbackResource_basic(t *test const testAccSslUpdateCertificateRecordRollback = ` -resource "tencentcloud_ssl_update_certificate_record_rollback" "update_certificate_record_rollback" { - deploy_record_id = "1689" +resource "tencentcloud_ssl_update_certificate_record_rollback_operation" "update_certificate_record_rollback" { + deploy_record_id = "1693" } ` diff --git a/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go b/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go index f92b5ba5d3..b6801381cf 100644 --- a/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go +++ b/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation.go @@ -4,7 +4,7 @@ Provides a resource to create a ssl upload_revoke_letter Example Usage ```hcl -resource "tencentcloud_ssl_upload_revoke_letter" "upload_revoke_letter" { +resource "tencentcloud_ssl_upload_revoke_letter_operation" "upload_revoke_letter" { certificate_id = "8xRYdDlc" revoke_letter = filebase64("./c.pdf") } @@ -15,7 +15,7 @@ Import ssl upload_revoke_letter can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_upload_revoke_letter.upload_revoke_letter upload_revoke_letter_id +terraform import tencentcloud_ssl_upload_revoke_letter_operation.upload_revoke_letter upload_revoke_letter_id ``` */ package tencentcloud @@ -56,7 +56,7 @@ func resourceTencentCloudSslUploadRevokeLetterOperation() *schema.Resource { } func resourceTencentCloudSslUploadRevokeLetterCreate(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_upload_revoke_letter.create")() + defer logElapsed("resource.tencentcloud_ssl_upload_revoke_letter_operation.create")() defer inconsistentCheck(d, meta)() logId := getLogId(contextNil) @@ -97,14 +97,14 @@ func resourceTencentCloudSslUploadRevokeLetterCreate(d *schema.ResourceData, met } func resourceTencentCloudSslUploadRevokeLetterRead(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_upload_revoke_letter.read")() + defer logElapsed("resource.tencentcloud_ssl_upload_revoke_letter_operation.read")() defer inconsistentCheck(d, meta)() return nil } func resourceTencentCloudSslUploadRevokeLetterDelete(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_upload_revoke_letter.delete")() + defer logElapsed("resource.tencentcloud_ssl_upload_revoke_letter_operation.delete")() defer inconsistentCheck(d, meta)() return nil diff --git a/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation_test.go b/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation_test.go index c085e41c0f..f87aa09326 100644 --- a/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation_test.go +++ b/tencentcloud/resource_tc_ssl_upload_revoke_letter_operation_test.go @@ -16,23 +16,18 @@ func TestAccTencentCloudSslUploadRevokeLetterResource_basic(t *testing.T) { Steps: []resource.TestStep{ { Config: testAccSslUploadRevokeLetter, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_upload_revoke_letter.upload_revoke_letter", "id"), - resource.TestCheckResourceAttr("tencentcloud_ssl_upload_revoke_letter.upload_revoke_letter", "certificate_id", "8xRYdDlc"), - resource.TestCheckResourceAttrSet("tencentcloud_ssl_upload_revoke_letter.upload_revoke_letter", "revoke_letter"), + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_upload_revoke_letter_operation.upload_revoke_letter", "id"), + resource.TestCheckResourceAttr("tencentcloud_ssl_upload_revoke_letter_operation.upload_revoke_letter", "certificate_id", "8xRYdDlc"), + resource.TestCheckResourceAttrSet("tencentcloud_ssl_upload_revoke_letter_operation.upload_revoke_letter", "revoke_letter"), ), }, - { - ResourceName: "tencentcloud_ssl_upload_revoke_letter.upload_revoke_letter", - ImportState: true, - ImportStateVerify: true, - }, }, }) } const testAccSslUploadRevokeLetter = ` -resource "tencentcloud_ssl_upload_revoke_letter" "upload_revoke_letter" { +resource "tencentcloud_ssl_upload_revoke_letter_operation" "upload_revoke_letter" { certificate_id = "8xRYdDlc" revoke_letter = filebase64("./c.pdf") } diff --git a/website/docs/r/ssl_replace_certificate_operation.html.markdown b/website/docs/r/ssl_replace_certificate_operation.html.markdown index 71fee6d9a6..aa7e54010c 100644 --- a/website/docs/r/ssl_replace_certificate_operation.html.markdown +++ b/website/docs/r/ssl_replace_certificate_operation.html.markdown @@ -14,7 +14,7 @@ Provides a resource to create a ssl replace_certificate ## Example Usage ```hcl -resource "tencentcloud_ssl_replace_certificate" "replace_certificate" { +resource "tencentcloud_ssl_replace_certificate_operation" "replace_certificate" { certificate_id = "8L6JsWq2" valid_type = "DNS_AUTO" csr_type = "online" @@ -47,6 +47,6 @@ In addition to all arguments above, the following attributes are exported: ssl replace_certificate can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_replace_certificate.replace_certificate replace_certificate_id +terraform import tencentcloud_ssl_replace_certificate_operation.replace_certificate replace_certificate_id ``` diff --git a/website/docs/r/ssl_revoke_certificate_operation.html.markdown b/website/docs/r/ssl_revoke_certificate_operation.html.markdown index 57891725e1..7cd9dfb246 100644 --- a/website/docs/r/ssl_revoke_certificate_operation.html.markdown +++ b/website/docs/r/ssl_revoke_certificate_operation.html.markdown @@ -14,7 +14,7 @@ Provides a resource to create a ssl revoke_certificate ## Example Usage ```hcl -resource "tencentcloud_ssl_revoke_certificate" "revoke_certificate" { +resource "tencentcloud_ssl_revoke_certificate_operation" "revoke_certificate" { certificate_id = "7zUGkVab" } ``` @@ -39,6 +39,6 @@ In addition to all arguments above, the following attributes are exported: ssl revoke_certificate can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_revoke_certificate.revoke_certificate revoke_certificate_id +terraform import tencentcloud_ssl_revoke_certificate_operation.revoke_certificate revoke_certificate_id ``` diff --git a/website/docs/r/ssl_update_certificate_instance_operation.html.markdown b/website/docs/r/ssl_update_certificate_instance_operation.html.markdown index d18b313457..fe8639cc5c 100644 --- a/website/docs/r/ssl_update_certificate_instance_operation.html.markdown +++ b/website/docs/r/ssl_update_certificate_instance_operation.html.markdown @@ -14,7 +14,7 @@ Provides a resource to create a ssl update_certificate_instance ## Example Usage ```hcl -resource "tencentcloud_ssl_update_certificate_instance" "update_certificate_instance" { +resource "tencentcloud_ssl_update_certificate_instance_operation" "update_certificate_instance" { certificate_id = "8x1eUSSl" old_certificate_id = "8xNdi2ig" resource_types = ["cdn"] @@ -48,6 +48,6 @@ In addition to all arguments above, the following attributes are exported: ssl update_certificate_instance can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_update_certificate_instance.update_certificate_instance update_certificate_instance_id +terraform import tencentcloud_ssl_update_certificate_instance_operation.update_certificate_instance update_certificate_instance_id ``` diff --git a/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown b/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown index 53fafeceed..6b766b1d20 100644 --- a/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown +++ b/website/docs/r/ssl_update_certificate_record_retry_operation.html.markdown @@ -14,7 +14,7 @@ Provides a resource to create a ssl update_certificate_record_retry ## Example Usage ```hcl -resource "tencentcloud_ssl_update_certificate_record_retry" "update_certificate_record_retry" { +resource "tencentcloud_ssl_update_certificate_record_retry_operation" "update_certificate_record_retry" { deploy_record_id = "1603" } ``` @@ -39,6 +39,6 @@ In addition to all arguments above, the following attributes are exported: ssl update_certificate_record_retry can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_update_certificate_record_retry.update_certificate_record_retry update_certificate_record_retry_id +terraform import tencentcloud_ssl_update_certificate_record_retry_operation.update_certificate_record_retry update_certificate_record_retry_id ``` diff --git a/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown b/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown index 43e376ba11..9f1eed568b 100644 --- a/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown +++ b/website/docs/r/ssl_update_certificate_record_rollback_operation.html.markdown @@ -14,7 +14,7 @@ Provides a resource to create a ssl update_certificate_record_rollback ## Example Usage ```hcl -resource "tencentcloud_ssl_update_certificate_record_rollback" "update_certificate_record_rollback" { +resource "tencentcloud_ssl_update_certificate_record_rollback_operation" "update_certificate_record_rollback" { deploy_record_id = "1603" } ``` @@ -38,6 +38,6 @@ In addition to all arguments above, the following attributes are exported: ssl update_certificate_record_rollback can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_update_certificate_record_rollback.update_certificate_record_rollback update_certificate_record_rollback_id +terraform import tencentcloud_ssl_update_certificate_record_rollback_operation.update_certificate_record_rollback update_certificate_record_rollback_id ``` diff --git a/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown b/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown index 0176507524..4d7cd29b8c 100644 --- a/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown +++ b/website/docs/r/ssl_upload_revoke_letter_operation.html.markdown @@ -14,7 +14,7 @@ Provides a resource to create a ssl upload_revoke_letter ## Example Usage ```hcl -resource "tencentcloud_ssl_upload_revoke_letter" "upload_revoke_letter" { +resource "tencentcloud_ssl_upload_revoke_letter_operation" "upload_revoke_letter" { certificate_id = "8xRYdDlc" revoke_letter = filebase64("./c.pdf") } @@ -40,6 +40,6 @@ In addition to all arguments above, the following attributes are exported: ssl upload_revoke_letter can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_upload_revoke_letter.upload_revoke_letter upload_revoke_letter_id +terraform import tencentcloud_ssl_upload_revoke_letter_operation.upload_revoke_letter upload_revoke_letter_id ```