resources

package
v1.8.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: AGPL-3.0 Imports: 63 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::AthenaInit": customAthenaInit,

	"Custom::DynamoDBAlarms": customDynamoDBAlarms,

	"Custom::ElbAlarms": customElbAlarms,

	"Custom::Certificate": customCertificate,

	"Custom::CognitoUserPoolMfa": customCognitoUserPoolMfa,

	"Custom::UpdateGlueTables": customUpdateGlueTables,

	"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,
}

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 {
	AnalysisAPIEndpoint string `validate:"required"`
	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 AthenaInitProperties added in v1.4.0

type AthenaInitProperties struct {
	AthenaResultsBucket string `validate:"required"`
}

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,max=3008"`
	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"`
}

type UpdateGlueTablesProperties added in v1.4.0

type UpdateGlueTablesProperties struct {
	// TablesSignature should change every time the tables change (for CF master.yml this can be the Panther version)
	TablesSignature     string `validate:"required"`
	ProcessedDataBucket string `validate:"required"`
}

Jump to

Keyboard shortcuts

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