Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
borremosch-db committed Jan 16, 2025
1 parent 9085086 commit 01e79da
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions aws/data_aws_unity_catalog_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,37 +61,37 @@ func generateReadContext(ctx context.Context, d *schema.ResourceData, m *common.
})
}
policy.Statements = append(policy.Statements, &awsIamPolicyStatement{
Sid: "ManagedFileEventsSetupStatement",
Effect: "Allow",
Actions: []string{
"s3:GetBucketNotification",
"s3:PutBucketNotification",
"sns:ListSubscriptionsByTopic",
"sns:GetTopicAttributes",
"sns:SetTopicAttributes",
"sns:CreateTopic",
"sns:TagResource",
"sns:Publish",
"sns:Subscribe",
"sqs:CreateQueue",
"sqs:DeleteMessage",
"sqs:ReceiveMessage",
"sqs:SendMessage",
"sqs:GetQueueUrl",
"sqs:GetQueueAttributes",
"sqs:SetQueueAttributes",
"sqs:TagQueue",
"sqs:ChangeMessageVisibility",
"sqs:PurgeQueue",
},
Resources: []string{
fmt.Sprintf("arn:%s:s3:::%s", awsPartition, bucket),
"arn:aws:sqs:*:*:*",
"arn:aws:sns:*:*:*",
},
Sid: "ManagedFileEventsSetupStatement",
Effect: "Allow",
Actions: []string{
"s3:GetBucketNotification",
"s3:PutBucketNotification",
"sns:ListSubscriptionsByTopic",
"sns:GetTopicAttributes",
"sns:SetTopicAttributes",
"sns:CreateTopic",
"sns:TagResource",
"sns:Publish",
"sns:Subscribe",
"sqs:CreateQueue",
"sqs:DeleteMessage",
"sqs:ReceiveMessage",
"sqs:SendMessage",
"sqs:GetQueueUrl",
"sqs:GetQueueAttributes",
"sqs:SetQueueAttributes",
"sqs:TagQueue",
"sqs:ChangeMessageVisibility",
"sqs:PurgeQueue",
},
Resources: []string{
fmt.Sprintf("arn:%s:s3:::%s", awsPartition, bucket),
"arn:aws:sqs:*:*:*",
"arn:aws:sns:*:*:*",
},
},
&awsIamPolicyStatement{
Sid: "ManagedFileEventsListStatement",
Sid: "ManagedFileEventsListStatement",
Effect: "Allow",
Actions: []string{
"sqs:ListQueues",
Expand All @@ -101,7 +101,7 @@ func generateReadContext(ctx context.Context, d *schema.ResourceData, m *common.
Resources: "*",
},
&awsIamPolicyStatement{
Sid: "ManagedFileEventsTeardownStatement",
Sid: "ManagedFileEventsTeardownStatement",
Effect: "Allow",
Actions: []string{
"sns:Unsubscribe",
Expand Down

0 comments on commit 01e79da

Please sign in to comment.