aws_mq_broker

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 {
	// ApplyImmediately: bool, optional
	ApplyImmediately terra.BoolValue `hcl:"apply_immediately,attr"`
	// AuthenticationStrategy: string, optional
	AuthenticationStrategy terra.StringValue `hcl:"authentication_strategy,attr"`
	// AutoMinorVersionUpgrade: bool, optional
	AutoMinorVersionUpgrade terra.BoolValue `hcl:"auto_minor_version_upgrade,attr"`
	// BrokerName: string, required
	BrokerName terra.StringValue `hcl:"broker_name,attr" validate:"required"`
	// DeploymentMode: string, optional
	DeploymentMode terra.StringValue `hcl:"deployment_mode,attr"`
	// EngineType: string, required
	EngineType terra.StringValue `hcl:"engine_type,attr" validate:"required"`
	// EngineVersion: string, required
	EngineVersion terra.StringValue `hcl:"engine_version,attr" validate:"required"`
	// HostInstanceType: string, required
	HostInstanceType terra.StringValue `hcl:"host_instance_type,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// PubliclyAccessible: bool, optional
	PubliclyAccessible terra.BoolValue `hcl:"publicly_accessible,attr"`
	// SecurityGroups: set of string, optional
	SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"`
	// StorageType: string, optional
	StorageType terra.StringValue `hcl:"storage_type,attr"`
	// SubnetIds: set of string, optional
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,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"`
	// Configuration: optional
	Configuration *Configuration `hcl:"configuration,block"`
	// EncryptionOptions: optional
	EncryptionOptions *EncryptionOptions `hcl:"encryption_options,block"`
	// LdapServerMetadata: optional
	LdapServerMetadata *LdapServerMetadata `hcl:"ldap_server_metadata,block"`
	// Logs: optional
	Logs *Logs `hcl:"logs,block"`
	// MaintenanceWindowStartTime: optional
	MaintenanceWindowStartTime *MaintenanceWindowStartTime `hcl:"maintenance_window_start_time,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// User: min=1
	User []User `hcl:"user,block" validate:"min=1"`
}

Args contains the configurations for aws_mq_broker.

type Configuration

type Configuration struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Revision: number, optional
	Revision terra.NumberValue `hcl:"revision,attr"`
}

type ConfigurationAttributes

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

func (ConfigurationAttributes) Id

func (ConfigurationAttributes) InternalRef

func (c ConfigurationAttributes) InternalRef() (terra.Reference, error)

func (ConfigurationAttributes) InternalTokens

func (c ConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigurationAttributes) InternalWithRef

func (ConfigurationAttributes) Revision

type ConfigurationState

type ConfigurationState struct {
	Id       string  `json:"id"`
	Revision float64 `json:"revision"`
}

type DataArgs

type DataArgs struct {
	// BrokerId: string, optional
	BrokerId terra.StringValue `hcl:"broker_id,attr"`
	// BrokerName: string, optional
	BrokerName terra.StringValue `hcl:"broker_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_mq_broker.

type DataConfigurationAttributes

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

func (DataConfigurationAttributes) Id

func (DataConfigurationAttributes) InternalRef

func (c DataConfigurationAttributes) InternalRef() (terra.Reference, error)

func (DataConfigurationAttributes) InternalTokens

func (c DataConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataConfigurationAttributes) InternalWithRef

func (DataConfigurationAttributes) Revision

type DataConfigurationState

type DataConfigurationState struct {
	Id       string  `json:"id"`
	Revision float64 `json:"revision"`
}

type DataEncryptionOptionsAttributes

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

func (DataEncryptionOptionsAttributes) InternalRef

func (DataEncryptionOptionsAttributes) InternalTokens

func (eo DataEncryptionOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataEncryptionOptionsAttributes) InternalWithRef

func (DataEncryptionOptionsAttributes) KmsKeyId

func (DataEncryptionOptionsAttributes) UseAwsOwnedKey

func (eo DataEncryptionOptionsAttributes) UseAwsOwnedKey() terra.BoolValue

type DataEncryptionOptionsState

type DataEncryptionOptionsState struct {
	KmsKeyId       string `json:"kms_key_id"`
	UseAwsOwnedKey bool   `json:"use_aws_owned_key"`
}

type DataInstancesAttributes

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

func (DataInstancesAttributes) ConsoleUrl

func (i DataInstancesAttributes) ConsoleUrl() terra.StringValue

func (DataInstancesAttributes) Endpoints

func (DataInstancesAttributes) InternalRef

func (i DataInstancesAttributes) InternalRef() (terra.Reference, error)

func (DataInstancesAttributes) InternalTokens

func (i DataInstancesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataInstancesAttributes) InternalWithRef

func (DataInstancesAttributes) IpAddress

type DataInstancesState

type DataInstancesState struct {
	ConsoleUrl string   `json:"console_url"`
	Endpoints  []string `json:"endpoints"`
	IpAddress  string   `json:"ip_address"`
}

type DataLdapServerMetadataAttributes

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

func (DataLdapServerMetadataAttributes) Hosts

func (DataLdapServerMetadataAttributes) InternalRef

func (DataLdapServerMetadataAttributes) InternalTokens

func (lsm DataLdapServerMetadataAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataLdapServerMetadataAttributes) InternalWithRef

func (DataLdapServerMetadataAttributes) RoleBase

func (DataLdapServerMetadataAttributes) RoleName

func (DataLdapServerMetadataAttributes) RoleSearchMatching

func (lsm DataLdapServerMetadataAttributes) RoleSearchMatching() terra.StringValue

func (DataLdapServerMetadataAttributes) RoleSearchSubtree

func (lsm DataLdapServerMetadataAttributes) RoleSearchSubtree() terra.BoolValue

func (DataLdapServerMetadataAttributes) ServiceAccountPassword

func (lsm DataLdapServerMetadataAttributes) ServiceAccountPassword() terra.StringValue

func (DataLdapServerMetadataAttributes) ServiceAccountUsername

func (lsm DataLdapServerMetadataAttributes) ServiceAccountUsername() terra.StringValue

func (DataLdapServerMetadataAttributes) UserBase

func (DataLdapServerMetadataAttributes) UserRoleName

func (DataLdapServerMetadataAttributes) UserSearchMatching

func (lsm DataLdapServerMetadataAttributes) UserSearchMatching() terra.StringValue

func (DataLdapServerMetadataAttributes) UserSearchSubtree

func (lsm DataLdapServerMetadataAttributes) UserSearchSubtree() terra.BoolValue

type DataLdapServerMetadataState

type DataLdapServerMetadataState struct {
	Hosts                  []string `json:"hosts"`
	RoleBase               string   `json:"role_base"`
	RoleName               string   `json:"role_name"`
	RoleSearchMatching     string   `json:"role_search_matching"`
	RoleSearchSubtree      bool     `json:"role_search_subtree"`
	ServiceAccountPassword string   `json:"service_account_password"`
	ServiceAccountUsername string   `json:"service_account_username"`
	UserBase               string   `json:"user_base"`
	UserRoleName           string   `json:"user_role_name"`
	UserSearchMatching     string   `json:"user_search_matching"`
	UserSearchSubtree      bool     `json:"user_search_subtree"`
}

type DataLogsAttributes

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

func (DataLogsAttributes) Audit

func (DataLogsAttributes) General

func (l DataLogsAttributes) General() terra.BoolValue

func (DataLogsAttributes) InternalRef

func (l DataLogsAttributes) InternalRef() (terra.Reference, error)

func (DataLogsAttributes) InternalTokens

func (l DataLogsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataLogsAttributes) InternalWithRef

func (l DataLogsAttributes) InternalWithRef(ref terra.Reference) DataLogsAttributes

type DataLogsState

type DataLogsState struct {
	Audit   string `json:"audit"`
	General bool   `json:"general"`
}

type DataMaintenanceWindowStartTimeAttributes

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

func (DataMaintenanceWindowStartTimeAttributes) DayOfWeek

func (DataMaintenanceWindowStartTimeAttributes) InternalRef

func (DataMaintenanceWindowStartTimeAttributes) InternalTokens

func (DataMaintenanceWindowStartTimeAttributes) InternalWithRef

func (DataMaintenanceWindowStartTimeAttributes) TimeOfDay

func (DataMaintenanceWindowStartTimeAttributes) TimeZone

type DataMaintenanceWindowStartTimeState

type DataMaintenanceWindowStartTimeState struct {
	DayOfWeek string `json:"day_of_week"`
	TimeOfDay string `json:"time_of_day"`
	TimeZone  string `json:"time_zone"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_mq_broker.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (amb *DataSource) Attributes() dataAwsMqBrokerAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (amb *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (amb *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (amb *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataUserAttributes

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

func (DataUserAttributes) ConsoleAccess

func (u DataUserAttributes) ConsoleAccess() terra.BoolValue

func (DataUserAttributes) Groups

func (DataUserAttributes) InternalRef

func (u DataUserAttributes) InternalRef() (terra.Reference, error)

func (DataUserAttributes) InternalTokens

func (u DataUserAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataUserAttributes) InternalWithRef

func (u DataUserAttributes) InternalWithRef(ref terra.Reference) DataUserAttributes

func (DataUserAttributes) Username

func (u DataUserAttributes) Username() terra.StringValue

type DataUserState

type DataUserState struct {
	ConsoleAccess bool     `json:"console_access"`
	Groups        []string `json:"groups"`
	Username      string   `json:"username"`
}

type EncryptionOptions

type EncryptionOptions struct {
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// UseAwsOwnedKey: bool, optional
	UseAwsOwnedKey terra.BoolValue `hcl:"use_aws_owned_key,attr"`
}

type EncryptionOptionsAttributes

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

func (EncryptionOptionsAttributes) InternalRef

func (eo EncryptionOptionsAttributes) InternalRef() (terra.Reference, error)

func (EncryptionOptionsAttributes) InternalTokens

func (eo EncryptionOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionOptionsAttributes) InternalWithRef

func (EncryptionOptionsAttributes) KmsKeyId

func (EncryptionOptionsAttributes) UseAwsOwnedKey

func (eo EncryptionOptionsAttributes) UseAwsOwnedKey() terra.BoolValue

type EncryptionOptionsState

type EncryptionOptionsState struct {
	KmsKeyId       string `json:"kms_key_id"`
	UseAwsOwnedKey bool   `json:"use_aws_owned_key"`
}

type InstancesAttributes

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

func (InstancesAttributes) ConsoleUrl

func (i InstancesAttributes) ConsoleUrl() terra.StringValue

func (InstancesAttributes) Endpoints

func (InstancesAttributes) InternalRef

func (i InstancesAttributes) InternalRef() (terra.Reference, error)

func (InstancesAttributes) InternalTokens

func (i InstancesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstancesAttributes) InternalWithRef

func (i InstancesAttributes) InternalWithRef(ref terra.Reference) InstancesAttributes

func (InstancesAttributes) IpAddress

func (i InstancesAttributes) IpAddress() terra.StringValue

type InstancesState

type InstancesState struct {
	ConsoleUrl string   `json:"console_url"`
	Endpoints  []string `json:"endpoints"`
	IpAddress  string   `json:"ip_address"`
}

type LdapServerMetadata

type LdapServerMetadata struct {
	// Hosts: list of string, optional
	Hosts terra.ListValue[terra.StringValue] `hcl:"hosts,attr"`
	// RoleBase: string, optional
	RoleBase terra.StringValue `hcl:"role_base,attr"`
	// RoleName: string, optional
	RoleName terra.StringValue `hcl:"role_name,attr"`
	// RoleSearchMatching: string, optional
	RoleSearchMatching terra.StringValue `hcl:"role_search_matching,attr"`
	// RoleSearchSubtree: bool, optional
	RoleSearchSubtree terra.BoolValue `hcl:"role_search_subtree,attr"`
	// ServiceAccountPassword: string, optional
	ServiceAccountPassword terra.StringValue `hcl:"service_account_password,attr"`
	// ServiceAccountUsername: string, optional
	ServiceAccountUsername terra.StringValue `hcl:"service_account_username,attr"`
	// UserBase: string, optional
	UserBase terra.StringValue `hcl:"user_base,attr"`
	// UserRoleName: string, optional
	UserRoleName terra.StringValue `hcl:"user_role_name,attr"`
	// UserSearchMatching: string, optional
	UserSearchMatching terra.StringValue `hcl:"user_search_matching,attr"`
	// UserSearchSubtree: bool, optional
	UserSearchSubtree terra.BoolValue `hcl:"user_search_subtree,attr"`
}

type LdapServerMetadataAttributes

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

func (LdapServerMetadataAttributes) Hosts

func (LdapServerMetadataAttributes) InternalRef

func (lsm LdapServerMetadataAttributes) InternalRef() (terra.Reference, error)

func (LdapServerMetadataAttributes) InternalTokens

func (lsm LdapServerMetadataAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LdapServerMetadataAttributes) InternalWithRef

func (LdapServerMetadataAttributes) RoleBase

func (LdapServerMetadataAttributes) RoleName

func (LdapServerMetadataAttributes) RoleSearchMatching

func (lsm LdapServerMetadataAttributes) RoleSearchMatching() terra.StringValue

func (LdapServerMetadataAttributes) RoleSearchSubtree

func (lsm LdapServerMetadataAttributes) RoleSearchSubtree() terra.BoolValue

func (LdapServerMetadataAttributes) ServiceAccountPassword

func (lsm LdapServerMetadataAttributes) ServiceAccountPassword() terra.StringValue

func (LdapServerMetadataAttributes) ServiceAccountUsername

func (lsm LdapServerMetadataAttributes) ServiceAccountUsername() terra.StringValue

func (LdapServerMetadataAttributes) UserBase

func (LdapServerMetadataAttributes) UserRoleName

func (lsm LdapServerMetadataAttributes) UserRoleName() terra.StringValue

func (LdapServerMetadataAttributes) UserSearchMatching

func (lsm LdapServerMetadataAttributes) UserSearchMatching() terra.StringValue

func (LdapServerMetadataAttributes) UserSearchSubtree

func (lsm LdapServerMetadataAttributes) UserSearchSubtree() terra.BoolValue

type LdapServerMetadataState

type LdapServerMetadataState struct {
	Hosts                  []string `json:"hosts"`
	RoleBase               string   `json:"role_base"`
	RoleName               string   `json:"role_name"`
	RoleSearchMatching     string   `json:"role_search_matching"`
	RoleSearchSubtree      bool     `json:"role_search_subtree"`
	ServiceAccountPassword string   `json:"service_account_password"`
	ServiceAccountUsername string   `json:"service_account_username"`
	UserBase               string   `json:"user_base"`
	UserRoleName           string   `json:"user_role_name"`
	UserSearchMatching     string   `json:"user_search_matching"`
	UserSearchSubtree      bool     `json:"user_search_subtree"`
}

type Logs

type Logs struct {
	// Audit: string, optional
	Audit terra.StringValue `hcl:"audit,attr"`
	// General: bool, optional
	General terra.BoolValue `hcl:"general,attr"`
}

type LogsAttributes

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

func (LogsAttributes) Audit

func (l LogsAttributes) Audit() terra.StringValue

func (LogsAttributes) General

func (l LogsAttributes) General() terra.BoolValue

func (LogsAttributes) InternalRef

func (l LogsAttributes) InternalRef() (terra.Reference, error)

func (LogsAttributes) InternalTokens

func (l LogsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LogsAttributes) InternalWithRef

func (l LogsAttributes) InternalWithRef(ref terra.Reference) LogsAttributes

type LogsState

type LogsState struct {
	Audit   string `json:"audit"`
	General bool   `json:"general"`
}

type MaintenanceWindowStartTime

type MaintenanceWindowStartTime struct {
	// DayOfWeek: string, required
	DayOfWeek terra.StringValue `hcl:"day_of_week,attr" validate:"required"`
	// TimeOfDay: string, required
	TimeOfDay terra.StringValue `hcl:"time_of_day,attr" validate:"required"`
	// TimeZone: string, required
	TimeZone terra.StringValue `hcl:"time_zone,attr" validate:"required"`
}

type MaintenanceWindowStartTimeAttributes

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

func (MaintenanceWindowStartTimeAttributes) DayOfWeek

func (MaintenanceWindowStartTimeAttributes) InternalRef

func (MaintenanceWindowStartTimeAttributes) InternalTokens

func (mwst MaintenanceWindowStartTimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaintenanceWindowStartTimeAttributes) InternalWithRef

func (MaintenanceWindowStartTimeAttributes) TimeOfDay

func (MaintenanceWindowStartTimeAttributes) TimeZone

type MaintenanceWindowStartTimeState

type MaintenanceWindowStartTimeState struct {
	DayOfWeek string `json:"day_of_week"`
	TimeOfDay string `json:"time_of_day"`
	TimeZone  string `json:"time_zone"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (amb *Resource) Attributes() awsMqBrokerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amb *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amb *Resource) State() (*awsMqBrokerState, bool)

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

func (*Resource) StateMust

func (amb *Resource) StateMust() *awsMqBrokerState

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

func (*Resource) Type

func (amb *Resource) Type() string

Type returns the Terraform object type for Resource.

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

type User

type User struct {
	// ConsoleAccess: bool, optional
	ConsoleAccess terra.BoolValue `hcl:"console_access,attr"`
	// Groups: set of string, optional
	Groups terra.SetValue[terra.StringValue] `hcl:"groups,attr"`
	// Password: string, required
	Password terra.StringValue `hcl:"password,attr" validate:"required"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type UserAttributes

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

func (UserAttributes) ConsoleAccess

func (u UserAttributes) ConsoleAccess() terra.BoolValue

func (UserAttributes) Groups

func (UserAttributes) InternalRef

func (u UserAttributes) InternalRef() (terra.Reference, error)

func (UserAttributes) InternalTokens

func (u UserAttributes) InternalTokens() (hclwrite.Tokens, error)

func (UserAttributes) InternalWithRef

func (u UserAttributes) InternalWithRef(ref terra.Reference) UserAttributes

func (UserAttributes) Password

func (u UserAttributes) Password() terra.StringValue

func (UserAttributes) Username

func (u UserAttributes) Username() terra.StringValue

type UserState

type UserState struct {
	ConsoleAccess bool     `json:"console_access"`
	Groups        []string `json:"groups"`
	Password      string   `json:"password"`
	Username      string   `json:"username"`
}

Jump to

Keyboard shortcuts

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