WithTrait
Method
func (Resource) WithTrait( name string, value string,) ResourceSignature
method
WithTrait builderAdds immutable, non-sensitive metadata to a resource. Repeated names add multiple values.
WithTrait( name string, value string,) ResourceParameters
namestringThe case-sensitive trait name.valuestringThe trait value. Do not include secrets.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: