Documentation ¶
Overview ¶
Package cloudwrapper contains implementation for Akamai Terraform sub-provider responsible for cloud wrapper
Index ¶
- Variables
- func NewActivationResource() resource.Resource
- func NewCapacitiesDataSource() datasource.DataSource
- func NewConfigurationDataSource() datasource.DataSource
- func NewConfigurationResource() resource.Resource
- func NewConfigurationsDataSource() datasource.DataSource
- func NewLocationDataSource() datasource.DataSource
- func NewLocationsDataSource() datasource.DataSource
- func NewPropertiesDataSource() datasource.DataSource
- type ConfigLocation
- type ConfigurationResource
- func (r *ConfigurationResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *ConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ConfigurationResource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (*ConfigurationResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *ConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ConfigurationResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ConfigurationResourceModel
- type LocationCapacity
- type Subprovider
Constants ¶
This section is empty.
Variables ¶
var ( // ErrCloudWrapperLocation is returned when operation on cloudwrapper location fails ErrCloudWrapperLocation = errors.New("cloudwrapper location") )
Functions ¶
func NewActivationResource ¶
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 ¶
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 ¶
func (r *ConfigurationResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure implements resource.ResourceWithConfigure.
func (*ConfigurationResource) Create ¶
func (r *ConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*ConfigurationResource) Delete ¶
func (r *ConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*ConfigurationResource) ImportState ¶
func (r *ConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState implements resource.ResourceWithImportState.
func (*ConfigurationResource) Metadata ¶
func (r *ConfigurationResource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*ConfigurationResource) ModifyPlan ¶
func (*ConfigurationResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
ModifyPlan implements resource.ResourceWithModifyPlan.
func (*ConfigurationResource) Read ¶
func (r *ConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*ConfigurationResource) Schema ¶
func (r *ConfigurationResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*ConfigurationResource) Update ¶
func (r *ConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 ¶
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
Source Files ¶
- cloudwrapper.go
- cloudwrapper_errors.go
- data_akamai_cloudwrapper_capacities.go
- data_akamai_cloudwrapper_configuration.go
- data_akamai_cloudwrapper_configurations.go
- data_akamai_cloudwrapper_location.go
- data_akamai_cloudwrapper_locations.go
- data_akamai_cloudwrapper_properties.go
- provider.go
- resource_akamai_cloudwrapper_activation.go
- resource_akamai_cloudwrapper_configuration.go
- resource_akamai_cloudwrapper_configuration_model.go