google_security_scanner_scan_config

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// BlacklistPatterns: list of string, optional
	BlacklistPatterns terra.ListValue[terra.StringValue] `hcl:"blacklist_patterns,attr"`
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// ExportToSecurityCommandCenter: string, optional
	ExportToSecurityCommandCenter terra.StringValue `hcl:"export_to_security_command_center,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxQps: number, optional
	MaxQps terra.NumberValue `hcl:"max_qps,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// StartingUrls: list of string, required
	StartingUrls terra.ListValue[terra.StringValue] `hcl:"starting_urls,attr" validate:"required"`
	// TargetPlatforms: list of string, optional
	TargetPlatforms terra.ListValue[terra.StringValue] `hcl:"target_platforms,attr"`
	// UserAgent: string, optional
	UserAgent terra.StringValue `hcl:"user_agent,attr"`
	// Authentication: optional
	Authentication *Authentication `hcl:"authentication,block"`
	// Schedule: optional
	Schedule *Schedule `hcl:"schedule,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_security_scanner_scan_config.

type Authentication

type Authentication struct {
	// AuthenticationCustomAccount: optional
	CustomAccount *AuthenticationCustomAccount `hcl:"custom_account,block"`
	// AuthenticationGoogleAccount: optional
	GoogleAccount *AuthenticationGoogleAccount `hcl:"google_account,block"`
}

type AuthenticationAttributes

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

func (AuthenticationAttributes) CustomAccount

func (AuthenticationAttributes) GoogleAccount

func (AuthenticationAttributes) InternalRef

func (a AuthenticationAttributes) InternalRef() (terra.Reference, error)

func (AuthenticationAttributes) InternalTokens

func (a AuthenticationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthenticationAttributes) InternalWithRef

type AuthenticationCustomAccount

type AuthenticationCustomAccount struct {
	// LoginUrl: string, required
	LoginUrl terra.StringValue `hcl:"login_url,attr" validate:"required"`
	// Password: string, required
	Password terra.StringValue `hcl:"password,attr" validate:"required"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type AuthenticationCustomAccountAttributes

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

func (AuthenticationCustomAccountAttributes) InternalRef

func (AuthenticationCustomAccountAttributes) InternalTokens

func (AuthenticationCustomAccountAttributes) InternalWithRef

func (AuthenticationCustomAccountAttributes) LoginUrl

func (AuthenticationCustomAccountAttributes) Password

func (AuthenticationCustomAccountAttributes) Username

type AuthenticationCustomAccountState

type AuthenticationCustomAccountState struct {
	LoginUrl string `json:"login_url"`
	Password string `json:"password"`
	Username string `json:"username"`
}

type AuthenticationGoogleAccount

type AuthenticationGoogleAccount struct {
	// Password: string, required
	Password terra.StringValue `hcl:"password,attr" validate:"required"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type AuthenticationGoogleAccountAttributes

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

func (AuthenticationGoogleAccountAttributes) InternalRef

func (AuthenticationGoogleAccountAttributes) InternalTokens

func (AuthenticationGoogleAccountAttributes) InternalWithRef

func (AuthenticationGoogleAccountAttributes) Password

func (AuthenticationGoogleAccountAttributes) Username

type AuthenticationGoogleAccountState

type AuthenticationGoogleAccountState struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

type AuthenticationState

type AuthenticationState struct {
	CustomAccount []AuthenticationCustomAccountState `json:"custom_account"`
	GoogleAccount []AuthenticationGoogleAccountState `json:"google_account"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_security_scanner_scan_config.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gsssc *Resource) Attributes() googleSecurityScannerScanConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gsssc *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (gsssc *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gsssc *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gsssc *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gsssc *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gsssc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gsssc *Resource) State() (*googleSecurityScannerScanConfigState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gsssc *Resource) StateMust() *googleSecurityScannerScanConfigState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gsssc *Resource) Type() string

Type returns the Terraform object type for Resource.

type Schedule

type Schedule struct {
	// IntervalDurationDays: number, required
	IntervalDurationDays terra.NumberValue `hcl:"interval_duration_days,attr" validate:"required"`
	// ScheduleTime: string, optional
	ScheduleTime terra.StringValue `hcl:"schedule_time,attr"`
}

type ScheduleAttributes

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

func (ScheduleAttributes) InternalRef

func (s ScheduleAttributes) InternalRef() (terra.Reference, error)

func (ScheduleAttributes) InternalTokens

func (s ScheduleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ScheduleAttributes) InternalWithRef

func (s ScheduleAttributes) InternalWithRef(ref terra.Reference) ScheduleAttributes

func (ScheduleAttributes) IntervalDurationDays

func (s ScheduleAttributes) IntervalDurationDays() terra.NumberValue

func (ScheduleAttributes) ScheduleTime

func (s ScheduleAttributes) ScheduleTime() terra.StringValue

type ScheduleState

type ScheduleState struct {
	IntervalDurationDays float64 `json:"interval_duration_days"`
	ScheduleTime         string  `json:"schedule_time"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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