resources

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 68 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomResources = map[string]cfn.CustomResourceFunction{

	"Custom::AnalysisSet": customAnalysisSet,

	"Custom::ApiGatewayAlarms": customAPIGatewayAlarms,

	"Custom::AppSyncAlarms": customAppSyncAlarms,

	"Custom::DynamoDBAlarms": customDynamoDBAlarms,

	"Custom::ElbAlarms": customElbAlarms,

	"Custom::Certificate": customCertificate,

	"Custom::CognitoUserPoolMfa": customCognitoUserPoolMfa,

	"Custom::UpdateLogProcessorTables": customUpdateLogTables,

	"Custom::GuardDutyDestination": customGuardDutyDestination,

	"Custom::LambdaAlarms": customLambdaAlarms,

	"Custom::LambdaMetricFilters": customLambdaMetricFilters,

	"Custom::PantherSettings": customPantherSettings,

	"Custom::LayerAttachment": customLayerAttachment,

	"Custom::PantherTeardown": customPantherTeardown,

	"Custom::PantherUser": customPantherUser,

	"Custom::S3BucketNotification": customS3BucketNotification,

	"Custom::SelfRegistration": customSelfRegistration,

	"Custom::StateMachineAlarms": customStateMachineAlarms,

	"Custom::SNSAlarms": customSNSAlarms,

	"Custom::SQSAlarms": customSQSAlarms,

	"Custom::ManagedSchemas": customUpdateManagedSchemas,
}

CustomResources map type names to their respective handler functions.

Functions

func Setup added in v1.6.0

func Setup()

Types

type APIGatewayAlarmProperties added in v1.3.0

type APIGatewayAlarmProperties struct {
	APIName            string  `json:"ApiName" validate:"required"`
	AlarmTopicArn      string  `validate:"required"`
	ErrorThreshold     int     `json:",string" validate:"omitempty,min=0"`
	LatencyThresholdMs float64 `json:",string" validate:"omitempty,min=1"`
}

type AnalysisSetProperties added in v1.4.0

type AnalysisSetProperties struct {
	PackURLs []string
}

type AppSyncAlarmProperties added in v1.3.0

type AppSyncAlarmProperties struct {
	APIID                string `json:"ApiId" validate:"required"`
	APIName              string `json:"ApiName" validate:"required"`
	AlarmTopicArn        string `validate:"required"`
	ClientErrorThreshold int    `json:",string" validate:"omitempty,min=0"`
	ServerErrorThreshold int    `json:",string" validate:"omitempty,min=0"`
}

type CognitoUserPoolMfaProperties added in v1.3.0

type CognitoUserPoolMfaProperties struct {
	UserPoolID string `json:"UserPoolId" validate:"required"`
}

type DynamoDBAlarmProperties added in v1.4.0

type DynamoDBAlarmProperties struct {
	AlarmTopicArn string `validate:"required"`
	TableName     string `validate:"required"`
}

type ElbAlarmProperties added in v1.3.0

type ElbAlarmProperties struct {
	AlarmTopicArn            string `validate:"required"`
	LoadBalancerFriendlyName string `validate:"required"`
	LoadBalancerFullName     string `validate:"required"`

	LatencyThresholdSeconds float64 `json:",string" validate:"omitempty,min=0"`
}

type GuardDutyDestinationProperties added in v1.4.0

type GuardDutyDestinationProperties = guardduty.CreatePublishingDestinationInput

type LambdaAlarmProperties added in v1.4.0

type LambdaAlarmProperties struct {
	AlarmTopicArn      string `validate:"required"`
	FunctionName       string `validate:"required"`
	FunctionMemoryMB   int    `json:",string" validate:"min=128"`
	FunctionTimeoutSec int    `json:",string" validate:"min=1"`

	// These are pointers because we have to distinguish 0 from not specified
	LoggedErrorThreshold    *int `json:",string" validate:"omitempty,min=0"`
	LoggedWarnThreshold     *int `json:",string" validate:"omitempty,min=0"`
	ExecutionErrorThreshold *int `json:",string" validate:"omitempty,min=0"`
	ThrottleThreshold       *int `json:",string" validate:"omitempty,min=0"`
}

type LambdaMetricFiltersProperties added in v1.3.0

type LambdaMetricFiltersProperties struct {
	LambdaRuntime string `validate:"omitempty,oneof=Go Python"`
	LogGroupName  string `validate:"required"`
}

type LayerAttachmentProperties added in v1.5.0

type LayerAttachmentProperties struct {
	LayerArns []*string
}

type PantherSettingsProperties added in v1.4.0

type PantherSettingsProperties = models.GeneralSettings

type PantherTeardownProperties added in v1.4.0

type PantherTeardownProperties struct {
	CustomResourceLogGroupName string `validate:"required"`
	CustomResourceRoleName     string `validate:"required"`
	EcrRepoName                string
}

type PantherUserProperties added in v1.4.0

type PantherUserProperties struct {
	GivenName  string
	FamilyName string
	Email      string `validate:"required,email"`
}

type S3BucketNotificationProperties added in v1.4.0

type S3BucketNotificationProperties = s3.PutBucketNotificationConfigurationInput

type SFNAlarmProperties added in v1.4.0

type SFNAlarmProperties struct {
	AlarmTopicArn   string `validate:"required"`
	StateMachineArn string `validate:"required"`
	// contains filtered or unexported fields
}

type SNSAlarmProperties added in v1.4.0

type SNSAlarmProperties struct {
	AlarmTopicArn string `validate:"required"`
	TopicName     string `validate:"required"`
}

type SQSAlarmProperties added in v1.4.0

type SQSAlarmProperties struct {
	AlarmTopicArn       string   `validate:"required"`
	QueueName           string   `validate:"required"`
	IsDLQ               bool     `json:",string"`
	AgeThresholdSeconds *float64 `json:",string"` // if present, override default
}

type SelfRegistrationProperties added in v1.4.0

type SelfRegistrationProperties struct {
	AccountID               string   `validate:"required,len=12"`
	AuditLogsBucket         string   `validate:"required"`
	EnableCloudTrail        bool     `json:",string"`
	EnableGuardDuty         bool     `json:",string"`
	EnableS3AccessLogs      bool     `json:",string"`
	Enabled                 *bool    `json:",string"`
	RegionIgnoreList        []string `json:","`
	ResourceTypeIgnoreList  []string `json:","`
	ResourceRegexIgnoreList []string `json:","`
}

type UpdateLogProcessorTablesProperties added in v1.12.0

type UpdateLogProcessorTablesProperties struct {
	DataCatalogUpdaterQueueURL string `validate:"required"`
}

type UpdateManagedSchemas added in v1.16.0

type UpdateManagedSchemas struct {
}

Jump to

Keyboard shortcuts

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