Skip to content

Commit 2aedc60

Browse files
committed
updates
1 parent d085a92 commit 2aedc60

8 files changed

Lines changed: 12 additions & 8 deletions

docs/data-sources/trusted_certificate_authority.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ data "fmc_trusted_certificate_authority" "example" {
2929

3030
### Read-Only
3131

32-
- `certificate` (String) PEM, DER, or PKCS#7 formatted certificate contents.
32+
- `certificate` (String) Certificate in PEM, DER, or PKCS#7 format.
3333
- `type` (String) Type of the object; this value is always 'ExternalCACertificate'.

docs/resources/trusted_certificate_authority.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "fmc_trusted_certificate_authority" "example" {
2828

2929
### Optional
3030

31-
- `certificate` (String) PEM, DER, or PKCS#7 formatted certificate contents.
31+
- `certificate` (String) Certificate in PEM, DER, or PKCS#7 format.
3232
- `domain` (String) Name of the FMC domain
3333

3434
### Read-Only

gen/definitions/external_certificate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ attributes:
2121
type: String
2222
description: Certificate in PEM, DER, or PKCS#7 format.
2323
example: "-----BEGIN CERTIFICATE-----\\nMII(...)\\n-----END CERTIFICATE-----"
24-
requires_replace: true
24+
requires_replace: true

gen/definitions/internal_certificate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ attributes:
3434
exclude_example: true
3535
requires_replace: true
3636
sensitive: true
37-
write_only: true
37+
write_only: true

gen/definitions/internal_certificate_authority.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ attributes:
3434
exclude_example: true
3535
requires_replace: true
3636
sensitive: true
37-
write_only: true
37+
write_only: true

gen/definitions/trusted_certificate_authority.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ attributes:
1111
description: Name of the Trusted Certificate Authority (CA) object.
1212
example: my_trusted_ca
1313
data_source_query: true
14+
requires_replace: true
1415
- model_name: type
1516
type: String
1617
description: Type of the object; this value is always 'ExternalCACertificate'.
1718
computed: true
1819
- model_name: cert
1920
tf_name: certificate
2021
type: String
21-
description: PEM, DER, or PKCS#7 formatted certificate contents.
22+
description: Certificate in PEM, DER, or PKCS#7 format.
2223
example: "-----BEGIN CERTIFICATE-----\\nMII(...)\\n-----END CERTIFICATE-----"
2324
requires_replace: true

internal/provider/data_source_fmc_trusted_certificate_authority.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (d *TrustedCertificateAuthorityDataSource) Schema(ctx context.Context, req
8181
Computed: true,
8282
},
8383
"certificate": schema.StringAttribute{
84-
MarkdownDescription: "PEM, DER, or PKCS#7 formatted certificate contents.",
84+
MarkdownDescription: "Certificate in PEM, DER, or PKCS#7 format.",
8585
Computed: true,
8686
},
8787
},

internal/provider/resource_fmc_trusted_certificate_authority.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ func (r *TrustedCertificateAuthorityResource) Schema(ctx context.Context, req re
8080
"name": schema.StringAttribute{
8181
MarkdownDescription: helpers.NewAttributeDescription("Name of the Trusted Certificate Authority (CA) object.").String,
8282
Required: true,
83+
PlanModifiers: []planmodifier.String{
84+
stringplanmodifier.RequiresReplace(),
85+
},
8386
},
8487
"type": schema.StringAttribute{
8588
MarkdownDescription: helpers.NewAttributeDescription("Type of the object; this value is always 'ExternalCACertificate'.").String,
@@ -89,7 +92,7 @@ func (r *TrustedCertificateAuthorityResource) Schema(ctx context.Context, req re
8992
},
9093
},
9194
"certificate": schema.StringAttribute{
92-
MarkdownDescription: helpers.NewAttributeDescription("PEM, DER, or PKCS#7 formatted certificate contents.").String,
95+
MarkdownDescription: helpers.NewAttributeDescription("Certificate in PEM, DER, or PKCS#7 format.").String,
9396
Optional: true,
9497
PlanModifiers: []planmodifier.String{
9598
stringplanmodifier.RequiresReplace(),

0 commit comments

Comments
 (0)