konnect.CloudGatewayNetwork
Explore with Pulumi AI
CloudGatewayNetwork Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myCloudgatewaynetwork = new konnect.CloudGatewayNetwork("myCloudgatewaynetwork", {
availabilityZones: ["..."],
cidrBlock: "10.0.0.0/8",
cloudGatewayProviderAccountId: "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
region: "us-east-2",
});
import pulumi
import pulumi_konnect as konnect
my_cloudgatewaynetwork = konnect.CloudGatewayNetwork("myCloudgatewaynetwork",
availability_zones=["..."],
cidr_block="10.0.0.0/8",
cloud_gateway_provider_account_id="929b2449-c69f-44c4-b6ad-9ecec6f811ae",
region="us-east-2")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v2/konnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := konnect.NewCloudGatewayNetwork(ctx, "myCloudgatewaynetwork", &konnect.CloudGatewayNetworkArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String("..."),
},
CidrBlock: pulumi.String("10.0.0.0/8"),
CloudGatewayProviderAccountId: pulumi.String("929b2449-c69f-44c4-b6ad-9ecec6f811ae"),
Region: pulumi.String("us-east-2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;
return await Deployment.RunAsync(() =>
{
var myCloudgatewaynetwork = new Konnect.CloudGatewayNetwork("myCloudgatewaynetwork", new()
{
AvailabilityZones = new[]
{
"...",
},
CidrBlock = "10.0.0.0/8",
CloudGatewayProviderAccountId = "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
Region = "us-east-2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.CloudGatewayNetwork;
import com.pulumi.konnect.CloudGatewayNetworkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myCloudgatewaynetwork = new CloudGatewayNetwork("myCloudgatewaynetwork", CloudGatewayNetworkArgs.builder()
.availabilityZones("...")
.cidrBlock("10.0.0.0/8")
.cloudGatewayProviderAccountId("929b2449-c69f-44c4-b6ad-9ecec6f811ae")
.region("us-east-2")
.build());
}
}
resources:
myCloudgatewaynetwork:
type: konnect:CloudGatewayNetwork
properties:
availabilityZones:
- '...'
cidrBlock: 10.0.0.0/8
cloudGatewayProviderAccountId: 929b2449-c69f-44c4-b6ad-9ecec6f811ae
region: us-east-2
Create CloudGatewayNetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudGatewayNetwork(name: string, args: CloudGatewayNetworkArgs, opts?: CustomResourceOptions);
@overload
def CloudGatewayNetwork(resource_name: str,
args: CloudGatewayNetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudGatewayNetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zones: Optional[Sequence[str]] = None,
cidr_block: Optional[str] = None,
cloud_gateway_provider_account_id: Optional[str] = None,
region: Optional[str] = None,
name: Optional[str] = None)
func NewCloudGatewayNetwork(ctx *Context, name string, args CloudGatewayNetworkArgs, opts ...ResourceOption) (*CloudGatewayNetwork, error)
public CloudGatewayNetwork(string name, CloudGatewayNetworkArgs args, CustomResourceOptions? opts = null)
public CloudGatewayNetwork(String name, CloudGatewayNetworkArgs args)
public CloudGatewayNetwork(String name, CloudGatewayNetworkArgs args, CustomResourceOptions options)
type: konnect:CloudGatewayNetwork
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CloudGatewayNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CloudGatewayNetworkArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CloudGatewayNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudGatewayNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudGatewayNetworkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cloudGatewayNetworkResource = new Konnect.CloudGatewayNetwork("cloudGatewayNetworkResource", new()
{
AvailabilityZones = new[]
{
"string",
},
CidrBlock = "string",
CloudGatewayProviderAccountId = "string",
Region = "string",
Name = "string",
});
example, err := konnect.NewCloudGatewayNetwork(ctx, "cloudGatewayNetworkResource", &konnect.CloudGatewayNetworkArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
CidrBlock: pulumi.String("string"),
CloudGatewayProviderAccountId: pulumi.String("string"),
Region: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cloudGatewayNetworkResource = new CloudGatewayNetwork("cloudGatewayNetworkResource", CloudGatewayNetworkArgs.builder()
.availabilityZones("string")
.cidrBlock("string")
.cloudGatewayProviderAccountId("string")
.region("string")
.name("string")
.build());
cloud_gateway_network_resource = konnect.CloudGatewayNetwork("cloudGatewayNetworkResource",
availability_zones=["string"],
cidr_block="string",
cloud_gateway_provider_account_id="string",
region="string",
name="string")
const cloudGatewayNetworkResource = new konnect.CloudGatewayNetwork("cloudGatewayNetworkResource", {
availabilityZones: ["string"],
cidrBlock: "string",
cloudGatewayProviderAccountId: "string",
region: "string",
name: "string",
});
type: konnect:CloudGatewayNetwork
properties:
availabilityZones:
- string
cidrBlock: string
cloudGatewayProviderAccountId: string
name: string
region: string
CloudGatewayNetwork Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudGatewayNetwork resource accepts the following input properties:
- Availability
Zones List<string> - List of availability zones that the network is attached to. Requires replacement if changed.
- Cidr
Block string - CIDR block configuration for the network. Requires replacement if changed.
- Cloud
Gateway stringProvider Account Id - Requires replacement if changed.
- Region string
- Region ID for cloud provider region. Requires replacement if changed.
- Name string
- Human-readable name of the network.
- Availability
Zones []string - List of availability zones that the network is attached to. Requires replacement if changed.
- Cidr
Block string - CIDR block configuration for the network. Requires replacement if changed.
- Cloud
Gateway stringProvider Account Id - Requires replacement if changed.
- Region string
- Region ID for cloud provider region. Requires replacement if changed.
- Name string
- Human-readable name of the network.
- availability
Zones List<String> - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr
Block String - CIDR block configuration for the network. Requires replacement if changed.
- cloud
Gateway StringProvider Account Id - Requires replacement if changed.
- region String
- Region ID for cloud provider region. Requires replacement if changed.
- name String
- Human-readable name of the network.
- availability
Zones string[] - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr
Block string - CIDR block configuration for the network. Requires replacement if changed.
- cloud
Gateway stringProvider Account Id - Requires replacement if changed.
- region string
- Region ID for cloud provider region. Requires replacement if changed.
- name string
- Human-readable name of the network.
- availability_
zones Sequence[str] - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr_
block str - CIDR block configuration for the network. Requires replacement if changed.
- cloud_
gateway_ strprovider_ account_ id - Requires replacement if changed.
- region str
- Region ID for cloud provider region. Requires replacement if changed.
- name str
- Human-readable name of the network.
- availability
Zones List<String> - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr
Block String - CIDR block configuration for the network. Requires replacement if changed.
- cloud
Gateway StringProvider Account Id - Requires replacement if changed.
- region String
- Region ID for cloud provider region. Requires replacement if changed.
- name String
- Human-readable name of the network.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudGatewayNetwork resource produces the following output properties:
- Configuration
Reference doubleCount - The number of configurations that reference this network.
- Created
At string - An RFC-3339 timestamp representation of network creation date.
- Default bool
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- Entity
Version double - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provider
Metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- Transit
Gateway doubleCount - The number of transit gateways attached to this network.
- Updated
At string - An RFC-3339 timestamp representation of network update date.
- Configuration
Reference float64Count - The number of configurations that reference this network.
- Created
At string - An RFC-3339 timestamp representation of network creation date.
- Default bool
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- Entity
Version float64 - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provider
Metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- Transit
Gateway float64Count - The number of transit gateways attached to this network.
- Updated
At string - An RFC-3339 timestamp representation of network update date.
- configuration
Reference DoubleCount - The number of configurations that reference this network.
- created
At String - An RFC-3339 timestamp representation of network creation date.
- default_ Boolean
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity
Version Double - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- id String
- The provider-assigned unique ID for this managed resource.
- provider
Metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- transit
Gateway DoubleCount - The number of transit gateways attached to this network.
- updated
At String - An RFC-3339 timestamp representation of network update date.
- configuration
Reference numberCount - The number of configurations that reference this network.
- created
At string - An RFC-3339 timestamp representation of network creation date.
- default boolean
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity
Version number - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- id string
- The provider-assigned unique ID for this managed resource.
- provider
Metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- transit
Gateway numberCount - The number of transit gateways attached to this network.
- updated
At string - An RFC-3339 timestamp representation of network update date.
- configuration_
reference_ floatcount - The number of configurations that reference this network.
- created_
at str - An RFC-3339 timestamp representation of network creation date.
- default bool
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity_
version float - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- id str
- The provider-assigned unique ID for this managed resource.
- provider_
metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- transit_
gateway_ floatcount - The number of transit gateways attached to this network.
- updated_
at str - An RFC-3339 timestamp representation of network update date.
- configuration
Reference NumberCount - The number of configurations that reference this network.
- created
At String - An RFC-3339 timestamp representation of network creation date.
- default Boolean
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity
Version Number - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- id String
- The provider-assigned unique ID for this managed resource.
- provider
Metadata Property Map - Metadata describing attributes returned by cloud-provider for the network.
- transit
Gateway NumberCount - The number of transit gateways attached to this network.
- updated
At String - An RFC-3339 timestamp representation of network update date.
Look up Existing CloudGatewayNetwork Resource
Get an existing CloudGatewayNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CloudGatewayNetworkState, opts?: CustomResourceOptions): CloudGatewayNetwork
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zones: Optional[Sequence[str]] = None,
cidr_block: Optional[str] = None,
cloud_gateway_provider_account_id: Optional[str] = None,
configuration_reference_count: Optional[float] = None,
created_at: Optional[str] = None,
default: Optional[bool] = None,
entity_version: Optional[float] = None,
name: Optional[str] = None,
provider_metadata: Optional[CloudGatewayNetworkProviderMetadataArgs] = None,
region: Optional[str] = None,
transit_gateway_count: Optional[float] = None,
updated_at: Optional[str] = None) -> CloudGatewayNetwork
func GetCloudGatewayNetwork(ctx *Context, name string, id IDInput, state *CloudGatewayNetworkState, opts ...ResourceOption) (*CloudGatewayNetwork, error)
public static CloudGatewayNetwork Get(string name, Input<string> id, CloudGatewayNetworkState? state, CustomResourceOptions? opts = null)
public static CloudGatewayNetwork get(String name, Output<String> id, CloudGatewayNetworkState state, CustomResourceOptions options)
resources: _: type: konnect:CloudGatewayNetwork get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Zones List<string> - List of availability zones that the network is attached to. Requires replacement if changed.
- Cidr
Block string - CIDR block configuration for the network. Requires replacement if changed.
- Cloud
Gateway stringProvider Account Id - Requires replacement if changed.
- Configuration
Reference doubleCount - The number of configurations that reference this network.
- Created
At string - An RFC-3339 timestamp representation of network creation date.
- Default bool
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- Entity
Version double - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- Name string
- Human-readable name of the network.
- Provider
Metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- Region string
- Region ID for cloud provider region. Requires replacement if changed.
- Transit
Gateway doubleCount - The number of transit gateways attached to this network.
- Updated
At string - An RFC-3339 timestamp representation of network update date.
- Availability
Zones []string - List of availability zones that the network is attached to. Requires replacement if changed.
- Cidr
Block string - CIDR block configuration for the network. Requires replacement if changed.
- Cloud
Gateway stringProvider Account Id - Requires replacement if changed.
- Configuration
Reference float64Count - The number of configurations that reference this network.
- Created
At string - An RFC-3339 timestamp representation of network creation date.
- Default bool
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- Entity
Version float64 - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- Name string
- Human-readable name of the network.
- Provider
Metadata CloudGateway Network Provider Metadata Args - Metadata describing attributes returned by cloud-provider for the network.
- Region string
- Region ID for cloud provider region. Requires replacement if changed.
- Transit
Gateway float64Count - The number of transit gateways attached to this network.
- Updated
At string - An RFC-3339 timestamp representation of network update date.
- availability
Zones List<String> - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr
Block String - CIDR block configuration for the network. Requires replacement if changed.
- cloud
Gateway StringProvider Account Id - Requires replacement if changed.
- configuration
Reference DoubleCount - The number of configurations that reference this network.
- created
At String - An RFC-3339 timestamp representation of network creation date.
- default_ Boolean
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity
Version Double - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- name String
- Human-readable name of the network.
- provider
Metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- region String
- Region ID for cloud provider region. Requires replacement if changed.
- transit
Gateway DoubleCount - The number of transit gateways attached to this network.
- updated
At String - An RFC-3339 timestamp representation of network update date.
- availability
Zones string[] - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr
Block string - CIDR block configuration for the network. Requires replacement if changed.
- cloud
Gateway stringProvider Account Id - Requires replacement if changed.
- configuration
Reference numberCount - The number of configurations that reference this network.
- created
At string - An RFC-3339 timestamp representation of network creation date.
- default boolean
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity
Version number - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- name string
- Human-readable name of the network.
- provider
Metadata CloudGateway Network Provider Metadata - Metadata describing attributes returned by cloud-provider for the network.
- region string
- Region ID for cloud provider region. Requires replacement if changed.
- transit
Gateway numberCount - The number of transit gateways attached to this network.
- updated
At string - An RFC-3339 timestamp representation of network update date.
- availability_
zones Sequence[str] - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr_
block str - CIDR block configuration for the network. Requires replacement if changed.
- cloud_
gateway_ strprovider_ account_ id - Requires replacement if changed.
- configuration_
reference_ floatcount - The number of configurations that reference this network.
- created_
at str - An RFC-3339 timestamp representation of network creation date.
- default bool
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity_
version float - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- name str
- Human-readable name of the network.
- provider_
metadata CloudGateway Network Provider Metadata Args - Metadata describing attributes returned by cloud-provider for the network.
- region str
- Region ID for cloud provider region. Requires replacement if changed.
- transit_
gateway_ floatcount - The number of transit gateways attached to this network.
- updated_
at str - An RFC-3339 timestamp representation of network update date.
- availability
Zones List<String> - List of availability zones that the network is attached to. Requires replacement if changed.
- cidr
Block String - CIDR block configuration for the network. Requires replacement if changed.
- cloud
Gateway StringProvider Account Id - Requires replacement if changed.
- configuration
Reference NumberCount - The number of configurations that reference this network.
- created
At String - An RFC-3339 timestamp representation of network creation date.
- default Boolean
- Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.
- entity
Version Number - Monotonically-increasing version count of the network, to indicate the order of updates to the network.
- name String
- Human-readable name of the network.
- provider
Metadata Property Map - Metadata describing attributes returned by cloud-provider for the network.
- region String
- Region ID for cloud provider region. Requires replacement if changed.
- transit
Gateway NumberCount - The number of transit gateways attached to this network.
- updated
At String - An RFC-3339 timestamp representation of network update date.
Supporting Types
CloudGatewayNetworkProviderMetadata, CloudGatewayNetworkProviderMetadataArgs
- subnet_
ids Sequence[str] - vpc_
id str
Import
$ pulumi import konnect:index/cloudGatewayNetwork:CloudGatewayNetwork my_konnect_cloud_gateway_network "36ae63d3-efd1-4bec-b246-62aa5d3f5695"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- konnect kong/terraform-provider-konnect
- License
- Notes
- This Pulumi package is based on the
konnect
Terraform Provider.