konnect.GatewayAcl
Explore with Pulumi AI
GatewayACL Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myGatewayacl = new konnect.GatewayAcl("myGatewayacl", {
consumer: {
id: "...my_id...",
},
consumerId: "f28acbfa-c866-4587-b688-0208ac24df21",
controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
group: "...my_group...",
gatewayAclId: "...my_id...",
tags: ["..."],
});
import pulumi
import pulumi_konnect as konnect
my_gatewayacl = konnect.GatewayAcl("myGatewayacl",
consumer={
"id": "...my_id...",
},
consumer_id="f28acbfa-c866-4587-b688-0208ac24df21",
control_plane_id="9524ec7d-36d9-465d-a8c5-83a3c9390458",
group="...my_group...",
gateway_acl_id="...my_id...",
tags=["..."])
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.NewGatewayAcl(ctx, "myGatewayacl", &konnect.GatewayAclArgs{
Consumer: &konnect.GatewayAclConsumerArgs{
Id: pulumi.String("...my_id..."),
},
ConsumerId: pulumi.String("f28acbfa-c866-4587-b688-0208ac24df21"),
ControlPlaneId: pulumi.String("9524ec7d-36d9-465d-a8c5-83a3c9390458"),
Group: pulumi.String("...my_group..."),
GatewayAclId: pulumi.String("...my_id..."),
Tags: pulumi.StringArray{
pulumi.String("..."),
},
})
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 myGatewayacl = new Konnect.GatewayAcl("myGatewayacl", new()
{
Consumer = new Konnect.Inputs.GatewayAclConsumerArgs
{
Id = "...my_id...",
},
ConsumerId = "f28acbfa-c866-4587-b688-0208ac24df21",
ControlPlaneId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
Group = "...my_group...",
GatewayAclId = "...my_id...",
Tags = new[]
{
"...",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.GatewayAcl;
import com.pulumi.konnect.GatewayAclArgs;
import com.pulumi.konnect.inputs.GatewayAclConsumerArgs;
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 myGatewayacl = new GatewayAcl("myGatewayacl", GatewayAclArgs.builder()
.consumer(GatewayAclConsumerArgs.builder()
.id("...my_id...")
.build())
.consumerId("f28acbfa-c866-4587-b688-0208ac24df21")
.controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
.group("...my_group...")
.gatewayAclId("...my_id...")
.tags("...")
.build());
}
}
resources:
myGatewayacl:
type: konnect:GatewayAcl
properties:
consumer:
id: '...my_id...'
consumerId: f28acbfa-c866-4587-b688-0208ac24df21
controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
group: '...my_group...'
gatewayAclId: '...my_id...'
tags:
- '...'
Create GatewayAcl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayAcl(name: string, args: GatewayAclArgs, opts?: CustomResourceOptions);
@overload
def GatewayAcl(resource_name: str,
args: GatewayAclArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayAcl(resource_name: str,
opts: Optional[ResourceOptions] = None,
consumer_id: Optional[str] = None,
control_plane_id: Optional[str] = None,
group: Optional[str] = None,
consumer: Optional[GatewayAclConsumerArgs] = None,
gateway_acl_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewGatewayAcl(ctx *Context, name string, args GatewayAclArgs, opts ...ResourceOption) (*GatewayAcl, error)
public GatewayAcl(string name, GatewayAclArgs args, CustomResourceOptions? opts = null)
public GatewayAcl(String name, GatewayAclArgs args)
public GatewayAcl(String name, GatewayAclArgs args, CustomResourceOptions options)
type: konnect:GatewayAcl
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 GatewayAclArgs
- 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 GatewayAclArgs
- 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 GatewayAclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayAclArgs
- 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 gatewayAclResource = new Konnect.GatewayAcl("gatewayAclResource", new()
{
ConsumerId = "string",
ControlPlaneId = "string",
Group = "string",
Consumer = new Konnect.Inputs.GatewayAclConsumerArgs
{
Id = "string",
},
GatewayAclId = "string",
Tags = new[]
{
"string",
},
});
example, err := konnect.NewGatewayAcl(ctx, "gatewayAclResource", &konnect.GatewayAclArgs{
ConsumerId: pulumi.String("string"),
ControlPlaneId: pulumi.String("string"),
Group: pulumi.String("string"),
Consumer: &.GatewayAclConsumerArgs{
Id: pulumi.String("string"),
},
GatewayAclId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var gatewayAclResource = new GatewayAcl("gatewayAclResource", GatewayAclArgs.builder()
.consumerId("string")
.controlPlaneId("string")
.group("string")
.consumer(GatewayAclConsumerArgs.builder()
.id("string")
.build())
.gatewayAclId("string")
.tags("string")
.build());
gateway_acl_resource = konnect.GatewayAcl("gatewayAclResource",
consumer_id="string",
control_plane_id="string",
group="string",
consumer={
"id": "string",
},
gateway_acl_id="string",
tags=["string"])
const gatewayAclResource = new konnect.GatewayAcl("gatewayAclResource", {
consumerId: "string",
controlPlaneId: "string",
group: "string",
consumer: {
id: "string",
},
gatewayAclId: "string",
tags: ["string"],
});
type: konnect:GatewayAcl
properties:
consumer:
id: string
consumerId: string
controlPlaneId: string
gatewayAclId: string
group: string
tags:
- string
GatewayAcl 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 GatewayAcl resource accepts the following input properties:
- Consumer
Id string - Consumer ID for nested entities. Requires replacement if changed.
- Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Group string
- Requires replacement if changed.
- Consumer
Gateway
Acl Consumer - Requires replacement if changed.
- Gateway
Acl stringId - Requires replacement if changed.
- List<string>
- Requires replacement if changed.
- Consumer
Id string - Consumer ID for nested entities. Requires replacement if changed.
- Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Group string
- Requires replacement if changed.
- Consumer
Gateway
Acl Consumer Args - Requires replacement if changed.
- Gateway
Acl stringId - Requires replacement if changed.
- []string
- Requires replacement if changed.
- consumer
Id String - Consumer ID for nested entities. Requires replacement if changed.
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- group String
- Requires replacement if changed.
- consumer
Gateway
Acl Consumer - Requires replacement if changed.
- gateway
Acl StringId - Requires replacement if changed.
- List<String>
- Requires replacement if changed.
- consumer
Id string - Consumer ID for nested entities. Requires replacement if changed.
- control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- group string
- Requires replacement if changed.
- consumer
Gateway
Acl Consumer - Requires replacement if changed.
- gateway
Acl stringId - Requires replacement if changed.
- string[]
- Requires replacement if changed.
- consumer_
id str - Consumer ID for nested entities. Requires replacement if changed.
- control_
plane_ strid - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- group str
- Requires replacement if changed.
- consumer
Gateway
Acl Consumer Args - Requires replacement if changed.
- gateway_
acl_ strid - Requires replacement if changed.
- Sequence[str]
- Requires replacement if changed.
- consumer
Id String - Consumer ID for nested entities. Requires replacement if changed.
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- group String
- Requires replacement if changed.
- consumer Property Map
- Requires replacement if changed.
- gateway
Acl StringId - Requires replacement if changed.
- List<String>
- Requires replacement if changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayAcl resource produces the following output properties:
- created_
at float - Unix epoch when the resource was created.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing GatewayAcl Resource
Get an existing GatewayAcl 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?: GatewayAclState, opts?: CustomResourceOptions): GatewayAcl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
consumer: Optional[GatewayAclConsumerArgs] = None,
consumer_id: Optional[str] = None,
control_plane_id: Optional[str] = None,
created_at: Optional[float] = None,
gateway_acl_id: Optional[str] = None,
group: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> GatewayAcl
func GetGatewayAcl(ctx *Context, name string, id IDInput, state *GatewayAclState, opts ...ResourceOption) (*GatewayAcl, error)
public static GatewayAcl Get(string name, Input<string> id, GatewayAclState? state, CustomResourceOptions? opts = null)
public static GatewayAcl get(String name, Output<String> id, GatewayAclState state, CustomResourceOptions options)
resources: _: type: konnect:GatewayAcl 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.
- Consumer
Gateway
Acl Consumer - Requires replacement if changed.
- Consumer
Id string - Consumer ID for nested entities. Requires replacement if changed.
- Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Created
At double - Unix epoch when the resource was created.
- Gateway
Acl stringId - Requires replacement if changed.
- Group string
- Requires replacement if changed.
- List<string>
- Requires replacement if changed.
- Consumer
Gateway
Acl Consumer Args - Requires replacement if changed.
- Consumer
Id string - Consumer ID for nested entities. Requires replacement if changed.
- Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Created
At float64 - Unix epoch when the resource was created.
- Gateway
Acl stringId - Requires replacement if changed.
- Group string
- Requires replacement if changed.
- []string
- Requires replacement if changed.
- consumer
Gateway
Acl Consumer - Requires replacement if changed.
- consumer
Id String - Consumer ID for nested entities. Requires replacement if changed.
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At Double - Unix epoch when the resource was created.
- gateway
Acl StringId - Requires replacement if changed.
- group String
- Requires replacement if changed.
- List<String>
- Requires replacement if changed.
- consumer
Gateway
Acl Consumer - Requires replacement if changed.
- consumer
Id string - Consumer ID for nested entities. Requires replacement if changed.
- control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At number - Unix epoch when the resource was created.
- gateway
Acl stringId - Requires replacement if changed.
- group string
- Requires replacement if changed.
- string[]
- Requires replacement if changed.
- consumer
Gateway
Acl Consumer Args - Requires replacement if changed.
- consumer_
id str - Consumer ID for nested entities. Requires replacement if changed.
- control_
plane_ strid - 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.
- gateway_
acl_ strid - Requires replacement if changed.
- group str
- Requires replacement if changed.
- Sequence[str]
- Requires replacement if changed.
- consumer Property Map
- Requires replacement if changed.
- consumer
Id String - Consumer ID for nested entities. Requires replacement if changed.
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At Number - Unix epoch when the resource was created.
- gateway
Acl StringId - Requires replacement if changed.
- group String
- Requires replacement if changed.
- List<String>
- Requires replacement if changed.
Supporting Types
GatewayAclConsumer, GatewayAclConsumerArgs
- Id string
- Requires replacement if changed.
- Id string
- Requires replacement if changed.
- id String
- Requires replacement if changed.
- id string
- Requires replacement if changed.
- id str
- Requires replacement if changed.
- id String
- Requires replacement if changed.
Import
$ pulumi import konnect:index/gatewayAcl:GatewayAcl my_konnect_gateway_acl "{ \"aclid\": \"f28acbfa-c866-4587-b688-0208ac24df21\", \"consumer_id\": \"f28acbfa-c866-4587-b688-0208ac24df21\", \"control_plane_id\": \"9524ec7d-36d9-465d-a8c5-83a3c9390458\"}"
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.