helpers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: CC0-1.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alarms

Alarms ... pages through DescribeAlarmsPages and returns all CloudWatch Metric Alarms

func Buckets

func Buckets(svc s3iface.S3API) ([]*s3.Bucket, error)

Buckets ... performs ListBuckets and returns all S3 buckets

func ConfigRules

ConfigRules ... performs DescribeConfigRules and returns all Config Service ConfigRules

func LoadBalancers

func LoadBalancers(svc elbv2iface.ELBV2API) ([]*elbv2.LoadBalancer, error)

LoadBalancers ... pages through DescribeLoadBalancersPages and returns all ELB v2 LoadBalancers

func Parameters

func Parameters(svc ssmiface.SSMAPI) ([]*ssm.ParameterMetadata, error)

Parameters ... pages through DescribeParametersPages to get SSM Parameters

func Stacks

Stacks ... pages through DescribeStacksPages and returns all CloudFormation Stacks

func Subscriptions

func Subscriptions(svc snsiface.SNSAPI) ([]*sns.Subscription, error)

Subscriptions ... pages through ListSubscriptionsPages to get list of Subscriptions

Types

type Ec2Svc added in v0.1.2

type Ec2Svc struct {
	Client ec2iface.EC2API
}

Ec2Svc ... uses an SDK service iface to access SDK service client

func (*Ec2Svc) Addresses added in v0.1.2

func (svc *Ec2Svc) Addresses() ([]*ec2.Address, error)

Addresses ... performs DescribeAddresses and returns all EC2 Addresses

func (*Ec2Svc) Images added in v0.1.2

func (svc *Ec2Svc) Images() ([]*ec2.Image, error)

Images ... performs DescribeImages and returns all EC2 images

func (*Ec2Svc) Instances added in v0.1.2

func (svc *Ec2Svc) Instances() ([]*ec2.Instance, error)

Instances ... pages through DescribeInstancesPages and returns all EC2 instances

func (*Ec2Svc) KeyPairs added in v0.1.2

func (svc *Ec2Svc) KeyPairs() ([]*ec2.KeyPairInfo, error)

KeyPairs ... performs DescribeKeyPairs and returns all EC2 KeyPairs

func (*Ec2Svc) SecurityGroups added in v0.1.2

func (svc *Ec2Svc) SecurityGroups() ([]*ec2.SecurityGroup, error)

SecurityGroups ... pages through DescribeSecurityGroupsPages and returns all SecurityGroups

func (*Ec2Svc) Snapshots added in v0.1.2

func (svc *Ec2Svc) Snapshots() ([]*ec2.Snapshot, error)

Snapshots ... pages through DescribeSnapshotsPages and returns all EBS snapshots

func (*Ec2Svc) Subnets added in v0.1.2

func (svc *Ec2Svc) Subnets() ([]*ec2.Subnet, error)

Subnets ... pages through DescribeSubnetsPages and returns all VPC Subnets

func (*Ec2Svc) Volumes added in v0.1.2

func (svc *Ec2Svc) Volumes() ([]*ec2.Volume, error)

Volumes ... pages through DescribeVolumesPages and returns all EBS volumes

func (*Ec2Svc) Vpcs added in v0.1.2

func (svc *Ec2Svc) Vpcs() ([]*ec2.Vpc, error)

Vpcs ... pages through DescribeVpcsPages and returns all VPCs

type GlacierSvc added in v0.1.2

type GlacierSvc struct {
	Client glacieriface.GlacierAPI
}

GlacierSvc is used to call glacier functions

func (*GlacierSvc) Vaults added in v0.1.2

func (svc *GlacierSvc) Vaults() ([]*glacier.DescribeVaultOutput, error)

Vaults ... pages through ListVaultsPages and returns all Glacier Vaults

type IamSvc added in v0.1.2

type IamSvc struct {
	Client iamiface.IAMAPI
}

IamSvc ... uses an SDK service iface to access SDK service client

func (*IamSvc) Groups added in v0.1.2

func (svc *IamSvc) Groups() ([]*iam.Group, error)

Groups ... pages through ListGroupsPages and returns all IAM groups

func (*IamSvc) Policies added in v0.1.2

func (svc *IamSvc) Policies() ([]*iam.Policy, error)

Policies ... pages through ListPoliciesPages and returns all IAM policies

func (*IamSvc) Roles added in v0.1.2

func (svc *IamSvc) Roles() ([]*iam.Role, error)

Roles ... pages through ListRolesPages and returns all IAM roles

func (*IamSvc) Users added in v0.1.2

func (svc *IamSvc) Users() ([]*iam.User, error)

Users ... pages through ListUsersPages and returns all IAM users

type KmsKey

type KmsKey struct {

	// The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management
	// Service (AWS KMS) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms)
	// in the Example ARNs section of the AWS General Reference.
	Arn *string `min:"20" type:"string"`

	// The cluster ID of the AWS CloudHSM cluster that contains the key material
	// for the CMK. When you create a CMK in a custom key store (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html),
	// AWS KMS creates the key material for the CMK in the associated AWS CloudHSM
	// cluster. This value is present only when the CMK is created in a custom key
	// store.
	CloudHsmClusterID *string `min:"19" type:"string"`

	// The date and time when the CMK was created.
	CreationDate *time.Time `type:"timestamp"`

	// A unique identifier for the custom key store (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html)
	// that contains the CMK. This value is present only when the CMK is created
	// in a custom key store.
	CustomKeyStoreID *string `min:"1" type:"string"`

	// The date and time after which AWS KMS deletes the CMK. This value is present
	// only when KeyState is PendingDeletion.
	DeletionDate *time.Time `type:"timestamp"`

	// The description of the CMK.
	Description *string `type:"string"`

	// Specifies whether the CMK is enabled. When KeyState is Enabled this value
	// is true, otherwise it is false.
	Enabled *bool `type:"boolean"`

	// Specifies whether the CMK's key material expires. This value is present only
	// when Origin is EXTERNAL, otherwise this value is omitted.
	ExpirationModel *string `type:"string" enum:"ExpirationModelType"`

	// The globally unique identifier for the CMK.
	//
	// KeyId is a required field
	KeyID *string `min:"1" type:"string" required:"true"`

	// The manager of the CMK. CMKs in your AWS account are either customer managed
	// or AWS managed. For more information about the difference, see Customer Master
	// Keys (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys)
	// in the AWS Key Management Service Developer Guide.
	KeyManager *string `type:"string" enum:"KeyManagerType"`

	// The state of the CMK.
	//
	// For more information about how key state affects the use of a CMK, see How
	// Key State Affects the Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html)
	// in the AWS Key Management Service Developer Guide.
	KeyState *string `type:"string" enum:"KeyState"`

	// The cryptographic operations for which you can use the CMK. The only valid
	// value is ENCRYPT_DECRYPT, which means you can use the CMK to encrypt and
	// decrypt data.
	KeyUsage *string `type:"string" enum:"KeyUsageType"`

	// The source of the CMK's key material. When this value is AWS_KMS, AWS KMS
	// created the key material. When this value is EXTERNAL, the key material was
	// imported from your existing key management infrastructure or the CMK lacks
	// key material. When this value is AWS_CLOUDHSM, the key material was created
	// in the AWS CloudHSM cluster associated with a custom key store.
	Origin *string `type:"string" enum:"OriginType"`

	// The time at which the imported key material expires. When the key material
	// expires, AWS KMS deletes the key material and the CMK becomes unusable. This
	// value is present only for CMKs whose Origin is EXTERNAL and whose ExpirationModel
	// is KEY_MATERIAL_EXPIRES, otherwise this value is omitted.
	ValidTo *time.Time `type:"timestamp"`
	// String that contains the alias. This value begins with alias/.
	AliasName *string `min:"1" type:"string"`
}

KmsKey ... extends kms.KeyMetadata to add AliasName

func Keys

func Keys(svc kmsiface.KMSAPI) ([]*KmsKey, error)

Keys ... pages over ListKeys results and returns all KMS Keys w/ AliasName

type RDSSvc added in v0.1.2

type RDSSvc struct {
	Client rdsiface.RDSAPI
}

RDSSvc ... rds service interface

func NewRDSSvc added in v0.1.2

func NewRDSSvc(cfg client.ConfigProvider, cred *credentials.Credentials) (*RDSSvc, error)

NewRDSSvc ...

func (RDSSvc) DBInstances added in v0.1.2

func (svc RDSSvc) DBInstances() ([]*rds.DBInstance, error)

DBInstances ... pages through DescribeDBInstancesPages to get list of DBInstances

func (RDSSvc) DBSnapshots added in v0.1.2

func (svc RDSSvc) DBSnapshots() ([]*rds.DBSnapshot, error)

DBSnapshots ... pages through DescribeDBSnapshotsPages to get list of DBSnapshots

type SecretsManagerSvc added in v0.1.2

type SecretsManagerSvc struct {
	Client secretsmanageriface.SecretsManagerAPI
}

SecretsManagerSvc ...

func NewSecretsManagerSvc added in v0.1.2

func NewSecretsManagerSvc(cfg client.ConfigProvider, cred *credentials.Credentials) (*SecretsManagerSvc, error)

NewSecretsManagerSvc ...

func (SecretsManagerSvc) Secrets added in v0.1.2

Secrets ... pages through ListSecretsPages to get list of Secrets

type SnsTopic

type SnsTopic struct {
	DisplayName             *string
	TopicArn                *string
	Owner                   *string
	SubscriptionsPending    *string
	SubscriptionsConfirmed  *string
	SubscriptionsDeleted    *string
	DeliveryPolicy          *string
	EffectiveDeliveryPolicy *string
}

SnsTopic ... struct definition for Attributes map in GetTopicAttributesOutput

func Topics

func Topics(svc snsiface.SNSAPI) ([]*SnsTopic, error)

Topics ... pages over ListTopics results and returns all Topics parameters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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