health-agent:GetAgent

Read

health-agent:GetAgent is a Read access-level action in the health-agent service. Grants permission to retrieve an agent configuration, defaulting to the most recent version if not specified

Resource types

ARNs that health-agent:GetAgent can be scoped to in an IAM policy.

arn:${Partition}:health-agent:${Region}:${Account}:domain/${DomainId}/agent/${AgentId}
Agent
arn:${Partition}:health-agent:${Region}:${Account}:domain/${DomainId}
Domain

Condition keys

Keys you can use in the Condition block of a policy that grants health-agent:GetAgent.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

A minimal policy that allows health-agent:GetAgent. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowHealthagentGetAgent",
      "Effect": "Allow",
      "Action": "health-agent:GetAgent",
      "Resource": "*"
    }
  ]
}

Related actions in health-agent

View all health-agent actions →