withTrait
Method
interface ContainerResource { // ... omitted for brevity withTrait( name: string, value: string): IResource;}Signature
method
withTrait builderAdds immutable, non-sensitive metadata to a resource. Repeated names add multiple values.
withTrait( name: string, value: string): IResourceParameters
namestringThe case-sensitive trait name.valuestringThe trait value. Do not include secrets.Returns
IResource Applies to
This method applies to the following types: