Documentation ¶
Index ¶
- func Alarms(svc cloudwatchiface.CloudWatchAPI) ([]*cloudwatch.MetricAlarm, error)
- func Buckets(svc s3iface.S3API) ([]*s3.Bucket, error)
- func ConfigRules(svc configserviceiface.ConfigServiceAPI) ([]*configservice.ConfigRule, error)
- func LoadBalancers(svc elbv2iface.ELBV2API) ([]*elbv2.LoadBalancer, error)
- func Parameters(svc ssmiface.SSMAPI) ([]*ssm.ParameterMetadata, error)
- func Stacks(svc cloudformationiface.CloudFormationAPI) ([]*cloudformation.Stack, error)
- func Subscriptions(svc snsiface.SNSAPI) ([]*sns.Subscription, error)
- type Ec2Svc
- func (svc *Ec2Svc) Addresses() ([]*ec2.Address, error)
- func (svc *Ec2Svc) Images() ([]*ec2.Image, error)
- func (svc *Ec2Svc) Instances() ([]*ec2.Instance, error)
- func (svc *Ec2Svc) KeyPairs() ([]*ec2.KeyPairInfo, error)
- func (svc *Ec2Svc) SecurityGroups() ([]*ec2.SecurityGroup, error)
- func (svc *Ec2Svc) Snapshots() ([]*ec2.Snapshot, error)
- func (svc *Ec2Svc) Subnets() ([]*ec2.Subnet, error)
- func (svc *Ec2Svc) Volumes() ([]*ec2.Volume, error)
- func (svc *Ec2Svc) Vpcs() ([]*ec2.Vpc, error)
- type GlacierSvc
- type IamSvc
- type KmsKey
- type RDSSvc
- type SecretsManagerSvc
- type SnsTopic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alarms ¶
func Alarms(svc cloudwatchiface.CloudWatchAPI) ([]*cloudwatch.MetricAlarm, error)
Alarms ... pages through DescribeAlarmsPages and returns all CloudWatch Metric Alarms
func ConfigRules ¶
func ConfigRules(svc configserviceiface.ConfigServiceAPI) ([]*configservice.ConfigRule, error)
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 ¶
func Stacks(svc cloudformationiface.CloudFormationAPI) ([]*cloudformation.Stack, error)
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
Ec2Svc ... uses an SDK service iface to access SDK service client
func (*Ec2Svc) Addresses ¶ added in v0.1.2
Addresses ... performs DescribeAddresses and returns all EC2 Addresses
func (*Ec2Svc) Images ¶ added in v0.1.2
Images ... performs DescribeImages and returns all EC2 images
func (*Ec2Svc) Instances ¶ added in v0.1.2
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
Snapshots ... pages through DescribeSnapshotsPages and returns all EBS snapshots
func (*Ec2Svc) Subnets ¶ added in v0.1.2
Subnets ... pages through DescribeSubnetsPages and returns all VPC Subnets
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
IamSvc ... uses an SDK service iface to access SDK service client
func (*IamSvc) Groups ¶ added in v0.1.2
Groups ... pages through ListGroupsPages and returns all IAM groups
func (*IamSvc) Policies ¶ added in v0.1.2
Policies ... pages through ListPoliciesPages and returns all IAM policies
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
type RDSSvc ¶ added in v0.1.2
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
func (svc SecretsManagerSvc) Secrets() ([]*secretsmanager.SecretListEntry, error)
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