member#
Exec module for managing Guardduty members.
- async idem_aws.exec.aws.guardduty.member.get(hub, ctx, detector_id: str, account_id: str, resource_id: str = None, name: str = None) Dict[str, Any] [source]#
Get info about AWS Guardduty member based on resource_id which is the combination of detector_id:account_id.
- Parameters:
- Returns:
Returns guardduty member in present format
- Return type:
Dict[str, Any]
Examples
Calling this exec module function from the cli
idem exec aws.guardduty.member.get name="get member" detector_id="detector_id" account_id="account_id" resource_id="detector_id:account_id"
Using in a state:
my_unmanaged_resources: exec.run: - path: aws.guardduty.member.get - kwargs: name: "get Guardduty member" detector_id: "7ec2638373ab39e421bbc97333706434" account_id: "257230699585" resource_id: "7ec2638373ab39e421bbc97333706434:257230699585 "
- async idem_aws.exec.aws.guardduty.member.list_(hub, ctx, detector_id: str, name: str = None, only_associated: str = 'False') Dict[str, Any] [source]#
List AWS Guardduty members for a detector.
- Parameters:
- Returns:
Returns guardduty members in present format
- Return type:
Dict[str, Any]
Examples
Calling this exec module function from the cli
idem exec aws.guardduty.member.list name="list members" detector_id="detector_id" only_associated="False"
Using in a state:
my_unmanaged_resources: exec.run: - path: aws.guardduty.member.list - kwargs: name: my_resources detector_id: "a6c242807703f20b65afd91d54dc8fb2" only_associated: 'False'