aws_s3control_storage_lens_configuration

package
v5.45.0 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 {
	// AccountId: string, optional
	AccountId terra.StringValue `hcl:"account_id,attr"`
	// ConfigId: string, required
	ConfigId terra.StringValue `hcl:"config_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// StorageLensConfiguration: required
	StorageLensConfiguration *StorageLensConfiguration `hcl:"storage_lens_configuration,block" validate:"required"`
}

Args contains the configurations for aws_s3control_storage_lens_configuration.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asslc *Resource) Attributes() awsS3ControlStorageLensConfigurationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asslc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asslc *Resource) State() (*awsS3ControlStorageLensConfigurationState, bool)

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

func (*Resource) StateMust

func (asslc *Resource) StateMust() *awsS3ControlStorageLensConfigurationState

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

func (*Resource) Type

func (asslc *Resource) Type() string

Type returns the Terraform object type for Resource.

type StorageLensConfiguration

type StorageLensConfiguration struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// StorageLensConfigurationAccountLevel: required
	AccountLevel *StorageLensConfigurationAccountLevel `hcl:"account_level,block" validate:"required"`
	// StorageLensConfigurationAwsOrg: optional
	AwsOrg *StorageLensConfigurationAwsOrg `hcl:"aws_org,block"`
	// StorageLensConfigurationDataExport: optional
	DataExport *StorageLensConfigurationDataExport `hcl:"data_export,block"`
	// StorageLensConfigurationExclude: optional
	Exclude *StorageLensConfigurationExclude `hcl:"exclude,block"`
	// StorageLensConfigurationInclude: optional
	Include *StorageLensConfigurationInclude `hcl:"include,block"`
}

type StorageLensConfigurationAccountLevel

type StorageLensConfigurationAccountLevel struct {
	// StorageLensConfigurationAccountLevelActivityMetrics: optional
	ActivityMetrics *StorageLensConfigurationAccountLevelActivityMetrics `hcl:"activity_metrics,block"`
	// StorageLensConfigurationAccountLevelBucketLevel: required
	BucketLevel *StorageLensConfigurationAccountLevelBucketLevel `hcl:"bucket_level,block" validate:"required"`
}

type StorageLensConfigurationAccountLevel9Bbce871

type StorageLensConfigurationAccountLevel9Bbce871 struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// StorageLensConfigurationAccountLevelA3C0Cce3: optional
	SelectionCriteria *StorageLensConfigurationAccountLevelA3C0Cce3 `hcl:"selection_criteria,block"`
}

type StorageLensConfigurationAccountLevel9Bbce871Attributes

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

func (StorageLensConfigurationAccountLevel9Bbce871Attributes) Enabled

func (StorageLensConfigurationAccountLevel9Bbce871Attributes) InternalRef

func (StorageLensConfigurationAccountLevel9Bbce871Attributes) InternalTokens

func (StorageLensConfigurationAccountLevel9Bbce871Attributes) InternalWithRef

func (StorageLensConfigurationAccountLevel9Bbce871Attributes) SelectionCriteria

type StorageLensConfigurationAccountLevel9Bbce871State

type StorageLensConfigurationAccountLevel9Bbce871State struct {
	Enabled           bool                                                `json:"enabled"`
	SelectionCriteria []StorageLensConfigurationAccountLevelA3C0Cce3State `json:"selection_criteria"`
}

type StorageLensConfigurationAccountLevelA3C0Cce3

type StorageLensConfigurationAccountLevelA3C0Cce3 struct {
	// Delimiter: string, optional
	Delimiter terra.StringValue `hcl:"delimiter,attr"`
	// MaxDepth: number, optional
	MaxDepth terra.NumberValue `hcl:"max_depth,attr"`
	// MinStorageBytesPercentage: number, optional
	MinStorageBytesPercentage terra.NumberValue `hcl:"min_storage_bytes_percentage,attr"`
}

type StorageLensConfigurationAccountLevelA3C0Cce3Attributes

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

func (StorageLensConfigurationAccountLevelA3C0Cce3Attributes) Delimiter

func (StorageLensConfigurationAccountLevelA3C0Cce3Attributes) InternalRef

func (StorageLensConfigurationAccountLevelA3C0Cce3Attributes) InternalTokens

func (StorageLensConfigurationAccountLevelA3C0Cce3Attributes) InternalWithRef

func (StorageLensConfigurationAccountLevelA3C0Cce3Attributes) MaxDepth

func (StorageLensConfigurationAccountLevelA3C0Cce3Attributes) MinStorageBytesPercentage

type StorageLensConfigurationAccountLevelA3C0Cce3State

type StorageLensConfigurationAccountLevelA3C0Cce3State struct {
	Delimiter                 string  `json:"delimiter"`
	MaxDepth                  float64 `json:"max_depth"`
	MinStorageBytesPercentage float64 `json:"min_storage_bytes_percentage"`
}

type StorageLensConfigurationAccountLevelActivityMetrics

type StorageLensConfigurationAccountLevelActivityMetrics struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
}

type StorageLensConfigurationAccountLevelActivityMetricsAttributes

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

func (StorageLensConfigurationAccountLevelActivityMetricsAttributes) Enabled

func (StorageLensConfigurationAccountLevelActivityMetricsAttributes) InternalRef

func (StorageLensConfigurationAccountLevelActivityMetricsAttributes) InternalTokens

func (StorageLensConfigurationAccountLevelActivityMetricsAttributes) InternalWithRef

type StorageLensConfigurationAccountLevelActivityMetricsState

type StorageLensConfigurationAccountLevelActivityMetricsState struct {
	Enabled bool `json:"enabled"`
}

type StorageLensConfigurationAccountLevelAttributes

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

func (StorageLensConfigurationAccountLevelAttributes) InternalRef

func (StorageLensConfigurationAccountLevelAttributes) InternalTokens

func (StorageLensConfigurationAccountLevelAttributes) InternalWithRef

type StorageLensConfigurationAccountLevelBucketLevel

type StorageLensConfigurationAccountLevelBucketLevel struct {
	// StorageLensConfigurationAccountLevelBucketLevelActivityMetrics: optional
	ActivityMetrics *StorageLensConfigurationAccountLevelBucketLevelActivityMetrics `hcl:"activity_metrics,block"`
	// StorageLensConfigurationAccountLevelBucketLevelPrefixLevel: optional
	PrefixLevel *StorageLensConfigurationAccountLevelBucketLevelPrefixLevel `hcl:"prefix_level,block"`
}

type StorageLensConfigurationAccountLevelBucketLevelActivityMetrics

type StorageLensConfigurationAccountLevelBucketLevelActivityMetrics struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
}

type StorageLensConfigurationAccountLevelBucketLevelActivityMetricsAttributes

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

func (StorageLensConfigurationAccountLevelBucketLevelActivityMetricsAttributes) Enabled

func (StorageLensConfigurationAccountLevelBucketLevelActivityMetricsAttributes) InternalRef

func (StorageLensConfigurationAccountLevelBucketLevelActivityMetricsAttributes) InternalTokens

func (StorageLensConfigurationAccountLevelBucketLevelActivityMetricsAttributes) InternalWithRef

type StorageLensConfigurationAccountLevelBucketLevelActivityMetricsState

type StorageLensConfigurationAccountLevelBucketLevelActivityMetricsState struct {
	Enabled bool `json:"enabled"`
}

type StorageLensConfigurationAccountLevelBucketLevelAttributes

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

func (StorageLensConfigurationAccountLevelBucketLevelAttributes) InternalRef

func (StorageLensConfigurationAccountLevelBucketLevelAttributes) InternalTokens

func (StorageLensConfigurationAccountLevelBucketLevelAttributes) InternalWithRef

type StorageLensConfigurationAccountLevelBucketLevelPrefixLevel

type StorageLensConfigurationAccountLevelBucketLevelPrefixLevel struct {
	// StorageLensConfigurationAccountLevel9Bbce871: required
	StorageMetrics *StorageLensConfigurationAccountLevel9Bbce871 `hcl:"storage_metrics,block" validate:"required"`
}

type StorageLensConfigurationAccountLevelBucketLevelPrefixLevelAttributes

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

func (StorageLensConfigurationAccountLevelBucketLevelPrefixLevelAttributes) InternalRef

func (StorageLensConfigurationAccountLevelBucketLevelPrefixLevelAttributes) InternalTokens

func (StorageLensConfigurationAccountLevelBucketLevelPrefixLevelAttributes) InternalWithRef

func (StorageLensConfigurationAccountLevelBucketLevelPrefixLevelAttributes) StorageMetrics

type StorageLensConfigurationAccountLevelBucketLevelPrefixLevelState

type StorageLensConfigurationAccountLevelBucketLevelPrefixLevelState struct {
	StorageMetrics []StorageLensConfigurationAccountLevel9Bbce871State `json:"storage_metrics"`
}

type StorageLensConfigurationAccountLevelBucketLevelState

type StorageLensConfigurationAccountLevelBucketLevelState struct {
	ActivityMetrics []StorageLensConfigurationAccountLevelBucketLevelActivityMetricsState `json:"activity_metrics"`
	PrefixLevel     []StorageLensConfigurationAccountLevelBucketLevelPrefixLevelState     `json:"prefix_level"`
}

type StorageLensConfigurationAccountLevelState

type StorageLensConfigurationAccountLevelState struct {
	ActivityMetrics []StorageLensConfigurationAccountLevelActivityMetricsState `json:"activity_metrics"`
	BucketLevel     []StorageLensConfigurationAccountLevelBucketLevelState     `json:"bucket_level"`
}

type StorageLensConfigurationAttributes

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

func (StorageLensConfigurationAttributes) AccountLevel

func (StorageLensConfigurationAttributes) AwsOrg

func (StorageLensConfigurationAttributes) DataExport

func (StorageLensConfigurationAttributes) Enabled

func (StorageLensConfigurationAttributes) Exclude

func (StorageLensConfigurationAttributes) Include

func (StorageLensConfigurationAttributes) InternalRef

func (StorageLensConfigurationAttributes) InternalTokens

func (slc StorageLensConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StorageLensConfigurationAttributes) InternalWithRef

type StorageLensConfigurationAwsOrg

type StorageLensConfigurationAwsOrg struct {
	// Arn: string, required
	Arn terra.StringValue `hcl:"arn,attr" validate:"required"`
}

type StorageLensConfigurationAwsOrgAttributes

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

func (StorageLensConfigurationAwsOrgAttributes) Arn

func (StorageLensConfigurationAwsOrgAttributes) InternalRef

func (StorageLensConfigurationAwsOrgAttributes) InternalTokens

func (StorageLensConfigurationAwsOrgAttributes) InternalWithRef

type StorageLensConfigurationAwsOrgState

type StorageLensConfigurationAwsOrgState struct {
	Arn string `json:"arn"`
}

type StorageLensConfigurationDataExport

type StorageLensConfigurationDataExport struct {
	// StorageLensConfigurationDataExportCloudWatchMetrics: optional
	CloudWatchMetrics *StorageLensConfigurationDataExportCloudWatchMetrics `hcl:"cloud_watch_metrics,block"`
	// StorageLensConfigurationDataExportS3BucketDestination: optional
	S3BucketDestination *StorageLensConfigurationDataExportS3BucketDestination `hcl:"s3_bucket_destination,block"`
}

type StorageLensConfigurationDataExport4Bb2F4E8

type StorageLensConfigurationDataExport4Bb2F4E8 struct{}

type StorageLensConfigurationDataExport4Bb2F4E8Attributes

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

func (StorageLensConfigurationDataExport4Bb2F4E8Attributes) InternalRef

func (StorageLensConfigurationDataExport4Bb2F4E8Attributes) InternalTokens

func (StorageLensConfigurationDataExport4Bb2F4E8Attributes) InternalWithRef

type StorageLensConfigurationDataExport4Bb2F4E8State

type StorageLensConfigurationDataExport4Bb2F4E8State struct{}

type StorageLensConfigurationDataExport76990715

type StorageLensConfigurationDataExport76990715 struct {
	// KeyId: string, required
	KeyId terra.StringValue `hcl:"key_id,attr" validate:"required"`
}

type StorageLensConfigurationDataExport76990715Attributes

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

func (StorageLensConfigurationDataExport76990715Attributes) InternalRef

func (StorageLensConfigurationDataExport76990715Attributes) InternalTokens

func (StorageLensConfigurationDataExport76990715Attributes) InternalWithRef

func (StorageLensConfigurationDataExport76990715Attributes) KeyId

type StorageLensConfigurationDataExport76990715State

type StorageLensConfigurationDataExport76990715State struct {
	KeyId string `json:"key_id"`
}

type StorageLensConfigurationDataExportAttributes

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

func (StorageLensConfigurationDataExportAttributes) InternalRef

func (StorageLensConfigurationDataExportAttributes) InternalTokens

func (StorageLensConfigurationDataExportAttributes) InternalWithRef

type StorageLensConfigurationDataExportCloudWatchMetrics

type StorageLensConfigurationDataExportCloudWatchMetrics struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
}

type StorageLensConfigurationDataExportCloudWatchMetricsAttributes

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

func (StorageLensConfigurationDataExportCloudWatchMetricsAttributes) Enabled

func (StorageLensConfigurationDataExportCloudWatchMetricsAttributes) InternalRef

func (StorageLensConfigurationDataExportCloudWatchMetricsAttributes) InternalTokens

func (StorageLensConfigurationDataExportCloudWatchMetricsAttributes) InternalWithRef

type StorageLensConfigurationDataExportCloudWatchMetricsState

type StorageLensConfigurationDataExportCloudWatchMetricsState struct {
	Enabled bool `json:"enabled"`
}

type StorageLensConfigurationDataExportS3BucketDestination

type StorageLensConfigurationDataExportS3BucketDestination struct {
	// AccountId: string, required
	AccountId terra.StringValue `hcl:"account_id,attr" validate:"required"`
	// Arn: string, required
	Arn terra.StringValue `hcl:"arn,attr" validate:"required"`
	// Format: string, required
	Format terra.StringValue `hcl:"format,attr" validate:"required"`
	// OutputSchemaVersion: string, required
	OutputSchemaVersion terra.StringValue `hcl:"output_schema_version,attr" validate:"required"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// StorageLensConfigurationDataExportS3BucketDestinationEncryption: optional
	Encryption *StorageLensConfigurationDataExportS3BucketDestinationEncryption `hcl:"encryption,block"`
}

type StorageLensConfigurationDataExportS3BucketDestinationAttributes

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

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) AccountId

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) Arn

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) Format

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) InternalRef

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) InternalTokens

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) InternalWithRef

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) OutputSchemaVersion

func (StorageLensConfigurationDataExportS3BucketDestinationAttributes) Prefix

type StorageLensConfigurationDataExportS3BucketDestinationEncryption

type StorageLensConfigurationDataExportS3BucketDestinationEncryption struct {
	// StorageLensConfigurationDataExport76990715: optional
	SseKms *StorageLensConfigurationDataExport76990715 `hcl:"sse_kms,block"`
	// StorageLensConfigurationDataExport4Bb2F4E8: min=0
	SseS3 []StorageLensConfigurationDataExport4Bb2F4E8 `hcl:"sse_s3,block" validate:"min=0"`
}

type StorageLensConfigurationDataExportS3BucketDestinationEncryptionAttributes

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

func (StorageLensConfigurationDataExportS3BucketDestinationEncryptionAttributes) InternalRef

func (StorageLensConfigurationDataExportS3BucketDestinationEncryptionAttributes) InternalTokens

func (StorageLensConfigurationDataExportS3BucketDestinationEncryptionAttributes) InternalWithRef

func (StorageLensConfigurationDataExportS3BucketDestinationEncryptionAttributes) SseKms

func (StorageLensConfigurationDataExportS3BucketDestinationEncryptionAttributes) SseS3

type StorageLensConfigurationDataExportS3BucketDestinationEncryptionState

type StorageLensConfigurationDataExportS3BucketDestinationEncryptionState struct {
	SseKms []StorageLensConfigurationDataExport76990715State `json:"sse_kms"`
	SseS3  []StorageLensConfigurationDataExport4Bb2F4E8State `json:"sse_s3"`
}

type StorageLensConfigurationDataExportS3BucketDestinationState

type StorageLensConfigurationDataExportS3BucketDestinationState struct {
	AccountId           string                                                                 `json:"account_id"`
	Arn                 string                                                                 `json:"arn"`
	Format              string                                                                 `json:"format"`
	OutputSchemaVersion string                                                                 `json:"output_schema_version"`
	Prefix              string                                                                 `json:"prefix"`
	Encryption          []StorageLensConfigurationDataExportS3BucketDestinationEncryptionState `json:"encryption"`
}

type StorageLensConfigurationDataExportState

type StorageLensConfigurationDataExportState struct {
	CloudWatchMetrics   []StorageLensConfigurationDataExportCloudWatchMetricsState   `json:"cloud_watch_metrics"`
	S3BucketDestination []StorageLensConfigurationDataExportS3BucketDestinationState `json:"s3_bucket_destination"`
}

type StorageLensConfigurationExclude

type StorageLensConfigurationExclude struct {
	// Buckets: set of string, optional
	Buckets terra.SetValue[terra.StringValue] `hcl:"buckets,attr"`
	// Regions: set of string, optional
	Regions terra.SetValue[terra.StringValue] `hcl:"regions,attr"`
}

type StorageLensConfigurationExcludeAttributes

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

func (StorageLensConfigurationExcludeAttributes) Buckets

func (StorageLensConfigurationExcludeAttributes) InternalRef

func (StorageLensConfigurationExcludeAttributes) InternalTokens

func (StorageLensConfigurationExcludeAttributes) InternalWithRef

func (StorageLensConfigurationExcludeAttributes) Regions

type StorageLensConfigurationExcludeState

type StorageLensConfigurationExcludeState struct {
	Buckets []string `json:"buckets"`
	Regions []string `json:"regions"`
}

type StorageLensConfigurationInclude

type StorageLensConfigurationInclude struct {
	// Buckets: set of string, optional
	Buckets terra.SetValue[terra.StringValue] `hcl:"buckets,attr"`
	// Regions: set of string, optional
	Regions terra.SetValue[terra.StringValue] `hcl:"regions,attr"`
}

type StorageLensConfigurationIncludeAttributes

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

func (StorageLensConfigurationIncludeAttributes) Buckets

func (StorageLensConfigurationIncludeAttributes) InternalRef

func (StorageLensConfigurationIncludeAttributes) InternalTokens

func (StorageLensConfigurationIncludeAttributes) InternalWithRef

func (StorageLensConfigurationIncludeAttributes) Regions

type StorageLensConfigurationIncludeState

type StorageLensConfigurationIncludeState struct {
	Buckets []string `json:"buckets"`
	Regions []string `json:"regions"`
}

type StorageLensConfigurationState

type StorageLensConfigurationState struct {
	Enabled      bool                                        `json:"enabled"`
	AccountLevel []StorageLensConfigurationAccountLevelState `json:"account_level"`
	AwsOrg       []StorageLensConfigurationAwsOrgState       `json:"aws_org"`
	DataExport   []StorageLensConfigurationDataExportState   `json:"data_export"`
	Exclude      []StorageLensConfigurationExcludeState      `json:"exclude"`
	Include      []StorageLensConfigurationIncludeState      `json:"include"`
}

Jump to

Keyboard shortcuts

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