awsutils

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAnyError

func IsAnyError(err error, codes ...string) bool

Method returns true if the provided error is an AWS error with any of the given codes.

Types

type PolicyDocument added in v1.16.0

type PolicyDocument struct {
	Version   string
	Statement []StatementEntry
}

Helper struct for creating AWS policy documents and marshalling them into json.

type Principal added in v1.16.0

type Principal struct {
	Service string `json:",omitempty"`
	AWS     string `json:",omitempty"`
}

type StatementEntry added in v1.16.0

type StatementEntry struct {
	Sid       string
	Effect    string
	Action    string
	Resource  string    `json:",omitempty"`
	Principal Principal `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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