aws_securitylake_aws_log_source

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 {
	// Source: min=0
	Source []Source `hcl:"source,block" validate:"min=0"`
}

Args contains the configurations for aws_securitylake_aws_log_source.

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 aws_securitylake_aws_log_source.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asals *Resource) Attributes() awsSecuritylakeAwsLogSourceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asals *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asals *Resource) State() (*awsSecuritylakeAwsLogSourceState, bool)

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

func (*Resource) StateMust

func (asals *Resource) StateMust() *awsSecuritylakeAwsLogSourceState

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

func (*Resource) Type

func (asals *Resource) Type() string

Type returns the Terraform object type for Resource.

type Source

type Source struct {
	// Accounts: set of string, optional
	Accounts terra.SetValue[terra.StringValue] `hcl:"accounts,attr"`
	// Regions: set of string, required
	Regions terra.SetValue[terra.StringValue] `hcl:"regions,attr" validate:"required"`
	// SourceName: string, required
	SourceName terra.StringValue `hcl:"source_name,attr" validate:"required"`
	// SourceVersion: string, optional
	SourceVersion terra.StringValue `hcl:"source_version,attr"`
}

type SourceAttributes

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

func (SourceAttributes) Accounts

func (SourceAttributes) InternalRef

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

func (SourceAttributes) InternalTokens

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

func (SourceAttributes) InternalWithRef

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

func (SourceAttributes) Regions

func (SourceAttributes) SourceName

func (s SourceAttributes) SourceName() terra.StringValue

func (SourceAttributes) SourceVersion

func (s SourceAttributes) SourceVersion() terra.StringValue

type SourceState

type SourceState struct {
	Accounts      []string `json:"accounts"`
	Regions       []string `json:"regions"`
	SourceName    string   `json:"source_name"`
	SourceVersion string   `json:"source_version"`
}

Jump to

Keyboard shortcuts

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