aws

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 405 Imported by: 0

Documentation ¶

Overview ¶

Package aws implements a steampipe plugin for aws. This plugin provides data that Steampipe uses to present foreign tables that represent Amazon AWS resources.

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func ACMClient ¶ added in v0.72.0

func ACMClient(ctx context.Context, d *plugin.QueryData) (*acm.Client, error)

func ACMPCAClient ¶ added in v0.133.0

func ACMPCAClient(ctx context.Context, d *plugin.QueryData) (*acmpca.Client, error)

func APIGatewayClient ¶ added in v0.72.0

func APIGatewayClient(ctx context.Context, d *plugin.QueryData) (*apigateway.Client, error)

func APIGatewayV2Client ¶ added in v0.72.0

func APIGatewayV2Client(ctx context.Context, d *plugin.QueryData) (*apigatewayv2.Client, error)

func AccessAnalyzerClient ¶ added in v0.79.0

func AccessAnalyzerClient(ctx context.Context, d *plugin.QueryData) (*accessanalyzer.Client, error)

AccessAnalyzerClient returns the service connection for AWS IAM Access Analyzer service

func AccountClient ¶ added in v0.78.0

func AccountClient(ctx context.Context, d *plugin.QueryData) (*account.Client, error)

AccountClient is used to query general information about an AWS account.

func AllCostMetrics ¶ added in v0.19.0

func AllCostMetrics() []string

AllCostMetrics is a constant returning all the cost metrics

func AllRegionsMatrix ¶ added in v0.93.0

func AllRegionsMatrix(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

Return a matrix of all regions for tables that target every region. It's normally better to use SupportedRegionMatrix instead, as it will filter out regions that are not enabled for the specific service.

func AmplifyClient ¶ added in v0.80.0

func AmplifyClient(ctx context.Context, d *plugin.QueryData) (*amplify.Client, error)

func AppConfigClient ¶ added in v0.77.0

func AppConfigClient(ctx context.Context, d *plugin.QueryData) (*appconfig.Client, error)

func AppRunnerClient ¶ added in v0.146.0

func AppRunnerClient(ctx context.Context, d *plugin.QueryData) (*apprunner.Client, error)

func AppStreamClient ¶ added in v0.97.0

func AppStreamClient(ctx context.Context, d *plugin.QueryData) (*appstream.Client, error)

func AppSyncClient ¶ added in v0.127.0

func AppSyncClient(ctx context.Context, d *plugin.QueryData) (*appsync.Client, error)

func ApplicationAutoScalingClient ¶ added in v0.80.0

func ApplicationAutoScalingClient(ctx context.Context, d *plugin.QueryData) (*applicationautoscaling.Client, error)

func AthenaClient ¶ added in v0.99.0

func AthenaClient(ctx context.Context, d *plugin.QueryData) (*athena.Client, error)

func AuditManagerClient ¶ added in v0.79.0

func AuditManagerClient(ctx context.Context, d *plugin.QueryData) (*auditmanager.Client, error)

func AutoScalingClient ¶ added in v0.75.0

func AutoScalingClient(ctx context.Context, d *plugin.QueryData) (*autoscaling.Client, error)

func BackupClient ¶ added in v0.79.0

func BackupClient(ctx context.Context, d *plugin.QueryData) (*backup.Client, error)

func CloudControlClient ¶ added in v0.79.0

func CloudControlClient(ctx context.Context, d *plugin.QueryData) (*cloudcontrol.Client, error)

func CloudFormationClient ¶ added in v0.79.0

func CloudFormationClient(ctx context.Context, d *plugin.QueryData) (*cloudformation.Client, error)

func CloudFrontClient ¶ added in v0.79.0

func CloudFrontClient(ctx context.Context, d *plugin.QueryData) (*cloudfront.Client, error)

func CloudSearchClient ¶ added in v0.85.0

func CloudSearchClient(ctx context.Context, d *plugin.QueryData) (*cloudsearch.Client, error)

func CloudTrailClient ¶ added in v0.79.0

func CloudTrailClient(ctx context.Context, d *plugin.QueryData) (*cloudtrail.Client, error)

func CloudTrailRegionsClient ¶ added in v0.79.0

func CloudTrailRegionsClient(ctx context.Context, d *plugin.QueryData, region string) (*cloudtrail.Client, error)

func CloudWatchClient ¶ added in v0.80.0

func CloudWatchClient(ctx context.Context, d *plugin.QueryData) (*cloudwatch.Client, error)

func CloudWatchLogsClient ¶ added in v0.79.0

func CloudWatchLogsClient(ctx context.Context, d *plugin.QueryData) (*cloudwatchlogs.Client, error)

func CloudWatchRegionsMatrix ¶ added in v0.93.0

func CloudWatchRegionsMatrix(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

_metric_ tables must all be limited to the CloudWatch service regions. This is a convenience function for them to use.

func CodeArtifactClient ¶ added in v0.77.0

func CodeArtifactClient(ctx context.Context, d *plugin.QueryData) (*codeartifact.Client, error)

func CodeBuildClient ¶ added in v0.79.0

func CodeBuildClient(ctx context.Context, d *plugin.QueryData) (*codebuild.Client, error)

func CodeCommitClient ¶ added in v0.81.0

func CodeCommitClient(ctx context.Context, d *plugin.QueryData) (*codecommit.Client, error)

func CodeDeployClient ¶ added in v0.77.0

func CodeDeployClient(ctx context.Context, d *plugin.QueryData) (*codedeploy.Client, error)

func CodeDeployDeploymentGroupArn ¶ added in v0.97.0

func CodeDeployDeploymentGroupArn(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) string

func CodePipelineClient ¶ added in v0.79.0

func CodePipelineClient(ctx context.Context, d *plugin.QueryData) (*codepipeline.Client, error)

func CodeStarNotificationsClient ¶ added in v0.140.0

func CodeStarNotificationsClient(ctx context.Context, d *plugin.QueryData) (*codestarnotifications.Client, error)

func CognitoIdentityClient ¶ added in v0.117.0

func CognitoIdentityClient(ctx context.Context, d *plugin.QueryData) (*cognitoidentity.Client, error)

func CognitoIdentityProviderClient ¶ added in v0.116.0

func CognitoIdentityProviderClient(ctx context.Context, d *plugin.QueryData) (*cognitoidentityprovider.Client, error)

func ConfigClient ¶ added in v0.79.0

func ConfigClient(ctx context.Context, d *plugin.QueryData) (*configservice.Client, error)

func ConfigInstance ¶ added in v0.5.0

func ConfigInstance() interface{}

func CostExplorerClient ¶ added in v0.75.0

func CostExplorerClient(ctx context.Context, d *plugin.QueryData) (*costexplorer.Client, error)

func DAXClient ¶ added in v0.79.0

func DAXClient(ctx context.Context, d *plugin.QueryData) (*dax.Client, error)

func DLMClient ¶ added in v0.79.0

func DLMClient(ctx context.Context, d *plugin.QueryData) (*dlm.Client, error)

func DRSClient ¶ added in v0.88.0

func DRSClient(ctx context.Context, d *plugin.QueryData) (*drs.Client, error)

func DatabaseMigrationClient ¶ added in v0.79.0

func DatabaseMigrationClient(ctx context.Context, d *plugin.QueryData) (*databasemigrationservice.Client, error)

func DirectoryServiceClient ¶ added in v0.79.0

func DirectoryServiceClient(ctx context.Context, d *plugin.QueryData) (*directoryservice.Client, error)

func DocDBClient ¶ added in v0.76.0

func DocDBClient(ctx context.Context, d *plugin.QueryData) (*docdb.Client, error)

func DocDBClusterInstanceTagListToTurbotTags ¶ added in v0.105.0

func DocDBClusterInstanceTagListToTurbotTags(ctx context.Context, d *transform.TransformData) (interface{}, error)

func DynamoDBClient ¶ added in v0.79.0

func DynamoDBClient(ctx context.Context, d *plugin.QueryData) (*dynamodb.Client, error)

func EC2Client ¶ added in v0.75.0

func EC2Client(ctx context.Context, d *plugin.QueryData) (*ec2.Client, error)

func EC2ClientForRegion ¶ added in v0.93.0

func EC2ClientForRegion(ctx context.Context, d *plugin.QueryData, region string) (*ec2.Client, error)

Get an EC2 client for a specific region. Used by various hydrate functions pulling data from regions other than the query region.

func EC2LowRetryClientForRegion ¶ added in v0.93.0

func EC2LowRetryClientForRegion(ctx context.Context, d *plugin.QueryData, region string) (*ec2.Client, error)

Get an EC2 client with a small number of retries. Used in very specific situations like listing regions where fast failure is preferred over a long retry/backoff loop. Do not use for general tables.

func ECRClient ¶ added in v0.79.0

func ECRClient(ctx context.Context, d *plugin.QueryData) (*ecr.Client, error)

func ECRPublicClient ¶ added in v0.79.0

func ECRPublicClient(ctx context.Context, d *plugin.QueryData) (*ecrpublic.Client, error)

func ECSClient ¶ added in v0.79.0

func ECSClient(ctx context.Context, d *plugin.QueryData) (*ecs.Client, error)

func EFSClient ¶ added in v0.79.0

func EFSClient(ctx context.Context, d *plugin.QueryData) (*efs.Client, error)

func EKSClient ¶ added in v0.80.0

func EKSClient(ctx context.Context, d *plugin.QueryData) (*eks.Client, error)

func ELBClient ¶ added in v0.75.0

func ELBV2Client ¶ added in v0.75.0

func EMRClient ¶ added in v0.80.0

func EMRClient(ctx context.Context, d *plugin.QueryData) (*emr.Client, error)

func ElastiCacheClient ¶ added in v0.79.0

func ElastiCacheClient(ctx context.Context, d *plugin.QueryData) (*elasticache.Client, error)

func ElasticBeanstalkClient ¶ added in v0.79.0

func ElasticBeanstalkClient(ctx context.Context, d *plugin.QueryData) (*elasticbeanstalk.Client, error)

func ElasticsearchClient ¶ added in v0.80.0

func ElasticsearchClient(ctx context.Context, d *plugin.QueryData) (*elasticsearchservice.Client, error)

func EmrInstanceGroupTitle ¶ added in v0.29.0

func EmrInstanceGroupTitle(_ context.Context, d *transform.TransformData) (interface{}, error)

func EventBridgeClient ¶ added in v0.80.0

func EventBridgeClient(ctx context.Context, d *plugin.QueryData) (*eventbridge.Client, error)

func FMSClient ¶ added in v0.122.0

func FMSClient(ctx context.Context, d *plugin.QueryData) (*fms.Client, error)

func FSxClient ¶ added in v0.79.0

func FSxClient(ctx context.Context, d *plugin.QueryData) (*fsx.Client, error)

func FirehoseClient ¶ added in v0.80.0

func FirehoseClient(ctx context.Context, d *plugin.QueryData) (*firehose.Client, error)

func GetConfig ¶ added in v0.5.0

func GetConfig(connection *plugin.Connection) awsConfig

GetConfig :: retrieve and cast connection config from query data

func GetEnabledStandards ¶ added in v0.30.0

func GetEnabledStandards(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (interface{}, error)

func GlacierClient ¶ added in v0.80.0

func GlacierClient(ctx context.Context, d *plugin.QueryData) (*glacier.Client, error)

func GlobalAcceleratorClient ¶ added in v0.81.0

func GlobalAcceleratorClient(ctx context.Context, d *plugin.QueryData) (*globalaccelerator.Client, error)

func GlueClient ¶ added in v0.79.0

func GlueClient(ctx context.Context, d *plugin.QueryData) (*glue.Client, error)

func GuardDutyClient ¶ added in v0.80.0

func GuardDutyClient(ctx context.Context, d *plugin.QueryData) (*guardduty.Client, error)

func HealthClient ¶ added in v0.85.0

func HealthClient(ctx context.Context, d *plugin.QueryData) (*health.Client, error)

func IAMClient ¶ added in v0.72.0

func IAMClient(ctx context.Context, d *plugin.QueryData) (*iam.Client, error)

func IdentityStoreClient ¶ added in v0.80.0

func IdentityStoreClient(ctx context.Context, d *plugin.QueryData) (*identitystore.Client, error)

func Inspector2Client ¶ added in v0.104.0

func Inspector2Client(ctx context.Context, d *plugin.QueryData) (*inspector2.Client, error)

func InspectorClient ¶ added in v0.79.0

func InspectorClient(ctx context.Context, d *plugin.QueryData) (*inspector.Client, error)

func IoTClient ¶ added in v0.131.0

func IoTClient(ctx context.Context, d *plugin.QueryData) (*iot.Client, error)

func KMSClient ¶ added in v0.79.0

func KMSClient(ctx context.Context, d *plugin.QueryData) (*kms.Client, error)

func KafkaClient ¶ added in v0.78.0

func KafkaClient(ctx context.Context, d *plugin.QueryData) (*kafka.Client, error)

func KinesisAnalyticsV2Client ¶ added in v0.80.0

func KinesisAnalyticsV2Client(ctx context.Context, d *plugin.QueryData) (*kinesisanalyticsv2.Client, error)

func KinesisClient ¶ added in v0.80.0

func KinesisClient(ctx context.Context, d *plugin.QueryData) (*kinesis.Client, error)

func KinesisVideoClient ¶ added in v0.80.0

func KinesisVideoClient(ctx context.Context, d *plugin.QueryData) (*kinesisvideo.Client, error)

func LakeFormationClient ¶ added in v0.133.0

func LakeFormationClient(ctx context.Context, d *plugin.QueryData) (*lakeformation.Client, error)

func LambdaClient ¶ added in v0.79.0

func LambdaClient(ctx context.Context, d *plugin.QueryData) (*lambda.Client, error)

func LightsailClient ¶ added in v0.80.0

func LightsailClient(ctx context.Context, d *plugin.QueryData) (*lightsail.Client, error)

func ListAwsMGNApplications ¶ added in v0.89.0

func ListAwsMGNApplications(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (interface{}, error)

// LIST FUNCTION

func MGNClient ¶ added in v0.89.0

func MGNClient(ctx context.Context, d *plugin.QueryData) (*mgn.Client, error)

func MQClient ¶ added in v0.127.0

func MQClient(ctx context.Context, d *plugin.QueryData) (*mq.Client, error)

func Macie2Client ¶ added in v0.80.0

func Macie2Client(ctx context.Context, d *plugin.QueryData) (*macie2.Client, error)

func MediaStoreClient ¶ added in v0.80.0

func MediaStoreClient(ctx context.Context, d *plugin.QueryData) (*mediastore.Client, error)

func MemoryDBClient ¶ added in v0.146.0

func MemoryDBClient(ctx context.Context, d *plugin.QueryData) (*memorydb.Client, error)

func NeptuneClient ¶ added in v0.80.0

func NeptuneClient(ctx context.Context, d *plugin.QueryData) (*neptune.Client, error)

func NetworkFirewallClient ¶ added in v0.80.0

func NetworkFirewallClient(ctx context.Context, d *plugin.QueryData) (*networkfirewall.Client, error)

func NormalizeRegion ¶ added in v0.93.0

func NormalizeRegion(region string) string

func OAMClient ¶ added in v0.89.0

func OAMClient(ctx context.Context, d *plugin.QueryData) (*oam.Client, error)

func OpenSearchClient ¶ added in v0.80.0

func OpenSearchClient(ctx context.Context, d *plugin.QueryData) (*opensearch.Client, error)

func OrganizationClient ¶ added in v0.79.0

func OrganizationClient(ctx context.Context, d *plugin.QueryData) (*organizations.Client, error)

func PinpointClient ¶ added in v0.81.0

func PinpointClient(ctx context.Context, d *plugin.QueryData) (*pinpoint.Client, error)

func PipesClient ¶ added in v0.88.0

func PipesClient(ctx context.Context, d *plugin.QueryData) (*pipes.Client, error)

func Plugin ¶

func Plugin(ctx context.Context) *plugin.Plugin

Plugin creates this (aws) plugin

func PricingClient ¶ added in v0.83.0

func PricingClient(ctx context.Context, d *plugin.QueryData) (*pricing.Client, error)

func RAMClient ¶ added in v0.79.0

func RAMClient(ctx context.Context, d *plugin.QueryData) (*ram.Client, error)

func RDSClient ¶ added in v0.79.0

func RDSClient(ctx context.Context, d *plugin.QueryData) (*rds.Client, error)

func RDSDBProxyClient ¶ added in v0.86.0

func RDSDBProxyClient(ctx context.Context, d *plugin.QueryData) (*rds.Client, error)

func RDSDBRecommendationClient ¶ added in v0.143.0

func RDSDBRecommendationClient(ctx context.Context, d *plugin.QueryData) (*rds.Client, error)

func RedshiftClient ¶ added in v0.79.0

func RedshiftClient(ctx context.Context, d *plugin.QueryData) (*redshift.Client, error)

func RedshiftServerlessClient ¶ added in v0.77.0

func RedshiftServerlessClient(ctx context.Context, d *plugin.QueryData) (*redshiftserverless.Client, error)

func ResourceExplorerClient ¶ added in v0.83.0

func ResourceExplorerClient(ctx context.Context, d *plugin.QueryData, region string) (*resourceexplorer2.Client, error)

func ResourceGroupsTaggingClient ¶ added in v0.80.0

func ResourceGroupsTaggingClient(ctx context.Context, d *plugin.QueryData) (*resourcegroupstaggingapi.Client, error)

func Route53Client ¶ added in v0.79.0

func Route53Client(ctx context.Context, d *plugin.QueryData) (*route53.Client, error)

func Route53DomainsClient ¶ added in v0.79.0

func Route53DomainsClient(ctx context.Context, d *plugin.QueryData) (*route53domains.Client, error)

func Route53ResolverClient ¶ added in v0.80.0

func Route53ResolverClient(ctx context.Context, d *plugin.QueryData) (*route53resolver.Client, error)

func S3Client ¶ added in v0.72.0

func S3Client(ctx context.Context, d *plugin.QueryData, region string) (*s3.Client, error)

func S3ControlClient ¶ added in v0.75.0

func S3ControlClient(ctx context.Context, d *plugin.QueryData, region string) (*s3control.Client, error)

func S3ControlMultiRegionAccessClient ¶ added in v0.98.0

func S3ControlMultiRegionAccessClient(ctx context.Context, d *plugin.QueryData) (*s3control.Client, error)

All requests to create or maintain Multi-Region Access Points are routed to the US West (Oregon) Region. so we have no choice but to hard code it here. This is true regardless of which Region you are in when making the request, or what Regions the Multi-Region Access Point supports. https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html S3 multi-region access point supports in China but not in US Gov or US ISO

func SESClient ¶ added in v0.80.0

func SESClient(ctx context.Context, d *plugin.QueryData) (*ses.Client, error)

func SNSClient ¶ added in v0.72.0

func SNSClient(ctx context.Context, d *plugin.QueryData) (*sns.Client, error)

func SQSClient ¶ added in v0.79.0

func SQSClient(ctx context.Context, d *plugin.QueryData) (*sqs.Client, error)

func SSMClient ¶ added in v0.80.0

func SSMClient(ctx context.Context, d *plugin.QueryData) (*ssm.Client, error)

func SSMIncidentsClient ¶ added in v0.131.0

func SSMIncidentsClient(ctx context.Context, d *plugin.QueryData) (*ssmincidents.Client, error)

func SSOAdminClient ¶ added in v0.80.0

func SSOAdminClient(ctx context.Context, d *plugin.QueryData) (*ssoadmin.Client, error)

func STSClient ¶ added in v0.81.0

func STSClient(ctx context.Context, d *plugin.QueryData) (*sts.Client, error)

func SageMakerClient ¶ added in v0.80.0

func SageMakerClient(ctx context.Context, d *plugin.QueryData) (*sagemaker.Client, error)

func SecretsManagerClient ¶ added in v0.80.0

func SecretsManagerClient(ctx context.Context, d *plugin.QueryData) (*secretsmanager.Client, error)

func SecurityHubClient ¶ added in v0.80.0

func SecurityHubClient(ctx context.Context, d *plugin.QueryData) (*securityhub.Client, error)

func SecurityHubClientConfig ¶ added in v0.81.0

func SecurityHubClientConfig(ctx context.Context, d *plugin.QueryData) (*aws.Config, error)

Added for using middleware for migrating table "aws_securityhub_member" See https://github.com/aws/aws-sdk-go-v2/issues/1884#issuecomment-1278567756 for more info

func SecurityLakeClient ¶ added in v0.87.0

func SecurityLakeClient(ctx context.Context, d *plugin.QueryData) (*securitylake.Client, error)

func ServerlessApplicationRepositoryClient ¶ added in v0.80.0

func ServerlessApplicationRepositoryClient(ctx context.Context, d *plugin.QueryData) (*serverlessapplicationrepository.Client, error)

func ServiceCatalogClient ¶ added in v0.95.0

func ServiceCatalogClient(ctx context.Context, d *plugin.QueryData) (*servicecatalog.Client, error)

func ServiceDiscoveryClient ¶ added in v0.103.0

func ServiceDiscoveryClient(ctx context.Context, d *plugin.QueryData) (*servicediscovery.Client, error)

func ServiceQuotasClient ¶ added in v0.81.0

func ServiceQuotasClient(ctx context.Context, d *plugin.QueryData) (*servicequotas.Client, error)

func ShieldClient ¶ added in v1.2.0

func ShieldClient(ctx context.Context, d *plugin.QueryData) (*shield.Client, error)

func SimSpaceWeaverClient ¶ added in v0.89.0

func SimSpaceWeaverClient(ctx context.Context, d *plugin.QueryData) (*simspaceweaver.Client, error)

func StepFunctionsClient ¶ added in v0.80.0

func StepFunctionsClient(ctx context.Context, d *plugin.QueryData) (*sfn.Client, error)

func SupportClient ¶ added in v0.131.0

func SupportClient(ctx context.Context, d *plugin.QueryData) (*support.Client, error)

func SupportedRegionMatrix ¶ added in v0.93.0

func SupportedRegionMatrix(serviceID string) func(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

Return a matrix of regions supported by serviceID, which will then be queried for the table in parallel. This result factors in things like regions that are opted-in, regions for the service and even the `regions` config in aws.spc.

func SupportedRegionMatrixWithExclusions ¶ added in v0.93.0

func SupportedRegionMatrixWithExclusions(serviceID string, excludeRegions []string) func(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

Similar to SupportedRegionMatrix, but excludes the regions in excludeRegions for manual overrides if the service definition is incorrect.

func TimestreamwriteClient ¶ added in v0.146.0

func TimestreamwriteClient(ctx context.Context, d *plugin.QueryData) (*timestreamwrite.Client, error)

func TransferClient ¶ added in v0.122.0

func TransferClient(ctx context.Context, d *plugin.QueryData) (*transfer.Client, error)

func WAFClient ¶ added in v0.79.0

func WAFClient(ctx context.Context, d *plugin.QueryData) (*waf.Client, error)

func WAFRegionMatrix ¶ added in v0.93.0

func WAFRegionMatrix(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

WAFRegionMatrix returns the general region list, with a special region called "global" added. This is a specific region name used only by the WAF service. Note that the global region is always included in WAF results, even if the target region list is limited to specific regions. Currently, there is no way to exclude it except by filtering the results.

func WAFRegionalClient ¶ added in v0.80.0

func WAFRegionalClient(ctx context.Context, d *plugin.QueryData) (*wafregional.Client, error)

func WAFV2Client ¶ added in v0.80.0

func WAFV2Client(ctx context.Context, d *plugin.QueryData, region string) (*wafv2.Client, error)

func WellArchitectedClient ¶ added in v0.80.0

func WellArchitectedClient(ctx context.Context, d *plugin.QueryData) (*wellarchitected.Client, error)

func WorkspacesClient ¶ added in v0.80.0

func WorkspacesClient(ctx context.Context, d *plugin.QueryData) (*workspaces.Client, error)

Types ¶

type AnswerInfo ¶ added in v0.103.0

type AnswerInfo struct {
	types.Answer
	LensAlias       *string
	LensArn         *string
	MilestoneNumber *int32
	WorkloadId      *string
}

type AttackExtended ¶ added in v1.2.0

type AttackExtended struct {
	AttackVectors    []types.AttackVectorDescription
	AttackCounters   []types.SummarizedCounter
	AttackId         *string
	AttackProperties []types.AttackProperty
	EndTime          *time.Time
	Mitigations      []types.Mitigation
	ResourceArn      *string
	StartTime        *time.Time
	SubResources     []types.SubResourceSummary
}

type CEMetricRow ¶ added in v0.19.0

type CEMetricRow struct {
	Estimated bool

	// The time period that the result covers.
	PeriodStart *string
	PeriodEnd   *string

	Dimension1 *string
	Dimension2 *string

	BlendedCostAmount      *string
	UnblendedCostAmount    *string
	NetUnblendedCostAmount *string
	AmortizedCostAmount    *string
	NetAmortizedCostAmount *string
	UsageQuantityAmount    *string
	NormalizedUsageAmount  *string

	BlendedCostUnit      *string
	UnblendedCostUnit    *string
	NetUnblendedCostUnit *string
	AmortizedCostUnit    *string
	NetAmortizedCostUnit *string
	UsageQuantityUnit    *string
	NormalizedUsageUnit  *string
}

CEMetricRow is the flattened, aggregated value for a metric.

type CEQuals ¶ added in v0.19.0

type CEQuals struct {
	// Quals stuff
	SearchStartTime *timestamp.Timestamp
	SearchEndTime   *timestamp.Timestamp
	Granularity     string
	DimensionType1  string
	DimensionType2  string
	TagKey1         string
	TagKey2         string
}

type CWMetricRow ¶ added in v0.19.0

type CWMetricRow struct {
	// The (single) metric Dimension name
	DimensionName *string

	// The value for the (single) metric Dimension
	DimensionValue *string

	// The namespace of the metric
	Namespace *string

	// The name of the metric
	MetricName *string

	// The average of the metric values that correspond to the data point.
	Average *float64

	// The maximum metric value for the data point.
	Maximum *float64

	// The minimum metric value for the data point.
	Minimum *float64

	// The number of metric values that contributed to the aggregate value of this
	// data point.
	SampleCount *float64

	// The sum of the metric values for the data point.
	Sum *float64

	// The time stamp used for the data point.
	Timestamp *time.Time

	// The standard unit for the data point.
	Unit *string
}

type CaseSensitiveValue ¶

type CaseSensitiveValue []string

CaseSensitiveValue is used for value arrays that care about case AWS allows string or []string as value, we convert everything to []string to avoid casting. We also sort these - order does not matter for arrays/lists in IAM policies, so we sort them for easier diffing and remove duplicates since they're ignored anyway

func (*CaseSensitiveValue) UnmarshalJSON ¶

func (value *CaseSensitiveValue) UnmarshalJSON(b []byte) error

UnmarshalJSON for the CaseSensitiveValue struct

type CertInfo ¶ added in v0.112.0

type CertInfo struct {
	DirectoryId            *string
	CertificateId          *string
	ClientCertAuthSettings *types.ClientCertAuthSettings
	CommonName             *string
	ExpiryDateTime         *time.Time
	RegisteredDateTime     *time.Time
	State                  types.CertificateState
	StateReason            *string
	Type                   types.CertificateType
}

type CheckDetailInfo ¶ added in v0.103.0

type CheckDetailInfo struct {
	types.CheckDetail
	WorkloadId *string
}

type CheckSummaryInfo ¶ added in v0.103.0

type CheckSummaryInfo struct {
	types.CheckSummary
	WorkloadId *string
}

type ConfigurationDetails ¶ added in v0.131.0

type ConfigurationDetails struct {
	Name                                 *string
	CreationDateTime                     *time.Time
	EncryptionConfiguration              interface{}
	InstanceMetadataServiceConfiguration interface{}
	SecurityConfiguration                interface{}
}

type DestinationInfo ¶ added in v0.60.0

type DestinationInfo = struct {
	DestinationId                   *string
	DestinationType                 types.DestinationType
	DestinationArn                  *string
	KmsKeyArn                       *string
	Status                          types.PublishingStatus
	PublishingFailureStartTimestamp *int64
	DetectorId                      string
}

type ExclusionInfo ¶ added in v0.60.0

type ExclusionInfo = struct {
	types.Exclusion
	AssessmentRunArn string
}

type ExponentialJitterBackoff ¶ added in v0.72.0

type ExponentialJitterBackoff struct {
	// contains filtered or unexported fields
}

ExponentialJitterBackoff provides backoff delays with jitter based on the number of attempts.

func NewExponentialJitterBackoff ¶ added in v0.72.0

func NewExponentialJitterBackoff(minDelay time.Duration, maxAttempts int) *ExponentialJitterBackoff

NewExponentialJitterBackoff returns an ExponentialJitterBackoff configured for the max backoff.

func (*ExponentialJitterBackoff) BackoffDelay ¶ added in v0.72.0

func (j *ExponentialJitterBackoff) BackoffDelay(attempt int, err error) (time.Duration, error)

BackoffDelay returns the duration to wait before the next attempt should be made. Returns an error if unable get a duration.

type FilterQual ¶ added in v0.35.0

type FilterQual struct {
	ColumnName   string
	ColumnType   string
	PropertyName string
}

type FilterQuals ¶ added in v0.35.0

type FilterQuals []FilterQual

type GetQueryInfo ¶ added in v0.89.0

type GetQueryInfo struct {
	EventDataStoreArn *string
	*cloudtrail.DescribeQueryOutput
}

type HCLoggerToSmithyLoggerWrapper ¶ added in v0.134.0

type HCLoggerToSmithyLoggerWrapper struct {
	// contains filtered or unexported fields
}

HCLoggerToSmithyLoggerWrapper wraps an hclog Logger in order to pass it as an AWS SDK smithy Logger

func NewHCLoggerToSmithyLoggerWrapper ¶ added in v0.134.0

func NewHCLoggerToSmithyLoggerWrapper(l *hclog.Logger) *HCLoggerToSmithyLoggerWrapper

func (*HCLoggerToSmithyLoggerWrapper) Logf ¶ added in v0.134.0

func (logger *HCLoggerToSmithyLoggerWrapper) Logf(classification logging.Classification, format string, v ...interface{})

type HostedZoneResult ¶ added in v0.67.0

type HostedZoneResult struct {
	types.HostedZone
	VPCs []types.VPC
}

type IdentityProviderConfig ¶ added in v0.29.0

type IdentityProviderConfig struct {
	Name *string
	Type *string
	types.OidcIdentityProviderConfig
}

type IdentityStoreGroup ¶ added in v0.34.0

type IdentityStoreGroup struct {
	IdentityStoreId *string
	Group           types.Group
}

type IdentityStoreUser ¶ added in v0.37.0

type IdentityStoreUser struct {
	IdentityStoreId *string
	User            types.User
}

type InspectorFindingInfo ¶ added in v0.60.0

type InspectorFindingInfo struct {
	FailedItems map[string]types.FailedItemDetails
	Finding     types.Finding
}

type IntelligentTieringConfigurationInfo ¶ added in v0.108.0

type IntelligentTieringConfigurationInfo struct {
	BucketName *string
	types.IntelligentTieringConfiguration
}

type InventoryEntryInfo ¶ added in v0.105.0

type InventoryEntryInfo struct {
	CaptureTime   *string
	Entries       map[string]string
	InstanceId    *string
	SchemaVersion *string
	TypeName      *string
}

type InventoryInfo ¶ added in v0.64.0

type InventoryInfo struct {
	CaptureTime   *string
	Content       interface{}
	Id            *string
	SchemaVersion *string
	TypeName      *string
}

type LaunchPermissions ¶ added in v0.79.0

type LaunchPermissions struct {
	Group                 *string
	OrganizationArn       *string
	OrganizationalUnitArn *string
	UserId                *string
}

type LayerVersionInfo ¶ added in v0.39.0

type LayerVersionInfo struct {
	LayerName string
	lambda.GetLayerVersionOutput
}

type LensInfo ¶ added in v0.101.0

type LensInfo struct {
	CreatedAt         *time.Time
	Description       *string
	LensAlias         *string
	LensArn           *string
	LensName          *string
	LensStatus        types.LensStatus
	LensType          types.LensType
	LensVersion       *string
	Owner             *string
	UpdatedAt         *time.Time
	ShareInvitationId *string
	Tags              map[string]string
}

type LensReviewInfo ¶ added in v0.100.0

type LensReviewInfo struct {
	MilestoneNumber int32
	WorkloadId      *string
	*types.LensReview
}

type LensShareInfo ¶ added in v0.103.0

type LensShareInfo struct {
	LensAlias     *string
	LensName      *string
	LensArn       *string
	ShareId       *string
	SharedWith    *string
	Status        types.ShareStatus
	StatusMessage *string
}

type ListQueryInfo ¶ added in v0.89.0

type ListQueryInfo struct {
	EventDataStoreArn *string
	types.Query
}

We need custom structure 1. EventDataStoreArn is required for joing the queries 2. list/get call do not provide the EventDataStoreArn 3. Both list/get API call return different stracture with dfferent data

type ManagedPolicyAttachment ¶ added in v0.36.0

type ManagedPolicyAttachment struct {
	InstanceArn           *string
	PermissionSetArn      *string
	AttachedManagedPolicy types.AttachedManagedPolicy
}

type MethodInfo ¶ added in v0.131.0

type MethodInfo struct {
	ResourceId *string
	RestApiId  *string
	HttpMethod *string
	Path       *string
	PathPart   *string
	types.Method
}

type MetricDataPoint ¶ added in v0.104.0

type MetricDataPoint struct {
	Id         *string
	Label      *string
	StatusCode types.StatusCode
	Period     *int32
	Timestamp  time.Time
	Value      float64
}

type MetricStatistics ¶ added in v0.104.0

type MetricStatistics struct {
	MetricName *string
	Namespace  *string
	Period     *int32
	Label      *string
	Dimensions []types.Dimension
	types.Datapoint
}

type NoOpRateLimit ¶ added in v0.72.0

type NoOpRateLimit struct{}

https://github.com/aws/aws-sdk-go-v2/issues/543

func (NoOpRateLimit) AddTokens ¶ added in v0.72.0

func (NoOpRateLimit) AddTokens(uint) error

func (NoOpRateLimit) GetToken ¶ added in v0.72.0

func (NoOpRateLimit) GetToken(context.Context, uint) (func() error, error)

type Offer ¶ added in v0.83.0

type Offer struct {
	PriceDimensions map[string]*PriceDimension
	EffectiveDate   *time.Time
	OfferTermCode   *string
	TermAttributes  *TermAttributes
	// contains filtered or unexported fields
}

type OpenIDConnectProvider ¶ added in v0.109.0

type OpenIDConnectProvider struct {
	Arn string `type:"string"`
	iam.GetOpenIDConnectProviderOutput
}

type OrgAccount ¶ added in v0.143.0

type OrgAccount struct {
	types.Account
	ParentId *string
}

type OrganizationalUnit ¶ added in v0.128.0

type OrganizationalUnit struct {
	types.OrganizationalUnit
	Path     string
	ParentId string
}

type Parameter ¶ added in v0.87.0

type Parameter struct {
	ParameterGroupName string
	types.Parameter
}

type ParliamentCondition ¶ added in v0.3.0

type ParliamentCondition struct {
	Condition   string
	Description string
	Type        string
}

type ParliamentPermissions ¶ added in v0.3.0

type ParliamentPermissions []ParliamentService

type ParliamentPrivilege ¶ added in v0.3.0

type ParliamentPrivilege struct {
	AccessLevel   string
	Description   string
	Privilege     string
	ResourceTypes []ParliamentResourceType
}

type ParliamentResource ¶ added in v0.3.0

type ParliamentResource struct {
	Arn           string
	ConditionKeys []string
	Resource      string
}

type ParliamentResourceType ¶ added in v0.3.0

type ParliamentResourceType struct {
	ConditionKeys    []string
	DependentActions []string
	ResourceType     string
}

type ParliamentService ¶ added in v0.3.0

type ParliamentService struct {
	Conditions  []ParliamentCondition
	Prefix      string
	Privileges  []ParliamentPrivilege
	Resources   []ParliamentResource
	ServiceName string
}

type PermissionInfo ¶ added in v0.98.0

type PermissionInfo struct {
	DocumentName       string
	AccountIds         []string
	AccountSharingInfo types.AccountSharingInfo
}

type PermissionSetItem ¶ added in v0.35.0

type PermissionSetItem struct {
	InstanceArn      *string
	PermissionSetArn *string
	PermissionSet    types.PermissionSet
}

type Policy ¶

type Policy struct {
	Id         string     `json:"Id,omitempty"` // Optional, case sensitive
	Statements Statements `json:"Statement"`    // Required, array of Statements or single statement
	// 2012-10-17 or 2008-10-17 old policies, do NOT use this for new policies
	Version string `json:"Version"` // Required, version date string
}

Policy represents an IAM Policy document It would be nice if we could sort the fields (json keys) but postgres jsonb "does not preserve the order of object keys", per https://www.postgresql.org/docs/9.4/datatype-json.html

type PolicyAttachment ¶ added in v0.43.0

type PolicyAttachment struct {
	PolicyArn       string
	AttachmentCount *int32
	PolicyGroups    []types.PolicyGroup
	PolicyRoles     []types.PolicyRole
	PolicyUsers     []types.PolicyUser
}

type PolicyInfo ¶ added in v0.122.0

type PolicyInfo struct {
	ExcludeResourceTags            bool
	PolicyArn                      *string
	PolicyName                     *string
	RemediationEnabled             bool
	ResourceType                   *string
	SecurityServicePolicyData      *types.SecurityServicePolicyData
	DeleteUnusedFMManagedResources bool
	ExcludeMap                     map[string][]string
	IncludeMap                     map[string][]string
	PolicyDescription              *string
	PolicyId                       *string
	PolicyStatus                   types.CustomerPolicyStatus
	PolicyUpdateToken              *string
	ResourceSetIds                 []string
	ResourceTags                   []types.ResourceTag
	ResourceTypeList               []string
}

type PrefixListEntryInfo ¶ added in v0.107.0

type PrefixListEntryInfo struct {
	PrefixListId *string
	Cidr         *string
	Description  *string
}

type PriceDimension ¶ added in v0.83.0

type PriceDimension struct {
	Unit         *string
	BeginRange   *string
	EndRange     *string
	Description  *string
	RateCode     *string
	PricePerUnit map[string]*string
}

type PriceList ¶ added in v0.83.0

type PriceList struct {
	Product         *Product
	ServiceCode     *string
	Terms           map[string]*Term
	Version         *string
	PublicationDate *time.Time
	// contains filtered or unexported fields
}

type Principal ¶

type Principal map[string]interface{}

Principal may be string '*' or a map of principaltype:value. If '*', we add as an array element to the AWS principal type. Each value in the map may be a string or []string, we convert everything to []string and sort it and remove duplicates

func (*Principal) UnmarshalJSON ¶

func (principal *Principal) UnmarshalJSON(b []byte) error

UnmarshalJSON for the Principal struct

type Product ¶ added in v0.83.0

type Product struct {
	ProductFamily *string
	Attributes    map[string]*string
	// contains filtered or unexported fields
}

type ProductSubscription ¶ added in v0.146.0

type ProductSubscription struct {
	Arn string
}

type RegionsData ¶ added in v0.75.0

type RegionsData struct {
	AllRegions      []string
	ActiveRegions   []string
	NotOptedRegions []string
	APIRetrivedList bool
}

type ReviewImprovementInfo ¶ added in v0.103.0

type ReviewImprovementInfo struct {
	LensAlias       *string
	LensArn         *string
	MilestoneNumber int32
	WorkloadId      *string
	types.ImprovementSummary
}

type ReviewReportInfo ¶ added in v0.103.0

type ReviewReportInfo struct {
	Base64String    *string
	LensAlias       *string
	LensArn         *string
	MilestoneNumber int32
	WorkloadId      *string
}

type RotationInfo ¶ added in v0.137.0

type RotationInfo struct {
	KeyId        *string
	KeyArn       *string
	RotationDate *time.Time
	RotationType types.RotationType
}

type RouteDetails ¶ added in v0.32.0

type RouteDetails struct {
	Route                      types.TransitGatewayRoute
	TransitGatewayRouteTableId string
}

type RouteInfo ¶ added in v0.92.0

type RouteInfo struct {
	ApiId string
	*apigatewayv2.GetRouteOutput
}

type SAMLProvider ¶ added in v0.68.0

type SAMLProvider struct {
	Arn                  *string     `min:"20" type:"string"`
	CreateDate           *time.Time  `type:"timestamp"`
	SAMLMetadataDocument *string     `min:"1000" type:"string"`
	Tags                 []types.Tag `type:"list"`
	ValidUntil           *time.Time  `type:"timestamp"`
}

type SearchStreamItem ¶ added in v0.83.0

type SearchStreamItem struct {
	types.Resource
	ViewArn *string
}

type ServerCertificate ¶ added in v0.72.0

type ServerCertificate struct {
	CertificateBody           *string
	ServerCertificateMetadata types.ServerCertificateMetadata
	CertificateChain          *string
	Tags                      []types.Tag
}

type ServiceDetail ¶ added in v0.68.0

type ServiceDetail struct {
	AttributeName string
	ServiceCode   *string
}

type ServiceInstanceInfo ¶ added in v0.105.0

type ServiceInstanceInfo struct {
	Id         *string
	ServiceId  *string
	Attributes map[string]string
}

type SsoAdminAccountAssignmentItem ¶ added in v0.99.0

type SsoAdminAccountAssignmentItem struct {
	InstanceArn       *string
	AccountAssignment types.AccountAssignment
}

type Statement ¶

type Statement struct {
	Action       Value                  `json:"Action,omitempty"`       // Optional, string or array of strings, case insensitive
	Condition    map[string]interface{} `json:"Condition,omitempty"`    // Optional, map of conditions
	Effect       string                 `json:"Effect"`                 // Required, Allow or Deny, case sensitive
	NotAction    Value                  `json:"NotAction,omitempty"`    // Optional, string or array of strings, case insensitive
	NotPrincipal Principal              `json:"NotPrincipal,omitempty"` // Optional, string (*) or map of strings/arrays
	NotResource  CaseSensitiveValue     `json:"NotResource,omitempty"`  // Optional, string or array of strings, case sensitive
	Principal    Principal              `json:"Principal,omitempty"`    // Optional, string (*) or map of strings/arrays
	Resource     CaseSensitiveValue     `json:"Resource,omitempty"`     // Optional, string or array of strings, case sensitive
	Sid          string                 `json:"Sid,omitempty"`          // Optional, case sensitive
}

Statement represents a Statement in an IAM Policy. It would be nice if we could sort the fields (json keys) but postgres jsonb "does not preserve the order of object keys", per https://www.postgresql.org/docs/9.4/datatype-json.html

func (*Statement) UnmarshalJSON ¶

func (statement *Statement) UnmarshalJSON(b []byte) error

UnmarshalJSON for the Statement struct

type Statements ¶

type Statements []Statement

Statements is an array of statements from an IAM policy

func (*Statements) UnmarshalJSON ¶

func (statement *Statements) UnmarshalJSON(b []byte) error

UnmarshalJSON for the Policy struct. A policy can contain a single Statement or an array of statements, we always convert to array. Currently, we do not sort these but we probably should....

type Term ¶ added in v0.83.0

type Term map[string]*Offer

type TermAttributes ¶ added in v0.83.0

type TermAttributes struct {
	PurchaseOption      *string
	LeaseContractLength *string
	OfferingClass       *string
	// contains filtered or unexported fields
}

type TransferUserInfo ¶ added in v0.133.0

type TransferUserInfo = struct {
	types.DescribedUser
	UserName          *string
	ServerID          *string
	Arn               *string
	HomeDirectory     *string
	HomeDirectoryType *types.HomeDirectoryType
	Role              *string
	SshPublicKeyCount *int32
}

type VPCAssociationAuthorizationResult ¶ added in v0.139.0

type VPCAssociationAuthorizationResult struct {
	HostedZoneId *string
	VPCId        *string
	VPCRegion    *string
}

type Value ¶

type Value []string

Value is an AWS IAM value string or array. AWS allows string or []string as value, we convert everything to []string to avoid casting. We also sort these - order does not matter for arrays/lists in IAM policies, so we sort them for easier diffing, and remove duplicates since they're ignored anyway

func (*Value) UnmarshalJSON ¶

func (value *Value) UnmarshalJSON(b []byte) error

UnmarshalJSON for the Value struct

type VpcFilterKeyMap ¶ added in v0.46.0

type VpcFilterKeyMap struct {
	ColumnName string
	FilterName string
	ColumnType string
}

type WorkloadShareInfo ¶ added in v0.101.0

type WorkloadShareInfo struct {
	WorkloadId    *string
	WorkloadShare types.WorkloadShareSummary
}

Source Files ¶

Jump to

Keyboard shortcuts

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