Struct aws_sdk_transcribe::model::Tag
source · [−]#[non_exhaustive]pub struct Tag { /* private fields */ }Expand description
Adds metadata, in the form of a key:value pair, to the specified resource.
For example, you could add the tag Department:Sales to a resource to indicate that it pertains to your organization's sales department. You can also use tags for tag-based access control.
To learn more about tagging, see Tagging resources.
Implementations
sourceimpl Tag
impl Tag
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag Department:Sales, the key is 'Department'.
sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag Department:Sales, the value is 'Sales'.
Note that you can set the value of a tag to an empty string, but you can't set the value of a tag to null. Omitting the tag value is the same as using an empty string.