{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AmazonRDSDescribeDBInstances",
      "Effect": "Allow",
      "Action": "rds:DescribeDBInstances",
      "Resource": "arn:aws:rds:*:*:db:*"
    },
    {
      "Sid": "AmazonRDSDescribeDBClusters",
      "Effect": "Allow",
      "Action": "rds:DescribeDBClusters",
      "Resource": "arn:aws:rds:*:*:cluster:*"
    },
    {
      "Sid": "AmazonRDSDescribeDBShardGroups",
      "Effect": "Allow",
      "Action": "rds:DescribeDBShardGroups",
      "Resource": "arn:aws:rds:*:*:shard-group:*"
    },
    {
      "Sid": "AmazonRDSListTagsForResource",
      "Effect": "Allow",
      "Action": "rds:ListTagsForResource",
      "Resource": [
        "arn:aws:rds:*:*:db:*",
        "arn:aws:rds:*:*:shard-group:*",
        "arn:aws:rds:*:*:cluster:*"
      ]
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsDescribeDimensionKeys",
      "Effect": "Allow",
      "Action": "pi:DescribeDimensionKeys",
      "Resource": "arn:aws:pi:*:*:metrics/rds/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsGetDimensionKeyDetails",
      "Effect": "Allow",
      "Action": "pi:GetDimensionKeyDetails",
      "Resource": "arn:aws:pi:*:*:metrics/rds/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsGetResourceMetadata",
      "Effect": "Allow",
      "Action": "pi:GetResourceMetadata",
      "Resource": "arn:aws:pi:*:*:metrics/rds/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsGetResourceMetrics",
      "Effect": "Allow",
      "Action": "pi:GetResourceMetrics",
      "Resource": "arn:aws:pi:*:*:metrics/rds/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsListAvailableResourceDimensions",
      "Effect": "Allow",
      "Action": "pi:ListAvailableResourceDimensions",
      "Resource": "arn:aws:pi:*:*:metrics/rds/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsListAvailableResourceMetrics",
      "Effect": "Allow",
      "Action": "pi:ListAvailableResourceMetrics",
      "Resource": "arn:aws:pi:*:*:metrics/rds/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsGetPerformanceAnalysisReport",
      "Effect": "Allow",
      "Action": "pi:GetPerformanceAnalysisReport",
      "Resource": "arn:aws:pi:*:*:perf-reports/rds/*/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsListPerformanceAnalysisReportRecommendations",
      "Effect": "Allow",
      "Action": "pi:ListPerformanceAnalysisReportRecommendations",
      "Resource": "arn:aws:pi:*:*:perf-reports/rds/*/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsListPerformanceAnalysisReports",
      "Effect": "Allow",
      "Action": "pi:ListPerformanceAnalysisReports",
      "Resource": "arn:aws:pi:*:*:perf-reports/rds/*/*"
    },
    {
      "Sid": "AmazonRDSPerformanceInsightsListTagsForResource",
      "Effect": "Allow",
      "Action": "pi:ListTagsForResource",
      "Resource": "arn:aws:pi:*:*:*/rds/*"
    }
  ]
}
