aws

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CreateAllOpts captures the options that affect creation/updating
	// of the generated objects.
	CreateAllOpts = options{
		TargetDir: "",
	}
)
View Source
var (
	// CreateIAMRolesOpts captures the options that affect creation/updating
	// of the IAM Roles.
	CreateIAMRolesOpts = options{
		TargetDir:         "",
		EnableTechPreview: false,
	}
)
View Source
var (
	// CreateIdentityProviderOpts captures the options that affect creation of the identity provider
	CreateIdentityProviderOpts = options{
		Name:          "",
		Region:        "",
		PublicKeyPath: "",
		TargetDir:     "",
	}
)
View Source
var (
	// DeleteOpts captures the options that affect deletion
	// of the generated objects.
	DeleteOpts = options{}
)

Functions

func NewAWSCmd

func NewAWSCmd() *cobra.Command

NewAWSCmd implements the "aws" subcommand for the credentials provisioning

func NewCreateAllCmd

func NewCreateAllCmd() *cobra.Command

NewCreateAllCmd provides the "create-all" subcommand

func NewCreateIAMRolesCmd

func NewCreateIAMRolesCmd() *cobra.Command

NewCreateIAMRolesCmd provides the "create-iam-roles" subcommand

func NewCreateIdentityProviderCmd

func NewCreateIdentityProviderCmd() *cobra.Command

NewCreateIdentityProviderCmd provides the "create-identity-provider" subcommand

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

NewDeleteCmd implements the "delete" command for the credentials provisioning

Types

type JSONWebKeySet

type JSONWebKeySet struct {
	Keys []jose.JSONWebKey `json:"keys"`
}

type PolicyDocument

type PolicyDocument struct {
	Version   string
	Statement []StatementEntry
}

PolicyDocument is a simple type used to serialize to AWS' PolicyDocument format.

type StatementEntry

type StatementEntry struct {
	Effect   string
	Action   []string
	Resource string
	// Must "omitempty" otherwise we send unacceptable JSON to the AWS API when no
	// condition is defined.
	Condition credreqv1.IAMPolicyCondition `json:",omitempty"`
}

StatementEntry is a simple type used to serialize to AWS' PolicyDocument format.

Jump to

Keyboard shortcuts

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