1. Packages
  2. Konnect Provider
  3. API Docs
  4. GatewayPluginCors
konnect 2.5.0 published on Tuesday, Apr 15, 2025 by kong

konnect.GatewayPluginCors

Explore with Pulumi AI

GatewayPluginCors Resource

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.GatewayPluginCors;
import com.pulumi.konnect.GatewayPluginCorsArgs;
import com.pulumi.konnect.inputs.GatewayPluginCorsConfigArgs;
import com.pulumi.konnect.inputs.GatewayPluginCorsOrderingArgs;
import com.pulumi.konnect.inputs.GatewayPluginCorsOrderingAfterArgs;
import com.pulumi.konnect.inputs.GatewayPluginCorsOrderingBeforeArgs;
import com.pulumi.konnect.inputs.GatewayPluginCorsRouteArgs;
import com.pulumi.konnect.inputs.GatewayPluginCorsServiceArgs;
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 myGatewayplugincors = new GatewayPluginCors("myGatewayplugincors", GatewayPluginCorsArgs.builder()
            .config(GatewayPluginCorsConfigArgs.builder()
                .credentials(true)
                .exposed_headers("...")
                .headers("...")
                .max_age(8.8)
                .methods("DELETE")
                .origins("...")
                .preflight_continue(true)
                .private_network(true)
                .build())
            .controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
            .createdAt(3)
            .enabled(true)
            .gatewayPluginCorsId("...my_id...")
            .instanceName("...my_instance_name...")
            .ordering(GatewayPluginCorsOrderingArgs.builder()
                .after(GatewayPluginCorsOrderingAfterArgs.builder()
                    .access("...")
                    .build())
                .before(GatewayPluginCorsOrderingBeforeArgs.builder()
                    .access("...")
                    .build())
                .build())
            .protocols("grpcs")
            .route(GatewayPluginCorsRouteArgs.builder()
                .id("...my_id...")
                .build())
            .service(GatewayPluginCorsServiceArgs.builder()
                .id("...my_id...")
                .build())
            .tags("...")
            .updatedAt(2)
            .build());

    }
}
Copy
resources:
  myGatewayplugincors:
    type: konnect:GatewayPluginCors
    properties:
      config:
        credentials: true
        exposed_headers:
          - '...'
        headers:
          - '...'
        max_age: 8.8
        methods:
          - DELETE
        origins:
          - '...'
        preflight_continue: true
        private_network: true
      controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      createdAt: 3
      enabled: true
      gatewayPluginCorsId: '...my_id...'
      instanceName: '...my_instance_name...'
      ordering:
        after:
          access:
            - '...'
        before:
          access:
            - '...'
      protocols:
        - grpcs
      route:
        id: '...my_id...'
      service:
        id: '...my_id...'
      tags:
        - '...'
      updatedAt: 2
Copy

Create GatewayPluginCors Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GatewayPluginCors(name: string, args: GatewayPluginCorsArgs, opts?: CustomResourceOptions);
@overload
def GatewayPluginCors(resource_name: str,
                      args: GatewayPluginCorsArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def GatewayPluginCors(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      control_plane_id: Optional[str] = None,
                      config: Optional[GatewayPluginCorsConfigArgs] = None,
                      created_at: Optional[float] = None,
                      enabled: Optional[bool] = None,
                      gateway_plugin_cors_id: Optional[str] = None,
                      instance_name: Optional[str] = None,
                      ordering: Optional[GatewayPluginCorsOrderingArgs] = None,
                      protocols: Optional[Sequence[str]] = None,
                      route: Optional[GatewayPluginCorsRouteArgs] = None,
                      service: Optional[GatewayPluginCorsServiceArgs] = None,
                      tags: Optional[Sequence[str]] = None,
                      updated_at: Optional[float] = None)
func NewGatewayPluginCors(ctx *Context, name string, args GatewayPluginCorsArgs, opts ...ResourceOption) (*GatewayPluginCors, error)
public GatewayPluginCors(string name, GatewayPluginCorsArgs args, CustomResourceOptions? opts = null)
public GatewayPluginCors(String name, GatewayPluginCorsArgs args)
public GatewayPluginCors(String name, GatewayPluginCorsArgs args, CustomResourceOptions options)
type: konnect:GatewayPluginCors
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GatewayPluginCorsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GatewayPluginCorsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GatewayPluginCorsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GatewayPluginCorsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GatewayPluginCorsArgs
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 gatewayPluginCorsResource = new Konnect.GatewayPluginCors("gatewayPluginCorsResource", new()
{
    ControlPlaneId = "string",
    Config = new Konnect.Inputs.GatewayPluginCorsConfigArgs
    {
        Credentials = false,
        ExposedHeaders = new[]
        {
            "string",
        },
        Headers = new[]
        {
            "string",
        },
        MaxAge = 0,
        Methods = new[]
        {
            "string",
        },
        Origins = new[]
        {
            "string",
        },
        PreflightContinue = false,
        PrivateNetwork = false,
    },
    CreatedAt = 0,
    Enabled = false,
    GatewayPluginCorsId = "string",
    InstanceName = "string",
    Ordering = new Konnect.Inputs.GatewayPluginCorsOrderingArgs
    {
        After = new Konnect.Inputs.GatewayPluginCorsOrderingAfterArgs
        {
            Accesses = new[]
            {
                "string",
            },
        },
        Before = new Konnect.Inputs.GatewayPluginCorsOrderingBeforeArgs
        {
            Accesses = new[]
            {
                "string",
            },
        },
    },
    Protocols = new[]
    {
        "string",
    },
    Route = new Konnect.Inputs.GatewayPluginCorsRouteArgs
    {
        Id = "string",
    },
    Service = new Konnect.Inputs.GatewayPluginCorsServiceArgs
    {
        Id = "string",
    },
    Tags = new[]
    {
        "string",
    },
    UpdatedAt = 0,
});
Copy
example, err := konnect.NewGatewayPluginCors(ctx, "gatewayPluginCorsResource", &konnect.GatewayPluginCorsArgs{
ControlPlaneId: pulumi.String("string"),
Config: &.GatewayPluginCorsConfigArgs{
Credentials: pulumi.Bool(false),
ExposedHeaders: pulumi.StringArray{
pulumi.String("string"),
},
Headers: pulumi.StringArray{
pulumi.String("string"),
},
MaxAge: pulumi.Float64(0),
Methods: pulumi.StringArray{
pulumi.String("string"),
},
Origins: pulumi.StringArray{
pulumi.String("string"),
},
PreflightContinue: pulumi.Bool(false),
PrivateNetwork: pulumi.Bool(false),
},
CreatedAt: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
GatewayPluginCorsId: pulumi.String("string"),
InstanceName: pulumi.String("string"),
Ordering: &.GatewayPluginCorsOrderingArgs{
After: &.GatewayPluginCorsOrderingAfterArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
Before: &.GatewayPluginCorsOrderingBeforeArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
Route: &.GatewayPluginCorsRouteArgs{
Id: pulumi.String("string"),
},
Service: &.GatewayPluginCorsServiceArgs{
Id: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UpdatedAt: pulumi.Float64(0),
})
Copy
var gatewayPluginCorsResource = new GatewayPluginCors("gatewayPluginCorsResource", GatewayPluginCorsArgs.builder()
    .controlPlaneId("string")
    .config(GatewayPluginCorsConfigArgs.builder()
        .credentials(false)
        .exposedHeaders("string")
        .headers("string")
        .maxAge(0)
        .methods("string")
        .origins("string")
        .preflightContinue(false)
        .privateNetwork(false)
        .build())
    .createdAt(0)
    .enabled(false)
    .gatewayPluginCorsId("string")
    .instanceName("string")
    .ordering(GatewayPluginCorsOrderingArgs.builder()
        .after(GatewayPluginCorsOrderingAfterArgs.builder()
            .accesses("string")
            .build())
        .before(GatewayPluginCorsOrderingBeforeArgs.builder()
            .accesses("string")
            .build())
        .build())
    .protocols("string")
    .route(GatewayPluginCorsRouteArgs.builder()
        .id("string")
        .build())
    .service(GatewayPluginCorsServiceArgs.builder()
        .id("string")
        .build())
    .tags("string")
    .updatedAt(0)
    .build());
Copy
gateway_plugin_cors_resource = konnect.GatewayPluginCors("gatewayPluginCorsResource",
    control_plane_id="string",
    config={
        "credentials": False,
        "exposed_headers": ["string"],
        "headers": ["string"],
        "max_age": 0,
        "methods": ["string"],
        "origins": ["string"],
        "preflight_continue": False,
        "private_network": False,
    },
    created_at=0,
    enabled=False,
    gateway_plugin_cors_id="string",
    instance_name="string",
    ordering={
        "after": {
            "accesses": ["string"],
        },
        "before": {
            "accesses": ["string"],
        },
    },
    protocols=["string"],
    route={
        "id": "string",
    },
    service={
        "id": "string",
    },
    tags=["string"],
    updated_at=0)
Copy
const gatewayPluginCorsResource = new konnect.GatewayPluginCors("gatewayPluginCorsResource", {
    controlPlaneId: "string",
    config: {
        credentials: false,
        exposedHeaders: ["string"],
        headers: ["string"],
        maxAge: 0,
        methods: ["string"],
        origins: ["string"],
        preflightContinue: false,
        privateNetwork: false,
    },
    createdAt: 0,
    enabled: false,
    gatewayPluginCorsId: "string",
    instanceName: "string",
    ordering: {
        after: {
            accesses: ["string"],
        },
        before: {
            accesses: ["string"],
        },
    },
    protocols: ["string"],
    route: {
        id: "string",
    },
    service: {
        id: "string",
    },
    tags: ["string"],
    updatedAt: 0,
});
Copy
type: konnect:GatewayPluginCors
properties:
    config:
        credentials: false
        exposedHeaders:
            - string
        headers:
            - string
        maxAge: 0
        methods:
            - string
        origins:
            - string
        preflightContinue: false
        privateNetwork: false
    controlPlaneId: string
    createdAt: 0
    enabled: false
    gatewayPluginCorsId: string
    instanceName: string
    ordering:
        after:
            accesses:
                - string
        before:
            accesses:
                - string
    protocols:
        - string
    route:
        id: string
    service:
        id: string
    tags:
        - string
    updatedAt: 0
Copy

GatewayPluginCors 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 GatewayPluginCors resource accepts the following input properties:

ControlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
Config GatewayPluginCorsConfig
CreatedAt double
Unix epoch when the resource was created.
Enabled bool
Whether the plugin is applied.
GatewayPluginCorsId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginCorsOrdering
Protocols List<string>
A set of strings representing HTTP protocols.
Route GatewayPluginCorsRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginCorsService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags List<string>
An optional set of strings associated with the Plugin for grouping and filtering.
UpdatedAt double
Unix epoch when the resource was last updated.
ControlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
Config GatewayPluginCorsConfigArgs
CreatedAt float64
Unix epoch when the resource was created.
Enabled bool
Whether the plugin is applied.
GatewayPluginCorsId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginCorsOrderingArgs
Protocols []string
A set of strings representing HTTP protocols.
Route GatewayPluginCorsRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginCorsServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags []string
An optional set of strings associated with the Plugin for grouping and filtering.
UpdatedAt float64
Unix epoch when the resource was last updated.
controlPlaneId This property is required. String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
config GatewayPluginCorsConfig
createdAt Double
Unix epoch when the resource was created.
enabled Boolean
Whether the plugin is applied.
gatewayPluginCorsId String
The ID of this resource.
instanceName String
ordering GatewayPluginCorsOrdering
protocols List<String>
A set of strings representing HTTP protocols.
route GatewayPluginCorsRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginCorsService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt Double
Unix epoch when the resource was last updated.
controlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
config GatewayPluginCorsConfig
createdAt number
Unix epoch when the resource was created.
enabled boolean
Whether the plugin is applied.
gatewayPluginCorsId string
The ID of this resource.
instanceName string
ordering GatewayPluginCorsOrdering
protocols string[]
A set of strings representing HTTP protocols.
route GatewayPluginCorsRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginCorsService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags string[]
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt number
Unix epoch when the resource was last updated.
control_plane_id This property is required. str
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
config GatewayPluginCorsConfigArgs
created_at float
Unix epoch when the resource was created.
enabled bool
Whether the plugin is applied.
gateway_plugin_cors_id str
The ID of this resource.
instance_name str
ordering GatewayPluginCorsOrderingArgs
protocols Sequence[str]
A set of strings representing HTTP protocols.
route GatewayPluginCorsRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginCorsServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags Sequence[str]
An optional set of strings associated with the Plugin for grouping and filtering.
updated_at float
Unix epoch when the resource was last updated.
controlPlaneId This property is required. String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
config Property Map
createdAt Number
Unix epoch when the resource was created.
enabled Boolean
Whether the plugin is applied.
gatewayPluginCorsId String
The ID of this resource.
instanceName String
ordering Property Map
protocols List<String>
A set of strings representing HTTP protocols.
route Property Map
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service Property Map
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt Number
Unix epoch when the resource was last updated.

Outputs

All input properties are implicitly available as output properties. Additionally, the GatewayPluginCors resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing GatewayPluginCors Resource

Get an existing GatewayPluginCors 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?: GatewayPluginCorsState, opts?: CustomResourceOptions): GatewayPluginCors
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config: Optional[GatewayPluginCorsConfigArgs] = None,
        control_plane_id: Optional[str] = None,
        created_at: Optional[float] = None,
        enabled: Optional[bool] = None,
        gateway_plugin_cors_id: Optional[str] = None,
        instance_name: Optional[str] = None,
        ordering: Optional[GatewayPluginCorsOrderingArgs] = None,
        protocols: Optional[Sequence[str]] = None,
        route: Optional[GatewayPluginCorsRouteArgs] = None,
        service: Optional[GatewayPluginCorsServiceArgs] = None,
        tags: Optional[Sequence[str]] = None,
        updated_at: Optional[float] = None) -> GatewayPluginCors
func GetGatewayPluginCors(ctx *Context, name string, id IDInput, state *GatewayPluginCorsState, opts ...ResourceOption) (*GatewayPluginCors, error)
public static GatewayPluginCors Get(string name, Input<string> id, GatewayPluginCorsState? state, CustomResourceOptions? opts = null)
public static GatewayPluginCors get(String name, Output<String> id, GatewayPluginCorsState state, CustomResourceOptions options)
resources:  _:    type: konnect:GatewayPluginCors    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Config GatewayPluginCorsConfig
ControlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CreatedAt double
Unix epoch when the resource was created.
Enabled bool
Whether the plugin is applied.
GatewayPluginCorsId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginCorsOrdering
Protocols List<string>
A set of strings representing HTTP protocols.
Route GatewayPluginCorsRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginCorsService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags List<string>
An optional set of strings associated with the Plugin for grouping and filtering.
UpdatedAt double
Unix epoch when the resource was last updated.
Config GatewayPluginCorsConfigArgs
ControlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CreatedAt float64
Unix epoch when the resource was created.
Enabled bool
Whether the plugin is applied.
GatewayPluginCorsId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginCorsOrderingArgs
Protocols []string
A set of strings representing HTTP protocols.
Route GatewayPluginCorsRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginCorsServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags []string
An optional set of strings associated with the Plugin for grouping and filtering.
UpdatedAt float64
Unix epoch when the resource was last updated.
config GatewayPluginCorsConfig
controlPlaneId String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt Double
Unix epoch when the resource was created.
enabled Boolean
Whether the plugin is applied.
gatewayPluginCorsId String
The ID of this resource.
instanceName String
ordering GatewayPluginCorsOrdering
protocols List<String>
A set of strings representing HTTP protocols.
route GatewayPluginCorsRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginCorsService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt Double
Unix epoch when the resource was last updated.
config GatewayPluginCorsConfig
controlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt number
Unix epoch when the resource was created.
enabled boolean
Whether the plugin is applied.
gatewayPluginCorsId string
The ID of this resource.
instanceName string
ordering GatewayPluginCorsOrdering
protocols string[]
A set of strings representing HTTP protocols.
route GatewayPluginCorsRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginCorsService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags string[]
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt number
Unix epoch when the resource was last updated.
config GatewayPluginCorsConfigArgs
control_plane_id str
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
created_at float
Unix epoch when the resource was created.
enabled bool
Whether the plugin is applied.
gateway_plugin_cors_id str
The ID of this resource.
instance_name str
ordering GatewayPluginCorsOrderingArgs
protocols Sequence[str]
A set of strings representing HTTP protocols.
route GatewayPluginCorsRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginCorsServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags Sequence[str]
An optional set of strings associated with the Plugin for grouping and filtering.
updated_at float
Unix epoch when the resource was last updated.
config Property Map
controlPlaneId String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt Number
Unix epoch when the resource was created.
enabled Boolean
Whether the plugin is applied.
gatewayPluginCorsId String
The ID of this resource.
instanceName String
ordering Property Map
protocols List<String>
A set of strings representing HTTP protocols.
route Property Map
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service Property Map
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt Number
Unix epoch when the resource was last updated.

Supporting Types

GatewayPluginCorsConfig
, GatewayPluginCorsConfigArgs

Credentials bool
Flag to determine whether the Access-Control-Allow-Credentials header should be sent with true as the value.
ExposedHeaders List<string>
Value for the Access-Control-Expose-Headers header. If not specified, no custom headers are exposed.
Headers List<string>
Value for the Access-Control-Allow-Headers header.
MaxAge double
Indicates how long the results of the preflight request can be cached, in seconds.
Methods List<string>
'Value for the Access-Control-Allow-Methods header. Available options include GET, HEAD, PUT, PATCH, POST, DELETE, OPTIONS, TRACE, CONNECT. By default, all options are allowed.'
Origins List<string>
List of allowed domains for the Access-Control-Allow-Origin header. If you want to allow all origins, add * as a single value to this configuration field. The accepted values can either be flat strings or PCRE regexes.
PreflightContinue bool
A boolean value that instructs the plugin to proxy the OPTIONS preflight request to the Upstream service.
PrivateNetwork bool
Flag to determine whether the Access-Control-Allow-Private-Network header should be sent with true as the value.
Credentials bool
Flag to determine whether the Access-Control-Allow-Credentials header should be sent with true as the value.
ExposedHeaders []string
Value for the Access-Control-Expose-Headers header. If not specified, no custom headers are exposed.
Headers []string
Value for the Access-Control-Allow-Headers header.
MaxAge float64
Indicates how long the results of the preflight request can be cached, in seconds.
Methods []string
'Value for the Access-Control-Allow-Methods header. Available options include GET, HEAD, PUT, PATCH, POST, DELETE, OPTIONS, TRACE, CONNECT. By default, all options are allowed.'
Origins []string
List of allowed domains for the Access-Control-Allow-Origin header. If you want to allow all origins, add * as a single value to this configuration field. The accepted values can either be flat strings or PCRE regexes.
PreflightContinue bool
A boolean value that instructs the plugin to proxy the OPTIONS preflight request to the Upstream service.
PrivateNetwork bool
Flag to determine whether the Access-Control-Allow-Private-Network header should be sent with true as the value.
credentials Boolean
Flag to determine whether the Access-Control-Allow-Credentials header should be sent with true as the value.
exposedHeaders List<String>
Value for the Access-Control-Expose-Headers header. If not specified, no custom headers are exposed.
headers List<String>
Value for the Access-Control-Allow-Headers header.
maxAge Double
Indicates how long the results of the preflight request can be cached, in seconds.
methods List<String>
'Value for the Access-Control-Allow-Methods header. Available options include GET, HEAD, PUT, PATCH, POST, DELETE, OPTIONS, TRACE, CONNECT. By default, all options are allowed.'
origins List<String>
List of allowed domains for the Access-Control-Allow-Origin header. If you want to allow all origins, add * as a single value to this configuration field. The accepted values can either be flat strings or PCRE regexes.
preflightContinue Boolean
A boolean value that instructs the plugin to proxy the OPTIONS preflight request to the Upstream service.
privateNetwork Boolean
Flag to determine whether the Access-Control-Allow-Private-Network header should be sent with true as the value.
credentials boolean
Flag to determine whether the Access-Control-Allow-Credentials header should be sent with true as the value.
exposedHeaders string[]
Value for the Access-Control-Expose-Headers header. If not specified, no custom headers are exposed.
headers string[]
Value for the Access-Control-Allow-Headers header.
maxAge number
Indicates how long the results of the preflight request can be cached, in seconds.
methods string[]
'Value for the Access-Control-Allow-Methods header. Available options include GET, HEAD, PUT, PATCH, POST, DELETE, OPTIONS, TRACE, CONNECT. By default, all options are allowed.'
origins string[]
List of allowed domains for the Access-Control-Allow-Origin header. If you want to allow all origins, add * as a single value to this configuration field. The accepted values can either be flat strings or PCRE regexes.
preflightContinue boolean
A boolean value that instructs the plugin to proxy the OPTIONS preflight request to the Upstream service.
privateNetwork boolean
Flag to determine whether the Access-Control-Allow-Private-Network header should be sent with true as the value.
credentials bool
Flag to determine whether the Access-Control-Allow-Credentials header should be sent with true as the value.
exposed_headers Sequence[str]
Value for the Access-Control-Expose-Headers header. If not specified, no custom headers are exposed.
headers Sequence[str]
Value for the Access-Control-Allow-Headers header.
max_age float
Indicates how long the results of the preflight request can be cached, in seconds.
methods Sequence[str]
'Value for the Access-Control-Allow-Methods header. Available options include GET, HEAD, PUT, PATCH, POST, DELETE, OPTIONS, TRACE, CONNECT. By default, all options are allowed.'
origins Sequence[str]
List of allowed domains for the Access-Control-Allow-Origin header. If you want to allow all origins, add * as a single value to this configuration field. The accepted values can either be flat strings or PCRE regexes.
preflight_continue bool
A boolean value that instructs the plugin to proxy the OPTIONS preflight request to the Upstream service.
private_network bool
Flag to determine whether the Access-Control-Allow-Private-Network header should be sent with true as the value.
credentials Boolean
Flag to determine whether the Access-Control-Allow-Credentials header should be sent with true as the value.
exposedHeaders List<String>
Value for the Access-Control-Expose-Headers header. If not specified, no custom headers are exposed.
headers List<String>
Value for the Access-Control-Allow-Headers header.
maxAge Number
Indicates how long the results of the preflight request can be cached, in seconds.
methods List<String>
'Value for the Access-Control-Allow-Methods header. Available options include GET, HEAD, PUT, PATCH, POST, DELETE, OPTIONS, TRACE, CONNECT. By default, all options are allowed.'
origins List<String>
List of allowed domains for the Access-Control-Allow-Origin header. If you want to allow all origins, add * as a single value to this configuration field. The accepted values can either be flat strings or PCRE regexes.
preflightContinue Boolean
A boolean value that instructs the plugin to proxy the OPTIONS preflight request to the Upstream service.
privateNetwork Boolean
Flag to determine whether the Access-Control-Allow-Private-Network header should be sent with true as the value.

GatewayPluginCorsOrdering
, GatewayPluginCorsOrderingArgs

GatewayPluginCorsOrderingAfter
, GatewayPluginCorsOrderingAfterArgs

Accesses List<string>
Accesses []string
accesses List<String>
accesses string[]
accesses Sequence[str]
accesses List<String>

GatewayPluginCorsOrderingBefore
, GatewayPluginCorsOrderingBeforeArgs

Accesses List<string>
Accesses []string
accesses List<String>
accesses string[]
accesses Sequence[str]
accesses List<String>

GatewayPluginCorsRoute
, GatewayPluginCorsRouteArgs

Id string
Id string
id String
id string
id str
id String

GatewayPluginCorsService
, GatewayPluginCorsServiceArgs

Id string
Id string
id String
id string
id str
id String

Import

$ pulumi import konnect:index/gatewayPluginCors:GatewayPluginCors my_konnect_gateway_plugin_cors "{ \"control_plane_id\": \"9524ec7d-36d9-465d-a8c5-83a3c9390458\", \"id\": \"3473c251-5b6c-4f45-b1ff-7ede735a366d\"}"
Copy

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.