You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
941 B
43 lines
941 B
package schemas
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
|
|
)
|
|
|
|
func MakeSchemaDataSourceAccountAuditsList() map[string]schema.Attribute {
|
|
return map[string]schema.Attribute{
|
|
// required attributes
|
|
"account_id": schema.Int64Attribute{
|
|
Required: true,
|
|
Description: "account id",
|
|
},
|
|
|
|
// computed attributes
|
|
"id": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"items": schema.ListNestedAttribute{
|
|
Computed: true,
|
|
NestedObject: schema.NestedAttributeObject{
|
|
Attributes: map[string]schema.Attribute{
|
|
"call": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"responsetime": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"statuscode": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"timestamp": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"user": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|