organizationvpc

package
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrganizationVpcPeeringConnectionByIdStateTypeChoices

func OrganizationVpcPeeringConnectionByIdStateTypeChoices() []string

func OrganizationVpcPeeringConnectionStateTypeChoices

func OrganizationVpcPeeringConnectionStateTypeChoices() []string

func OrganizationVpcStateTypeChoices

func OrganizationVpcStateTypeChoices() []string

func VpcPeeringConnectionStateTypeChoices

func VpcPeeringConnectionStateTypeChoices() []string

func VpcPeeringConnectionTypeChoices

func VpcPeeringConnectionTypeChoices() []string

func VpcStateTypeChoices

func VpcStateTypeChoices() []string

func WarningTypeChoices

func WarningTypeChoices() []string

Types

type CloudIn

type CloudIn struct {
	CloudName   string `json:"cloud_name"`   // Target cloud
	NetworkCidr string `json:"network_cidr"` // IPv4 network range CIDR
}

type CloudOut

type CloudOut struct {
	CloudName   string `json:"cloud_name"`   // Target cloud
	NetworkCidr string `json:"network_cidr"` // IPv4 network range CIDR
}

type Handler

type Handler interface {
	// OrganizationVpcCreate [EXPERIMENTAL] Create organization VPC
	// POST /v1/organization/{organization_id}/vpcs
	// https://api.aiven.io/doc/#tag/Organization_Vpc/operation/OrganizationVpcCreate
	OrganizationVpcCreate(ctx context.Context, organizationId string, in *OrganizationVpcCreateIn) (*OrganizationVpcCreateOut, error)

	// OrganizationVpcDelete [EXPERIMENTAL] Delete organization VPC
	// DELETE /v1/organization/{organization_id}/vpcs/{organization_vpc_id}
	// https://api.aiven.io/doc/#tag/Organization_Vpc/operation/OrganizationVpcDelete
	OrganizationVpcDelete(ctx context.Context, organizationId string, organizationVpcId string) (*OrganizationVpcDeleteOut, error)

	// OrganizationVpcGet [EXPERIMENTAL] Get organization VPC
	// GET /v1/organization/{organization_id}/vpcs/{organization_vpc_id}
	// https://api.aiven.io/doc/#tag/Organization_Vpc/operation/OrganizationVpcGet
	OrganizationVpcGet(ctx context.Context, organizationId string, organizationVpcId string) (*OrganizationVpcGetOut, error)

	// OrganizationVpcList [EXPERIMENTAL] List organization VPCs
	// GET /v1/organization/{organization_id}/vpcs
	// https://api.aiven.io/doc/#tag/Organization_Vpc/operation/OrganizationVpcList
	OrganizationVpcList(ctx context.Context, organizationId string) ([]VpcOut, error)

	// OrganizationVpcPeeringConnectionCreate [EXPERIMENTAL] Create organization VPC peering
	// POST /v1/organization/{organization_id}/vpcs/{organization_vpc_id}/peering-connections
	// https://api.aiven.io/doc/#tag/Organization_Vpc/operation/OrganizationVpcPeeringConnectionCreate
	OrganizationVpcPeeringConnectionCreate(ctx context.Context, organizationId string, organizationVpcId string, in *OrganizationVpcPeeringConnectionCreateIn) (*OrganizationVpcPeeringConnectionCreateOut, error)

	// OrganizationVpcPeeringConnectionDeleteById [EXPERIMENTAL] Delete organization VPC peering
	// DELETE /v1/organization/{organization_id}/vpcs/{organization_vpc_id}/peering-connections/{peering_connection_id}
	// https://api.aiven.io/doc/#tag/Organization_Vpc/operation/OrganizationVpcPeeringConnectionDeleteById
	OrganizationVpcPeeringConnectionDeleteById(ctx context.Context, organizationId string, organizationVpcId string, peeringConnectionId string) (*OrganizationVpcPeeringConnectionDeleteByIdOut, error)
}

type OrganizationVpcCreateIn

type OrganizationVpcCreateIn struct {
	Clouds             []CloudIn             `json:"clouds"`                 // Clouds to create this VPC in
	DisplayName        *string               `json:"display_name,omitempty"` // User defined display name for this VPC
	PeeringConnections []PeeringConnectionIn `json:"peering_connections"`    // List of peering connection requests for the VPC
}

OrganizationVpcCreateIn OrganizationVpcCreateRequestBody

type OrganizationVpcCreateOut

type OrganizationVpcCreateOut struct {
	Clouds                             []CloudOut               `json:"clouds"`                                           // Clouds or clouds to create this VPC in
	CreateTime                         time.Time                `json:"create_time"`                                      // VPC creation timestamp
	DisplayName                        string                   `json:"display_name"`                                     // User defined display name for this VPC
	OrganizationId                     string                   `json:"organization_id"`                                  // Organization ID
	OrganizationVpcId                  string                   `json:"organization_vpc_id"`                              // Project VPC ID
	PeeringConnections                 []PeeringConnectionOut   `json:"peering_connections"`                              // List of peering connections
	PendingBuildOnlyPeeringConnections *string                  `json:"pending_build_only_peering_connections,omitempty"` // VPC rebuild is scheduled
	State                              OrganizationVpcStateType `json:"state"`                                            // Project VPC state
	UpdateTime                         time.Time                `json:"update_time"`                                      // Timestamp of last change to VPC
}

OrganizationVpcCreateOut OrganizationVpcCreateResponse

type OrganizationVpcDeleteOut

type OrganizationVpcDeleteOut struct {
	Clouds                             []CloudOut               `json:"clouds"`                                           // Clouds or clouds to create this VPC in
	CreateTime                         time.Time                `json:"create_time"`                                      // VPC creation timestamp
	DisplayName                        string                   `json:"display_name"`                                     // User defined display name for this VPC
	OrganizationId                     string                   `json:"organization_id"`                                  // Organization ID
	OrganizationVpcId                  string                   `json:"organization_vpc_id"`                              // Project VPC ID
	PeeringConnections                 []PeeringConnectionOut   `json:"peering_connections"`                              // List of peering connections
	PendingBuildOnlyPeeringConnections *string                  `json:"pending_build_only_peering_connections,omitempty"` // VPC rebuild is scheduled
	State                              OrganizationVpcStateType `json:"state"`                                            // Project VPC state
	UpdateTime                         time.Time                `json:"update_time"`                                      // Timestamp of last change to VPC
}

OrganizationVpcDeleteOut OrganizationVpcDeleteResponse

type OrganizationVpcGetOut

type OrganizationVpcGetOut struct {
	Clouds                             []CloudOut                               `json:"clouds"`                                           // Clouds or clouds to create this VPC in
	CreateTime                         time.Time                                `json:"create_time"`                                      // VPC creation timestamp
	DisplayName                        string                                   `json:"display_name"`                                     // User defined display name for this VPC
	OrganizationId                     string                                   `json:"organization_id"`                                  // Organization ID
	OrganizationVpcId                  string                                   `json:"organization_vpc_id"`                              // Project VPC ID
	PeeringConnections                 []OrganizationVpcGetPeeringConnectionOut `json:"peering_connections"`                              // List of peering connections
	PendingBuildOnlyPeeringConnections *string                                  `json:"pending_build_only_peering_connections,omitempty"` // VPC rebuild is scheduled
	State                              OrganizationVpcStateType                 `json:"state"`                                            // Project VPC state
	UpdateTime                         time.Time                                `json:"update_time"`                                      // Timestamp of last change to VPC
}

OrganizationVpcGetOut OrganizationVpcGetResponse

type OrganizationVpcGetPeeringConnectionOut

type OrganizationVpcGetPeeringConnectionOut struct {
	CreateTime               time.Time                     `json:"create_time"`                     // VPC peering connection creation timestamp
	PeerAzureAppId           string                        `json:"peer_azure_app_id"`               // Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet
	PeerAzureTenantId        string                        `json:"peer_azure_tenant_id"`            // Azure tenant id in UUID4 form
	PeerCloudAccount         string                        `json:"peer_cloud_account"`              // AWS account ID, GCP project ID, Azure subscription ID of the peered VPC, or string "upcloud" for UpCloud peering connections
	PeerRegion               *string                       `json:"peer_region,omitempty"`           // The peer VPC's region in AWS clouds. Always null in GCP, Azure, or UpCloud clouds
	PeerResourceGroup        string                        `json:"peer_resource_group"`             // Azure resource group name of the peered VPC
	PeerVpc                  string                        `json:"peer_vpc"`                        // AWS VPC ID, GCP VPC network name, Azure Virtual network name of the peered VPC, or UpCloud VPC ID
	PeeringConnectionId      *string                       `json:"peering_connection_id,omitempty"` // VPC peering connection ID
	State                    VpcPeeringConnectionStateType `json:"state"`                           // Project VPC peering connection state
	StateInfo                PeeringConnectionStateInfoOut `json:"state_info"`                      // State-specific help or error information
	UpdateTime               time.Time                     `json:"update_time"`                     // Timestamp of last change to the VPC peering connection
	UserPeerNetworkCidrs     []string                      `json:"user_peer_network_cidrs"`         // List of private IPv4 ranges to route through the peering connection
	VpcPeeringConnectionType VpcPeeringConnectionType      `json:"vpc_peering_connection_type"`     // Type of network connection from the VPC
}

type OrganizationVpcHandler

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

func NewHandler

func NewHandler(doer doer) OrganizationVpcHandler

func (*OrganizationVpcHandler) OrganizationVpcCreate

func (h *OrganizationVpcHandler) OrganizationVpcCreate(ctx context.Context, organizationId string, in *OrganizationVpcCreateIn) (*OrganizationVpcCreateOut, error)

func (*OrganizationVpcHandler) OrganizationVpcDelete

func (h *OrganizationVpcHandler) OrganizationVpcDelete(ctx context.Context, organizationId string, organizationVpcId string) (*OrganizationVpcDeleteOut, error)

func (*OrganizationVpcHandler) OrganizationVpcGet

func (h *OrganizationVpcHandler) OrganizationVpcGet(ctx context.Context, organizationId string, organizationVpcId string) (*OrganizationVpcGetOut, error)

func (*OrganizationVpcHandler) OrganizationVpcList

func (h *OrganizationVpcHandler) OrganizationVpcList(ctx context.Context, organizationId string) ([]VpcOut, error)

func (*OrganizationVpcHandler) OrganizationVpcPeeringConnectionCreate

func (h *OrganizationVpcHandler) OrganizationVpcPeeringConnectionCreate(ctx context.Context, organizationId string, organizationVpcId string, in *OrganizationVpcPeeringConnectionCreateIn) (*OrganizationVpcPeeringConnectionCreateOut, error)

func (*OrganizationVpcHandler) OrganizationVpcPeeringConnectionDeleteById

func (h *OrganizationVpcHandler) OrganizationVpcPeeringConnectionDeleteById(ctx context.Context, organizationId string, organizationVpcId string, peeringConnectionId string) (*OrganizationVpcPeeringConnectionDeleteByIdOut, error)

type OrganizationVpcPeeringConnectionByIdStateType

type OrganizationVpcPeeringConnectionByIdStateType string
const (
	OrganizationVpcPeeringConnectionByIdStateTypeActive                OrganizationVpcPeeringConnectionByIdStateType = "ACTIVE"
	OrganizationVpcPeeringConnectionByIdStateTypeApproved              OrganizationVpcPeeringConnectionByIdStateType = "APPROVED"
	OrganizationVpcPeeringConnectionByIdStateTypeApprovedPeerRequested OrganizationVpcPeeringConnectionByIdStateType = "APPROVED_PEER_REQUESTED"
	OrganizationVpcPeeringConnectionByIdStateTypeDeleted               OrganizationVpcPeeringConnectionByIdStateType = "DELETED"
	OrganizationVpcPeeringConnectionByIdStateTypeDeletedByPeer         OrganizationVpcPeeringConnectionByIdStateType = "DELETED_BY_PEER"
	OrganizationVpcPeeringConnectionByIdStateTypeDeleting              OrganizationVpcPeeringConnectionByIdStateType = "DELETING"
	OrganizationVpcPeeringConnectionByIdStateTypeError                 OrganizationVpcPeeringConnectionByIdStateType = "ERROR"
	OrganizationVpcPeeringConnectionByIdStateTypeInvalidSpecification  OrganizationVpcPeeringConnectionByIdStateType = "INVALID_SPECIFICATION"
	OrganizationVpcPeeringConnectionByIdStateTypePendingPeer           OrganizationVpcPeeringConnectionByIdStateType = "PENDING_PEER"
	OrganizationVpcPeeringConnectionByIdStateTypeRejectedByPeer        OrganizationVpcPeeringConnectionByIdStateType = "REJECTED_BY_PEER"
)

type OrganizationVpcPeeringConnectionCreateIn

type OrganizationVpcPeeringConnectionCreateIn struct {
	PeerAzureAppId       *string   `json:"peer_azure_app_id,omitempty"`       // Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet
	PeerAzureTenantId    *string   `json:"peer_azure_tenant_id,omitempty"`    // Azure tenant id in UUID4 form
	PeerCloudAccount     string    `json:"peer_cloud_account"`                // AWS account ID, GCP project ID, Azure subscription ID of the peered VPC, or string "upcloud" for UpCloud peering connections
	PeerRegion           *string   `json:"peer_region,omitempty"`             // The peer VPC's region on AWS. May be omitted or set to null if the peer is in the same region as the Aiven project VPC. Omit or set to null on GCP, Azure, or UpCloud.
	PeerResourceGroup    *string   `json:"peer_resource_group,omitempty"`     // Azure resource group name of the peered VPC
	PeerVpc              string    `json:"peer_vpc"`                          // AWS VPC ID, GCP VPC network name, Azure Virtual network name of the peered VPC, or UpCloud VPC ID
	UserPeerNetworkCidrs *[]string `json:"user_peer_network_cidrs,omitempty"` // List of private IPv4 ranges to route through the peering connection
}

OrganizationVpcPeeringConnectionCreateIn OrganizationVpcPeeringConnectionCreateRequestBody

type OrganizationVpcPeeringConnectionCreateOut

type OrganizationVpcPeeringConnectionCreateOut struct {
	CreateTime               time.Time                                 `json:"create_time"`                     // VPC peering connection creation timestamp
	PeerAzureAppId           string                                    `json:"peer_azure_app_id"`               // Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet
	PeerAzureTenantId        string                                    `json:"peer_azure_tenant_id"`            // Azure tenant id in UUID4 form
	PeerCloudAccount         string                                    `json:"peer_cloud_account"`              // AWS account ID, GCP project ID, Azure subscription ID of the peered VPC, or string "upcloud" for UpCloud peering connections
	PeerRegion               *string                                   `json:"peer_region,omitempty"`           // The peer VPC's region in AWS clouds. Always null in GCP, Azure, or UpCloud clouds
	PeerResourceGroup        string                                    `json:"peer_resource_group"`             // Azure resource group name of the peered VPC
	PeerVpc                  string                                    `json:"peer_vpc"`                        // AWS VPC ID, GCP VPC network name, Azure Virtual network name of the peered VPC, or UpCloud VPC ID
	PeeringConnectionId      *string                                   `json:"peering_connection_id,omitempty"` // VPC peering connection ID
	State                    OrganizationVpcPeeringConnectionStateType `json:"state"`                           // Project VPC peering connection state
	StateInfo                StateInfoOut                              `json:"state_info"`                      // State-specific help or error information
	UpdateTime               time.Time                                 `json:"update_time"`                     // Timestamp of last change to the VPC peering connection
	UserPeerNetworkCidrs     []string                                  `json:"user_peer_network_cidrs"`         // List of private IPv4 ranges to route through the peering connection
	VpcPeeringConnectionType VpcPeeringConnectionType                  `json:"vpc_peering_connection_type"`     // Type of network connection from the VPC
}

OrganizationVpcPeeringConnectionCreateOut OrganizationVpcPeeringConnectionCreateResponse

type OrganizationVpcPeeringConnectionDeleteByIdOut

type OrganizationVpcPeeringConnectionDeleteByIdOut struct {
	CreateTime               time.Time                                     `json:"create_time"`                     // VPC peering connection creation timestamp
	PeerAzureAppId           string                                        `json:"peer_azure_app_id"`               // Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet
	PeerAzureTenantId        string                                        `json:"peer_azure_tenant_id"`            // Azure tenant id in UUID4 form
	PeerCloudAccount         string                                        `json:"peer_cloud_account"`              // AWS account ID, GCP project ID, Azure subscription ID of the peered VPC, or string "upcloud" for UpCloud peering connections
	PeerRegion               *string                                       `json:"peer_region,omitempty"`           // The peer VPC's region in AWS clouds. Always null in GCP, Azure, or UpCloud clouds
	PeerResourceGroup        string                                        `json:"peer_resource_group"`             // Azure resource group name of the peered VPC
	PeerVpc                  string                                        `json:"peer_vpc"`                        // AWS VPC ID, GCP VPC network name, Azure Virtual network name of the peered VPC, or UpCloud VPC ID
	PeeringConnectionId      *string                                       `json:"peering_connection_id,omitempty"` // VPC peering connection ID
	State                    OrganizationVpcPeeringConnectionByIdStateType `json:"state"`                           // Project VPC peering connection state
	StateInfo                StateInfoOut                                  `json:"state_info"`                      // State-specific help or error information
	UpdateTime               time.Time                                     `json:"update_time"`                     // Timestamp of last change to the VPC peering connection
	UserPeerNetworkCidrs     []string                                      `json:"user_peer_network_cidrs"`         // List of private IPv4 ranges to route through the peering connection
	VpcPeeringConnectionType VpcPeeringConnectionType                      `json:"vpc_peering_connection_type"`     // Type of network connection from the VPC
}

OrganizationVpcPeeringConnectionDeleteByIdOut OrganizationVpcPeeringConnectionDeleteByIdResponse

type OrganizationVpcPeeringConnectionStateType

type OrganizationVpcPeeringConnectionStateType string
const (
	OrganizationVpcPeeringConnectionStateTypeActive                OrganizationVpcPeeringConnectionStateType = "ACTIVE"
	OrganizationVpcPeeringConnectionStateTypeApproved              OrganizationVpcPeeringConnectionStateType = "APPROVED"
	OrganizationVpcPeeringConnectionStateTypeApprovedPeerRequested OrganizationVpcPeeringConnectionStateType = "APPROVED_PEER_REQUESTED"
	OrganizationVpcPeeringConnectionStateTypeDeleted               OrganizationVpcPeeringConnectionStateType = "DELETED"
	OrganizationVpcPeeringConnectionStateTypeDeletedByPeer         OrganizationVpcPeeringConnectionStateType = "DELETED_BY_PEER"
	OrganizationVpcPeeringConnectionStateTypeDeleting              OrganizationVpcPeeringConnectionStateType = "DELETING"
	OrganizationVpcPeeringConnectionStateTypeError                 OrganizationVpcPeeringConnectionStateType = "ERROR"
	OrganizationVpcPeeringConnectionStateTypeInvalidSpecification  OrganizationVpcPeeringConnectionStateType = "INVALID_SPECIFICATION"
	OrganizationVpcPeeringConnectionStateTypePendingPeer           OrganizationVpcPeeringConnectionStateType = "PENDING_PEER"
	OrganizationVpcPeeringConnectionStateTypeRejectedByPeer        OrganizationVpcPeeringConnectionStateType = "REJECTED_BY_PEER"
)

type OrganizationVpcStateType

type OrganizationVpcStateType string
const (
	OrganizationVpcStateTypeActive   OrganizationVpcStateType = "ACTIVE"
	OrganizationVpcStateTypeApproved OrganizationVpcStateType = "APPROVED"
	OrganizationVpcStateTypeDeleted  OrganizationVpcStateType = "DELETED"
	OrganizationVpcStateTypeDeleting OrganizationVpcStateType = "DELETING"
)

type PeeringConnectionIn

type PeeringConnectionIn struct {
	PeerAzureAppId       *string   `json:"peer_azure_app_id,omitempty"`       // Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet
	PeerAzureTenantId    *string   `json:"peer_azure_tenant_id,omitempty"`    // Azure tenant id in UUID4 form
	PeerCloudAccount     string    `json:"peer_cloud_account"`                // AWS account ID, GCP project ID, Azure subscription ID of the peered VPC, or string "upcloud" for UpCloud peering connections
	PeerRegion           *string   `json:"peer_region,omitempty"`             // The peer VPC's region on AWS. May be omitted or set to null if the peer is in the same region as the Aiven project VPC. Omit or set to null on GCP, Azure, or UpCloud.
	PeerResourceGroup    *string   `json:"peer_resource_group,omitempty"`     // Azure resource group name of the peered VPC
	PeerVpc              string    `json:"peer_vpc"`                          // AWS VPC ID, GCP VPC network name, Azure Virtual network name of the peered VPC, or UpCloud VPC ID
	UserPeerNetworkCidrs *[]string `json:"user_peer_network_cidrs,omitempty"` // List of private IPv4 ranges to route through the peering connection
}

type PeeringConnectionOut

type PeeringConnectionOut struct {
	CreateTime               time.Time                     `json:"create_time"`                     // VPC peering connection creation timestamp
	PeerAzureAppId           string                        `json:"peer_azure_app_id"`               // Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet
	PeerAzureTenantId        string                        `json:"peer_azure_tenant_id"`            // Azure tenant id in UUID4 form
	PeerCloudAccount         string                        `json:"peer_cloud_account"`              // AWS account ID, GCP project ID, Azure subscription ID of the peered VPC, or string "upcloud" for UpCloud peering connections
	PeerRegion               *string                       `json:"peer_region,omitempty"`           // The peer VPC's region in AWS clouds. Always null in GCP, Azure, or UpCloud clouds
	PeerResourceGroup        string                        `json:"peer_resource_group"`             // Azure resource group name of the peered VPC
	PeerVpc                  string                        `json:"peer_vpc"`                        // AWS VPC ID, GCP VPC network name, Azure Virtual network name of the peered VPC, or UpCloud VPC ID
	PeeringConnectionId      *string                       `json:"peering_connection_id,omitempty"` // VPC peering connection ID
	State                    VpcPeeringConnectionStateType `json:"state"`                           // Project VPC peering connection state
	StateInfo                StateInfoOut                  `json:"state_info"`                      // State-specific help or error information
	UpdateTime               time.Time                     `json:"update_time"`                     // Timestamp of last change to the VPC peering connection
	UserPeerNetworkCidrs     []string                      `json:"user_peer_network_cidrs"`         // List of private IPv4 ranges to route through the peering connection
	VpcPeeringConnectionType VpcPeeringConnectionType      `json:"vpc_peering_connection_type"`     // Type of network connection from the VPC
}

type PeeringConnectionStateInfoOut

type PeeringConnectionStateInfoOut struct {
	AwsVpcPeeringConnectionId *string      `json:"aws_vpc_peering_connection_id,omitempty"`
	Message                   string       `json:"message"` // Human-readable information message
	ToProjectId               *string      `json:"to_project_id,omitempty"`
	ToVpcNetwork              *string      `json:"to_vpc_network,omitempty"`
	Type                      string       `json:"type"`               // Type of state information
	Warnings                  []WarningOut `json:"warnings,omitempty"` // List of warnings if any
}

PeeringConnectionStateInfoOut State-specific help or error information

type StateInfoOut

type StateInfoOut struct {
	Message  string       `json:"message"`            // Human-readable information message
	Type     string       `json:"type"`               // Type of state information
	Warnings []WarningOut `json:"warnings,omitempty"` // List of warnings if any
}

StateInfoOut State-specific help or error information

type VpcOut

type VpcOut struct {
	Clouds            []CloudOut   `json:"clouds"`              // Clouds or clouds to create this VPC in
	CreateTime        time.Time    `json:"create_time"`         // VPC creation timestamp
	DisplayName       string       `json:"display_name"`        // User defined display name for this VPC
	OrganizationId    string       `json:"organization_id"`     // Organization ID
	OrganizationVpcId string       `json:"organization_vpc_id"` // Project VPC ID
	State             VpcStateType `json:"state"`               // Project VPC state
	UpdateTime        time.Time    `json:"update_time"`         // Timestamp of last change to VPC
}

type VpcPeeringConnectionStateType

type VpcPeeringConnectionStateType string
const (
	VpcPeeringConnectionStateTypeActive                VpcPeeringConnectionStateType = "ACTIVE"
	VpcPeeringConnectionStateTypeApproved              VpcPeeringConnectionStateType = "APPROVED"
	VpcPeeringConnectionStateTypeApprovedPeerRequested VpcPeeringConnectionStateType = "APPROVED_PEER_REQUESTED"
	VpcPeeringConnectionStateTypeDeleted               VpcPeeringConnectionStateType = "DELETED"
	VpcPeeringConnectionStateTypeDeletedByPeer         VpcPeeringConnectionStateType = "DELETED_BY_PEER"
	VpcPeeringConnectionStateTypeDeleting              VpcPeeringConnectionStateType = "DELETING"
	VpcPeeringConnectionStateTypeError                 VpcPeeringConnectionStateType = "ERROR"
	VpcPeeringConnectionStateTypeInvalidSpecification  VpcPeeringConnectionStateType = "INVALID_SPECIFICATION"
	VpcPeeringConnectionStateTypePendingPeer           VpcPeeringConnectionStateType = "PENDING_PEER"
	VpcPeeringConnectionStateTypeRejectedByPeer        VpcPeeringConnectionStateType = "REJECTED_BY_PEER"
)

type VpcPeeringConnectionType

type VpcPeeringConnectionType string
const (
	VpcPeeringConnectionTypeAwsTgwVpcAttachment     VpcPeeringConnectionType = "aws-tgw-vpc-attachment"
	VpcPeeringConnectionTypeAwsVpcPeeringConnection VpcPeeringConnectionType = "aws-vpc-peering-connection"
	VpcPeeringConnectionTypeAzureVnetPeering        VpcPeeringConnectionType = "azure-vnet-peering"
	VpcPeeringConnectionTypeGoogleVpcPeering        VpcPeeringConnectionType = "google-vpc-peering"
	VpcPeeringConnectionTypeUpcloudVpcPeering       VpcPeeringConnectionType = "upcloud-vpc-peering"
)

type VpcStateType

type VpcStateType string
const (
	VpcStateTypeActive   VpcStateType = "ACTIVE"
	VpcStateTypeApproved VpcStateType = "APPROVED"
	VpcStateTypeDeleted  VpcStateType = "DELETED"
	VpcStateTypeDeleting VpcStateType = "DELETING"
)

type WarningOut

type WarningOut struct {
	ConflictingAwsAccountId              *string     `json:"conflicting_aws_account_id,omitempty"`                // AWS account id of conflicting VPC
	ConflictingAwsVpcId                  *string     `json:"conflicting_aws_vpc_id,omitempty"`                    // VPC id which is conflicting with the current one
	ConflictingAwsVpcPeeringConnectionId *string     `json:"conflicting_aws_vpc_peering_connection_id,omitempty"` // AWS VPC connection id which is conflicting with current VPC
	Message                              string      `json:"message"`                                             // Warning message to be shown to the user
	Type                                 WarningType `json:"type"`                                                // Type of warning
}

type WarningType

type WarningType string
const (
	WarningTypeOverlappingPeerVpcIpRanges WarningType = "overlapping-peer-vpc-ip-ranges"
	WarningTypeUpcloudPeeringInError      WarningType = "upcloud-peering-in-error"
)

Jump to

Keyboard shortcuts

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