Struct aws_sdk_databasemigration::model::Tag
source · #[non_exhaustive]pub struct Tag { /* private fields */ }
Expand description
A user-defined key-value pair that describes metadata added to an DMS resource and that is used by operations such as the following:
-
AddTagsToResource
-
ListTagsForResource
-
RemoveTagsFromResource
Implementations§
source§impl Tag
impl Tag
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
A key is the required name of the tag. The string value can be 1-128 Unicode characters in length and can't be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regular expressions: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
A value is the optional value of the tag. The string value can be 1-256 Unicode characters in length and can't be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regular expressions: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) string that uniquely identifies the resource for which the tag is created.