Skip to content

Commit 1a0338a

Browse files
committed
docs: add description in schema
1 parent 99d514f commit 1a0338a

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

internal/services/mnq/sns_credentials.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ func ResourceSNSCredentials() *schema.Resource {
3131
Description: "The credentials name",
3232
},
3333
"permissions": {
34-
Type: schema.TypeList,
35-
MaxItems: 1,
36-
Optional: true,
37-
Computed: true,
34+
Type: schema.TypeList,
35+
Description: "The permissions attached to the credentials",
36+
MaxItems: 1,
37+
Optional: true,
38+
Computed: true,
3839
Elem: &schema.Resource{
3940
Schema: map[string]*schema.Schema{
4041
"can_publish": {

internal/services/mnq/sns_topic_subscription.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ func ResourceSNSTopicSubscription() *schema.Resource {
4747
},
4848
"topic_arn": {
4949
Type: schema.TypeString,
50+
Description: "ARN of the topic",
5051
Optional: true,
5152
AtLeastOneOf: []string{"topic_id"},
5253
ForceNew: true,
5354
},
5455
"topic_id": {
5556
Type: schema.TypeString,
57+
Description: "ID of the topic",
5658
Optional: true,
5759
AtLeastOneOf: []string{"topic_arn"},
5860
ForceNew: true,

internal/services/mnq/sqs_credentials.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ func ResourceSQSCredentials() *schema.Resource {
3131
Description: "The credentials name",
3232
},
3333
"permissions": {
34-
Type: schema.TypeList,
35-
MaxItems: 1,
36-
Optional: true,
37-
Computed: true,
34+
Type: schema.TypeList,
35+
Description: "The permissions attached to the credentials",
36+
MaxItems: 1,
37+
Optional: true,
38+
Computed: true,
3839
Elem: &schema.Resource{
3940
Schema: map[string]*schema.Schema{
4041
"can_publish": {

0 commit comments

Comments
 (0)