Attribute Fields
A subset of attribute fields, such as required, optional, computed, or sensitive, define attribute behavior as boolean flags. Refer to Schemas - Attributes in the Framework documentation for details.
This page explains how to migrate the required, optional, computed, and sensitive attribute fields from SDKv2 to the Framework.
SDKv2
In SDKv2, Required
, Optional
, Computed
, and Sensitive
are boolean fields on the attribute's schema.
Framework
In the Framework, you set the same fields on the schema.Attribute
implementation, with the same behavior.
Example
SDKv2
The following example shows how the example_attribute
attribute on the exampleDataSource
data source is set to
be required with SDKv2.
Framework
The following example shows how the example_attribute
attribute on the exampleDataSource
data source is set
to be required with the Framework.