cloudaccess

package
v6.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package cloudaccess contains implementation for Akamai Terraform sub-provider responsible for cloud access manager

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCloudAccessKey is returned when operation on cloud access key fails
	ErrCloudAccessKey = errors.New("cloud access key")
	// ErrCloudAccessKeys is returned when operation on cloud access keys fails
	ErrCloudAccessKeys = errors.New("cloud access keys")
	// ErrCloudAccessKeyVersions is returned when operation on cloud access key versions fails
	ErrCloudAccessKeyVersions = errors.New("cloud access key versions")
	// ErrCloudAccessKeyProperties is returned when operation on cloud access key properties fails
	ErrCloudAccessKeyProperties = errors.New("cloud access key properties")
)

Functions

func Client

func Client(meta meta.Meta) cloudaccess.CloudAccess

Client returns the cloudaccess interface

func NewKeyDataSource

func NewKeyDataSource() datasource.DataSource

NewKeyDataSource returns a new location's data source

func NewKeyPropertiesDataSource

func NewKeyPropertiesDataSource() datasource.DataSource

NewKeyPropertiesDataSource returns a new cloud access key properties data source

func NewKeyResource

func NewKeyResource() resource.Resource

NewKeyResource returns new cloudaccess key resource

func NewKeyVersionsDataSource

func NewKeyVersionsDataSource() datasource.DataSource

NewKeyVersionsDataSource returns a new key versions data source

func NewKeysDataSource

func NewKeysDataSource() datasource.DataSource

NewKeysDataSource returns a new cloudaccess keys data source

Types

type Credentials

type Credentials struct {
	CloudAccessKeyID     types.String `tfsdk:"cloud_access_key_id"`
	CloudSecretAccessKey types.String `tfsdk:"cloud_secret_access_key"`
	PrimaryKey           types.Bool   `tfsdk:"primary_key"`
	Version              types.Int64  `tfsdk:"version"`
	VersionGUID          types.String `tfsdk:"version_guid"`
}

Credentials represent set of attributes for specific access key versions

type KeyResource

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

KeyResource represents akamai_cloudaccess_key resource

func (*KeyResource) Configure

Configure implements resource.ResourceWithConfigure.

func (*KeyResource) Create

Create implements resource.Resource.

func (*KeyResource) Delete

Delete implements resource.Resource.

func (*KeyResource) ImportState

ImportState implements resource.ResourceWithImportState.

func (*KeyResource) Metadata

Metadata implements resource.Resource.

func (*KeyResource) ModifyPlan

func (r *KeyResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, response *resource.ModifyPlanResponse)

ModifyPlan implements resource.ResourceWithModifyPlan

func (*KeyResource) Read

Read implements resource.Resource.

func (*KeyResource) Schema

Schema implements resource.Resource.

func (*KeyResource) Update

Update implements resource.Resource.

type KeyResourceModel

type KeyResourceModel struct {
	AccessKeyName        types.String   `tfsdk:"access_key_name"`
	AuthenticationMethod types.String   `tfsdk:"authentication_method"`
	ContractID           types.String   `tfsdk:"contract_id"`
	GroupID              types.Int64    `tfsdk:"group_id"`
	PrimaryGUID          types.String   `tfsdk:"primary_guid"`
	CredentialsA         *Credentials   `tfsdk:"credentials_a"`
	CredentialsB         *Credentials   `tfsdk:"credentials_b"`
	NetworkConfig        NetworkConfig  `tfsdk:"network_configuration"`
	AccessKeyUID         types.Int64    `tfsdk:"access_key_uid"`
	Timeouts             timeouts.Value `tfsdk:"timeouts"`
}

KeyResourceModel represents model of akamai_cloudaccess_key resource

type NetworkConfig

type NetworkConfig struct {
	AdditionalCDN   types.String `tfsdk:"additional_cdn"`
	SecurityNetwork types.String `tfsdk:"security_network"`
}

NetworkConfig represents set of attributes for network configuration

type Subprovider

type Subprovider struct{}

Subprovider gathers cloudaccess resources and data sources

func NewSubprovider

func NewSubprovider() *Subprovider

NewSubprovider returns a new cloudaccess subprovider

func (*Subprovider) FrameworkDataSources

func (p *Subprovider) FrameworkDataSources() []func() datasource.DataSource

FrameworkDataSources returns the cloudaccess data sources implemented using terraform-plugin-framework

func (*Subprovider) FrameworkResources

func (p *Subprovider) FrameworkResources() []func() resource.Resource

FrameworkResources returns the cloudaccess resources implemented using terraform-plugin-framework

func (*Subprovider) SDKDataSources

func (p *Subprovider) SDKDataSources() map[string]*schema.Resource

SDKDataSources returns the cloudaccess data sources implemented using terraform-plugin-sdk

func (*Subprovider) SDKResources

func (p *Subprovider) SDKResources() map[string]*schema.Resource

SDKResources returns the cloudaccess resources implemented using terraform-plugin-sdk

Jump to

Keyboard shortcuts

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