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, sessionToken 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 ALB ALBListener ALBListenerCertificate ALBListenerRule ALBTargetGroup ALBTargetGroupAttachment APIGatewayDeployment APIGatewayResource APIGatewayRestAPI APIGatewayStage //AthenaDatabase // conflict with GlueDatabase //AthenaTable // conflict with GlueTable AthenaWorkgroup AutoscalingGroup AutoscalingPolicy AutoscalingSchedule BatchJobDefinition CloudfrontDistribution CloudfrontOriginAccessIdentity CloudfrontPublicKey CloudwatchMetricAlarm DaxCluster DBInstance DBParameterGroup DBSubnetGroup DirectoryServiceDirectory DmsReplicationInstance DXGateway DynamodbGlobalTable DynamodbTable EBSVolume ECSCluster ECSService ECSTaskDefinition EC2TransitGateway EC2TransitGatewayVPCAttachment EC2TransitGatewayRouteTable EC2TransitGatewayMulticastDomain EC2TransitGatewayPeeringAttachment EC2TransitGatewayPeeringAttachmentAccepter EC2TransitGatewayPrefixListReference EC2TransitGatewayRoute EC2TransitGatewayRouteTableAssociation EC2TransitGatewayRouteTablePropagation EC2TransitGatewayVPCAttachmentAccepter EFSFileSystem EIP EKSCluster ElasticacheCluster ElasticacheReplicationGroup ElasticBeanstalkApplication ElasticsearchDomain ElasticsearchDomainPolicy ELB EMRCluster FsxLustreFileSystem GlueCatalogDatabase GlueCatalogTable 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 InternetGateway KeyPair KinesisStream LambdaFunction LaunchConfiguration LaunchTemplate LB LBCookieStickinessPolicy LBListener LBListenerCertificate LBListenerRule LBTargetGroup LBTargetGroupAttachment LightsailInstance MediaStoreContainer MQBroker NatGateway NeptuneCluster RDSCluster RDSGlobalCluster RedshiftCluster Route53DelegationSet Route53HealthCheck Route53QueryLog Route53Record Route53ResolverEndpoint Route53ResolverRuleAssociation Route53Zone Route53ZoneAssociation RouteTable S3Bucket //S3BucketObject SecurityGroup SESActiveReceiptRuleSet SESConfigurationSet SESDomainDKIM SESDomainIdentity SESDomainMailFrom // Read on TF is nil so ... // SESEventDestination SESIdentityNotificationTopic SESReceiptFilter SESReceiptRule SESReceiptRuleSet SESTemplate SQSQueue StoragegatewayGateway Subnet VolumeAttachment VPC VPCEndpoint VPCPeeringConnection VPNGateway )
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.