cloudwrapper

package
v5.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MPL-2.0 Imports: 36 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 cloud wrapper resources and data sources written using terraform-plugin-framework

func NewSubprovider

func NewSubprovider() *Subprovider

NewSubprovider returns a core Framework based sub provider

func (*Subprovider) DataSources

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

DataSources returns terraform data sources for cloudwrapper

func (*Subprovider) Resources

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

Resources returns terraform resources for cloudwrapper

Jump to

Keyboard shortcuts

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