mattclay.aws.dictfilter (4.0.1) — filter

filter a dictionary to return only the specified keys

Authors: unknown

Install collection

Install with ansible-galaxy collection install mattclay.aws:==4.0.1


Add to requirements.yml

  collections:
    - name: mattclay.aws
      version: 4.0.1

Description

The input dictionary will be returned with only the specified keys present.

Inputs

    
keys:
    description: The list of dictionary keys to preserve.
    elements: str
    required: true
    type: list

_input:
    description: A dictionary to filter.
    required: true
    type: dict

Outputs

_value:
  description: The dictionary with only the specified keys present.
  type: dict