provider_config

package
v0.117.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProviderState State

	UserAgent types.String
	SDK       *ycsdk.SDK
}

TODO: remove yandex.Config when it is not used

func (*Config) Credentials

func (c *Config) Credentials(ctx context.Context) (ycsdk.Credentials, error)

func (*Config) InitAndValidate

func (c *Config) InitAndValidate(ctx context.Context, terraformVersion string, sweeper bool) error

Client configures and returns a fully initialized Yandex.Cloud SDK

type State

type State struct {
	Endpoint                       types.String `tfsdk:"endpoint"`
	FolderID                       types.String `tfsdk:"folder_id"`
	CloudID                        types.String `tfsdk:"cloud_id"`
	OrganizationID                 types.String `tfsdk:"organization_id"`
	Zone                           types.String `tfsdk:"zone"`
	Token                          types.String `tfsdk:"token"`
	ServiceAccountKeyFileOrContent types.String `tfsdk:"service_account_key_file"`
	Plaintext                      types.Bool   `tfsdk:"plaintext"`
	Insecure                       types.Bool   `tfsdk:"insecure"`
	MaxRetries                     types.Int64  `tfsdk:"max_retries"`
	StorageEndpoint                types.String `tfsdk:"storage_endpoint"`
	YMQEndpoint                    types.String `tfsdk:"ymq_endpoint"`
	Region                         types.String `tfsdk:"region_id"`

	// These storage access keys are optional and only used when
	// storage data/resource doesn't have own access keys explicitly specified.
	StorageAccessKey types.String `tfsdk:"storage_access_key"`
	StorageSecretKey types.String `tfsdk:"storage_secret_key"`

	// These YMQ access keys are optional and only used when
	// Message Queue resource doesn't have own access keys explicitly specified.
	YMQAccessKey types.String `tfsdk:"ymq_access_key"`
	YMQSecretKey types.String `tfsdk:"ymq_secret_key"`

	SharedCredentialsFile types.String `tfsdk:"shared_credentials_file"`
	Profile               types.String `tfsdk:"profile"`
}

Jump to

Keyboard shortcuts

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