aws

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package aws provides the implementation of the Import from AWS with all the Resources supported and the cache for them

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context, accessKey, secretKey, region string) (provider.Provider, error)

NewProvider returns an AWS Provider

func ResourceTypeStrings

func ResourceTypeStrings() []string

ResourceTypeStrings returns a slice of all String values of the enum

Types

type ResourceType

type ResourceType int

ResourceType is the type used to define all the Resources from the Provider

const (
	// NoID it's a helper to make the code more readable
	NoID = ""

	// List of all the Resources
	Instance ResourceType = iota
	VPC
	VPCPeeringConnection
	KeyPair
	// Do not have them for now as it's not needed
	// but works
	//AMI
	SecurityGroup
	Subnet
	EBSVolume
	// Do not have them for now as it's not needed
	// but works
	//EBSSnapshot
	ElasticacheCluster
	ELB
	ALB
	ALBListener
	ALBListenerRule
	ALBListenerCertificate
	ALBTargetGroup
	DBInstance
	DBParameterGroup
	DBSubnetGroup
	S3Bucket
	//S3BucketObject
	CloudfrontDistribution
	CloudfrontOriginAccessIdentity
	CloudfrontPublicKey
	CloudwatchMetricAlarm
	IAMAccessKey
	IAMAccountAlias
	IAMAccountPasswordPolicy
	IAMGroup
	IAMGroupMembership
	IAMGroupPolicy
	IAMGroupPolicyAttachment
	IAMInstanceProfile
	IAMOpenidConnectProvider
	IAMPolicy
	// As it's deprecated we'll not support it
	//IAMPolicyAttachment
	IAMRole
	IAMRolePolicy
	IAMRolePolicyAttachment
	IAMSAMLProvider // iam_saml_provider
	IAMServerCertificate
	// TODO: Don't know how to get it from AWS SKD
	// IAMServiceLinkedRole
	IAMUser
	IAMUserGroupMembership
	IAMUserPolicy
	IAMUserPolicyAttachment
	IAMUserSSHKey
	Route53DelegationSet
	Route53HealthCheck
	Route53QueryLog
	Route53Record
	Route53Zone
	Route53ZoneAssociation
	Route53ResolverEndpoint
	Route53ResolverRuleAssociation
	SESActiveReceiptRuleSet
	SESDomainIdentity
	SESDomainIdentityVerification
	SESDomainDKIM
	SESDomainMailFrom
	SESReceiptFilter
	SESReceiptRule
	SESReceiptRuleSet
	SESConfigurationSet
	// Read on TF is nil so ...
	// SESEventDestination
	SESIdentityNotificationTopic
	SESTemplate
	LaunchConfiguration
	LaunchTemplate
	AutoscalingGroup
	AutoscalingPolicy
)

func ResourceTypeString

func ResourceTypeString(s string) (ResourceType, error)

ResourceTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ResourceTypeValues

func ResourceTypeValues() []ResourceType

ResourceTypeValues returns all values of the enum

func (ResourceType) IsAResourceType

func (i ResourceType) IsAResourceType() bool

IsAResourceType returns "true" if the value is listed in the enum definition. "false" otherwise

func (ResourceType) String

func (i ResourceType) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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