aws

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 41 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// region
	REGION_US_EAST_1 = "us-east-1"

	// service
	SERVICE_CLOUDFRONT   = "cloudfront"
	SERVICE_S3           = "s3"
	SERVICE_LAMBDA       = "lambda"
	SERVICE_SQS          = "sqs"
	SERVICE_SNS          = "sns"
	SERVICE_EVENT_BRIDGE = "events"
	SERVICE_IAM          = "iam"
	SERVICE_API_GATEWAY  = "apigateway"
	SERVICE_EC2          = "ec2"
	SERVICE_ELB          = "elasticloadbalancing"
	SERVICE_APP_RUNNER   = "apprunner"
	SERVICE_ECR_PUBLIC   = "ecr-public"
	SERVICE_ECR          = "ecr"

	RETRY_MAX_ATTEMPT = 10
)
View Source
const MAX_RETRY = 3

Variables

This section is empty.

Functions

Types

type AWS

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

func (*AWS) GetInitialServiceAnalyzer

func (a *AWS) GetInitialServiceAnalyzer(ctx context.Context, req *datasource.AnalyzeAttackFlowRequest) (
	attackflow.CloudServiceAnalyzer, error,
)

type CloudFrontMetadata

type CloudFrontMetadata struct {
	DistributionID    string    `json:"distribution_id"`
	Description       string    `json:"description"`
	Status            string    `json:"status"` // Deployed or InProgress
	Enabled           bool      `json:"enabled"`
	DomainName        string    `json:"domain_name"`
	DefaultRootObject string    `json:"default_root_object"`
	Aliases           []string  `json:"aliases"`
	Origins           []*origin `json:"origins"`
	GeoRestriction    []string  `json:"geo_restriction"`
	Logging           string    `json:"logging"`
	WebACLId          string    `json:"web_acl_id"`
}

type S3Metadata

type S3Metadata struct {
	Encryption string `json:"encryption"`
	IsPublic   bool   `json:"is_public"`
	Versioning bool   `json:"versioning"`

	// S3 Notification
	LambdaConfiguration      []string `json:"lambda_configuration"`
	SQSConfiguration         []string `json:"sqs_configuration"`
	SNSConfiguration         []string `json:"sns_configuration"`
	EventBridgeConfiguration string   `json:"event_bridge_configuration"`
}

type SnsSubscription

type SnsSubscription struct {
	Endpoint        string `json:"endpoint"`
	Owner           string `json:"owner"`
	Protocol        string `json:"protocol"`
	SubscriptionArn string `json:"subscription_arn"`
}

Jump to

Keyboard shortcuts

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