backend/s3: set required or optional for single nested attribute

pull/33901/head
Jared Baker 3 years ago
parent 30e24ed6a9
commit 0bb8e4ca4e
No known key found for this signature in database

@ -1647,6 +1647,7 @@ var _ schemaAttribute = singleNestedAttribute{}
type singleNestedAttribute struct {
Attributes objectSchema
Required bool
validateObject
}
@ -1656,6 +1657,8 @@ func (a singleNestedAttribute) SchemaAttribute() *configschema.Attribute {
Nesting: configschema.NestingSingle,
Attributes: a.Attributes.SchemaAttributes(),
},
Required: a.Required,
Optional: !a.Required,
}
}

Loading…
Cancel
Save