tag#

RDS Tag operations

async idem_aws.exec.aws.rds.tag.update_rds_tags(hub, ctx, resource_arn, old_tags: Dict[str, Any], new_tags: Dict[str, Any])[source]#

Update tags of AWS RDS resources

Parameters:
  • resource_arn (str) – AWS resource arn

  • old_tags (dict) – Dict in the format of {tag-key: tag-value}

  • new_tags (dict) – Dict in the format of {tag-key: tag-value}

Returns:

True|False, “comment”: “A message”, “ret”: dict of updated tags}

Return type:

{“result”

Examples

Calling this exec module function from the cli

idem exec aws.rds.tag.update_rds_tags resource_arn="some_arn" old_tags='{"old_tag": "old_val"}' new_tags='{"new_tag": "new_val"}'

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.rds.tag.update_rds_tags
    - kwargs:
        resource_arn: some_arn
        old_tags:
          old_tag: old_val
        new_tags:
          new_tag: new_val