helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: CC0-1.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addresses

func Addresses(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.Address, error)

Addresses ... performs DescribeAddresses and returns all EC2 Addresses

func Alarms

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

func Buckets

func Buckets(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*s3.Bucket, error)

Buckets ... performs ListBuckets and returns all S3 buckets

func ConfigRules

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

func DBInstances

func DBInstances(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*rds.DBInstance, error)

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

func DBSnapshots

func DBSnapshots(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*rds.DBSnapshot, error)

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

func Groups

func Groups(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*iam.Group, error)

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

func Images

func Images(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.Image, error)

Images ... performs DescribeImages and returns all EC2 images

func Instances

func Instances(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.Instance, error)

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

func KeyPairs

KeyPairs ... performs DescribeKeyPairs and returns all EC2 KeyPairs

func LoadBalancers

func LoadBalancers(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*elbv2.LoadBalancer, error)

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

func Parameters

Parameters ... pages through DescribeParametersPages to get SSM Parameters

func Policies

func Policies(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*iam.Policy, error)

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

func Roles

func Roles(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*iam.Role, error)

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

func Secrets

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

func SecurityGroups

func SecurityGroups(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.SecurityGroup, error)

SecurityGroups ... pages through DescribeSecurityGroupsPages and returns all SecurityGroups

func Snapshots

func Snapshots(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.Snapshot, error)

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

func Stacks

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

func Subnets

func Subnets(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.Subnet, error)

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

func Subscriptions

func Subscriptions(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*sns.Subscription, error)

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

func Users

func Users(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*iam.User, error)

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

func Vaults

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

func Volumes

func Volumes(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.Volume, error)

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

func Vpcs

func Vpcs(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*ec2.Vpc, error)

Vpcs ... pages through DescribeVpcsPages and returns all VPCs

Types

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

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

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(cfg client.ConfigProvider, cred *credentials.Credentials) ([]*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