vpcsubnet

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource() datasource.DataSource

NewDataSource initialises an images datasource

func NewResource

func NewResource() resource.Resource

NewResource is a helper function to simplify the provider implementation.

Types

type DataSource

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

func (*DataSource) Configure

Configure adds the provider configured client to the data source.

func (*DataSource) Metadata

func (*DataSource) Read

func (*DataSource) Schema

type DataSourceModel

type DataSourceModel struct {
	Description  types.String   `tfsdk:"description"`
	ID           types.String   `tfsdk:"id"`
	IPV4Block    types.String   `tfsdk:"ipv4_block"`
	IPV6Block    types.String   `tfsdk:"ipv6_block"`
	Name         types.String   `tfsdk:"name"`
	ProjectName  types.String   `tfsdk:"project_name"`
	VPCID        types.String   `tfsdk:"vpc_id"`
	VPCName      types.String   `tfsdk:"vpc_name"`
	TimeCreated  types.String   `tfsdk:"time_created"`
	TimeModified types.String   `tfsdk:"time_modified"`
	Timeouts     timeouts.Value `tfsdk:"timeouts"`
}

type Resource

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

Resource is the resource implementation.

func (*Resource) Configure

Configure adds the provider configured client to the data source.

func (*Resource) Create

func (r *Resource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

Create creates the resource and sets the initial Terraform state.

func (*Resource) Delete

func (r *Resource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

Delete deletes the resource and removes the Terraform state on success.

func (*Resource) ImportState

func (r *Resource) ImportState(
	ctx context.Context,
	req resource.ImportStateRequest,
	resp *resource.ImportStateResponse,
)

ImportState imports an existing VPC subnet into Terraform state.

func (*Resource) Metadata

Metadata returns the resource type name.

func (*Resource) Read

func (r *Resource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

Read refreshes the Terraform state with the latest data.

func (*Resource) Schema

Schema defines the schema for the resource.

func (*Resource) Update

func (r *Resource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

Update updates the resource and sets the updated Terraform state on success.

type ResourceModel

type ResourceModel struct {
	Description  types.String         `tfsdk:"description"`
	ID           types.String         `tfsdk:"id"`
	IPV4Block    cidrtypes.IPv4Prefix `tfsdk:"ipv4_block"`
	IPV6Block    cidrtypes.IPv6Prefix `tfsdk:"ipv6_block"`
	Name         types.String         `tfsdk:"name"`
	VPCID        types.String         `tfsdk:"vpc_id"`
	TimeCreated  types.String         `tfsdk:"time_created"`
	TimeModified types.String         `tfsdk:"time_modified"`
	Timeouts     timeouts.Value       `tfsdk:"timeouts"`
}

Jump to

Keyboard shortcuts

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