Resource.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().
Defined on
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
Applies to
This function applies to the following types: