cloudwrapper

package
v6.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cloudwrapper contains implementation for Akamai Terraform sub-provider responsible for cloud wrapper

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCloudWrapperLocation is returned when operation on cloudwrapper location fails
	ErrCloudWrapperLocation = errors.New("cloudwrapper location")
)

Functions

func NewActivationResource

func NewActivationResource() resource.Resource

NewActivationResource returns new cloud wrapper activation resource

func NewCapacitiesDataSource

func NewCapacitiesDataSource() datasource.DataSource

NewCapacitiesDataSource returns a new capacity data source

func NewConfigurationDataSource

func NewConfigurationDataSource() datasource.DataSource

NewConfigurationDataSource returns a new configuration data source

func NewConfigurationResource

func NewConfigurationResource() resource.Resource

NewConfigurationResource returns new cloud wrapper configuration resource

func NewConfigurationsDataSource

func NewConfigurationsDataSource() datasource.DataSource

NewConfigurationsDataSource returns configurations data source

func NewLocationDataSource

func NewLocationDataSource() datasource.DataSource

NewLocationDataSource returns a new location's data source

func NewLocationsDataSource

func NewLocationsDataSource() datasource.DataSource

NewLocationsDataSource returns a new location's data source

func NewPropertiesDataSource

func NewPropertiesDataSource() datasource.DataSource

NewPropertiesDataSource returns a new properties' data source

Types

type ConfigLocation

type ConfigLocation struct {
	Comments      types.String     `tfsdk:"comments"`
	TrafficTypeID types.Int64      `tfsdk:"traffic_type_id"`
	Capacity      LocationCapacity `tfsdk:"capacity"`
}

ConfigLocation represents location item

type ConfigurationResource

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

ConfigurationResource represents akamai_cloudwrapper_configuration resource

func (*ConfigurationResource) Configure

Configure implements resource.ResourceWithConfigure.

func (*ConfigurationResource) Create

Create implements resource.Resource.

func (*ConfigurationResource) Delete

Delete implements resource.Resource.

func (*ConfigurationResource) ImportState

ImportState implements resource.ResourceWithImportState.

func (*ConfigurationResource) Metadata

Metadata implements resource.Resource.

func (*ConfigurationResource) ModifyPlan

ModifyPlan implements resource.ResourceWithModifyPlan.

func (*ConfigurationResource) Read

Read implements resource.Resource.

func (*ConfigurationResource) Schema

Schema implements resource.Resource.

func (*ConfigurationResource) Update

Update implements resource.Resource.

type ConfigurationResourceModel

type ConfigurationResourceModel struct {
	ID                      types.Int64      `tfsdk:"id"`
	ConfigName              types.String     `tfsdk:"config_name"`
	ContractID              types.String     `tfsdk:"contract_id"`
	PropertyIDs             types.Set        `tfsdk:"property_ids"`
	Revision                types.String     `tfsdk:"revision"`
	Comments                types.String     `tfsdk:"comments"`
	RetainIdleObjects       types.Bool       `tfsdk:"retain_idle_objects"`
	NotificationEmails      types.Set        `tfsdk:"notification_emails"`
	CapacityAlertsThreshold types.Int64      `tfsdk:"capacity_alerts_threshold"`
	Locations               []ConfigLocation `tfsdk:"location"`
	Timeouts                timeouts.Value   `tfsdk:"timeouts"`
}

ConfigurationResourceModel is a model for akamai_cloudwrapper_configuration resource

type LocationCapacity

type LocationCapacity struct {
	Value types.Int64  `tfsdk:"value"`
	Unit  types.String `tfsdk:"unit"`
}

LocationCapacity holds capacity details for some location

type Subprovider

type Subprovider struct{}

Subprovider gathers cloudwrapper resources and data sources

func NewSubprovider

func NewSubprovider() *Subprovider

NewSubprovider returns a new cloudwrapper subprovider

func (*Subprovider) FrameworkDataSources

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

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

func (*Subprovider) FrameworkResources

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

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

func (*Subprovider) SDKDataSources

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

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

func (*Subprovider) SDKResources

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

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

Jump to

Keyboard shortcuts

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