tolunas3aws

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

This package should include functions for verifying S3 AWS service resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func S3GetBucketACLs

func S3GetBucketACLs(t *testing.T, region string, bucket string) *s3.GetBucketAclOutput

Checks a s3 bucket has ACL defined and returns it's output

func S3GetPublicAccessBlock

func S3GetPublicAccessBlock(t *testing.T, region string, bucket string) *s3.GetPublicAccessBlockOutput

Checks a s3 bucket has Public Access Block and returns it's output

Types

type S3BucketPolicy

type S3BucketPolicy struct {
	Effect    string `json:"Effect"`
	Principal string `json:"Principal"`
	Resource  string `json:"Resource"`
	Action    string `json:"Action"`
}

func S3GetBucketPolicy

func S3GetBucketPolicy(t *testing.T, region string, bucket string) S3BucketPolicy

Checks a s3 bucket has a Policy and returns it's output as json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL