vault: Index | Files

package aws

import ""


Package Files

backend.go client.go iam_policies.go path_config_lease.go path_config_root.go path_config_rotate_root.go path_roles.go path_user.go rollback.go secret_access_keys.go

func Backend Uses

func Backend() *backend

func Factory Uses

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

type PolicyDocument Uses

type PolicyDocument struct {
    Version    string           `json:"Version"`
    Statements StatementEntries `json:"Statement"`

PolicyDocument represents an IAM policy document

type StatementEntries Uses

type StatementEntries []interface{}

StatementEntries is a slice of statements that make up a PolicyDocument

func (*StatementEntries) UnmarshalJSON Uses

func (se *StatementEntries) UnmarshalJSON(b []byte) error

UnmarshalJSON is defined here for StatementEntries because the Statement portion of an IAM Policy can either be a list or a single element, so if it's a single element this wraps it in a []interface{} so that it's easy to combine with other policy statements:

Package aws imports 30 packages (graph) and is imported by 39 packages. Updated 2020-09-28. Refresh now. Tools for package owners.