konnect.GatewayMtlsAuth
GatewayMTLSAuth Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myGatewaymtlsauth = new konnect.GatewayMtlsAuth("myGatewaymtlsauth", {
    caCertificate: {
        id: "...my_id...",
    },
    consumerId: "f28acbfa-c866-4587-b688-0208ac24df21",
    controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
    createdAt: 6,
    gatewayMtlsAuthId: "...my_id...",
    subjectName: "...my_subject_name...",
    tags: ["..."],
});
import pulumi
import pulumi_konnect as konnect
my_gatewaymtlsauth = konnect.GatewayMtlsAuth("myGatewaymtlsauth",
    ca_certificate={
        "id": "...my_id...",
    },
    consumer_id="f28acbfa-c866-4587-b688-0208ac24df21",
    control_plane_id="9524ec7d-36d9-465d-a8c5-83a3c9390458",
    created_at=6,
    gateway_mtls_auth_id="...my_id...",
    subject_name="...my_subject_name...",
    tags=["..."])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := konnect.NewGatewayMtlsAuth(ctx, "myGatewaymtlsauth", &konnect.GatewayMtlsAuthArgs{
			CaCertificate: &konnect.GatewayMtlsAuthCaCertificateArgs{
				Id: pulumi.String("...my_id..."),
			},
			ConsumerId:        pulumi.String("f28acbfa-c866-4587-b688-0208ac24df21"),
			ControlPlaneId:    pulumi.String("9524ec7d-36d9-465d-a8c5-83a3c9390458"),
			CreatedAt:         pulumi.Float64(6),
			GatewayMtlsAuthId: pulumi.String("...my_id..."),
			SubjectName:       pulumi.String("...my_subject_name..."),
			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 myGatewaymtlsauth = new Konnect.GatewayMtlsAuth("myGatewaymtlsauth", new()
    {
        CaCertificate = new Konnect.Inputs.GatewayMtlsAuthCaCertificateArgs
        {
            Id = "...my_id...",
        },
        ConsumerId = "f28acbfa-c866-4587-b688-0208ac24df21",
        ControlPlaneId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
        CreatedAt = 6,
        GatewayMtlsAuthId = "...my_id...",
        SubjectName = "...my_subject_name...",
        Tags = new[]
        {
            "...",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.GatewayMtlsAuth;
import com.pulumi.konnect.GatewayMtlsAuthArgs;
import com.pulumi.konnect.inputs.GatewayMtlsAuthCaCertificateArgs;
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 myGatewaymtlsauth = new GatewayMtlsAuth("myGatewaymtlsauth", GatewayMtlsAuthArgs.builder()
            .caCertificate(GatewayMtlsAuthCaCertificateArgs.builder()
                .id("...my_id...")
                .build())
            .consumerId("f28acbfa-c866-4587-b688-0208ac24df21")
            .controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
            .createdAt(6)
            .gatewayMtlsAuthId("...my_id...")
            .subjectName("...my_subject_name...")
            .tags("...")
            .build());
    }
}
resources:
  myGatewaymtlsauth:
    type: konnect:GatewayMtlsAuth
    properties:
      caCertificate:
        id: '...my_id...'
      consumerId: f28acbfa-c866-4587-b688-0208ac24df21
      controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      createdAt: 6
      gatewayMtlsAuthId: '...my_id...'
      subjectName: '...my_subject_name...'
      tags:
        - '...'
Create GatewayMtlsAuth Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayMtlsAuth(name: string, args: GatewayMtlsAuthArgs, opts?: CustomResourceOptions);@overload
def GatewayMtlsAuth(resource_name: str,
                    args: GatewayMtlsAuthArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def GatewayMtlsAuth(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    consumer_id: Optional[str] = None,
                    control_plane_id: Optional[str] = None,
                    subject_name: Optional[str] = None,
                    ca_certificate: Optional[GatewayMtlsAuthCaCertificateArgs] = None,
                    created_at: Optional[float] = None,
                    gateway_mtls_auth_id: Optional[str] = None,
                    tags: Optional[Sequence[str]] = None)func NewGatewayMtlsAuth(ctx *Context, name string, args GatewayMtlsAuthArgs, opts ...ResourceOption) (*GatewayMtlsAuth, error)public GatewayMtlsAuth(string name, GatewayMtlsAuthArgs args, CustomResourceOptions? opts = null)
public GatewayMtlsAuth(String name, GatewayMtlsAuthArgs args)
public GatewayMtlsAuth(String name, GatewayMtlsAuthArgs args, CustomResourceOptions options)
type: konnect:GatewayMtlsAuth
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 GatewayMtlsAuthArgs
- 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 GatewayMtlsAuthArgs
- 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 GatewayMtlsAuthArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayMtlsAuthArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayMtlsAuthArgs
- 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 gatewayMtlsAuthResource = new Konnect.GatewayMtlsAuth("gatewayMtlsAuthResource", new()
{
    ConsumerId = "string",
    ControlPlaneId = "string",
    SubjectName = "string",
    CaCertificate = new Konnect.Inputs.GatewayMtlsAuthCaCertificateArgs
    {
        Id = "string",
    },
    CreatedAt = 0,
    GatewayMtlsAuthId = "string",
    Tags = new[]
    {
        "string",
    },
});
example, err := konnect.NewGatewayMtlsAuth(ctx, "gatewayMtlsAuthResource", &konnect.GatewayMtlsAuthArgs{
	ConsumerId:     pulumi.String("string"),
	ControlPlaneId: pulumi.String("string"),
	SubjectName:    pulumi.String("string"),
	CaCertificate: &konnect.GatewayMtlsAuthCaCertificateArgs{
		Id: pulumi.String("string"),
	},
	CreatedAt:         pulumi.Float64(0),
	GatewayMtlsAuthId: pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var gatewayMtlsAuthResource = new GatewayMtlsAuth("gatewayMtlsAuthResource", GatewayMtlsAuthArgs.builder()
    .consumerId("string")
    .controlPlaneId("string")
    .subjectName("string")
    .caCertificate(GatewayMtlsAuthCaCertificateArgs.builder()
        .id("string")
        .build())
    .createdAt(0.0)
    .gatewayMtlsAuthId("string")
    .tags("string")
    .build());
gateway_mtls_auth_resource = konnect.GatewayMtlsAuth("gatewayMtlsAuthResource",
    consumer_id="string",
    control_plane_id="string",
    subject_name="string",
    ca_certificate={
        "id": "string",
    },
    created_at=0,
    gateway_mtls_auth_id="string",
    tags=["string"])
const gatewayMtlsAuthResource = new konnect.GatewayMtlsAuth("gatewayMtlsAuthResource", {
    consumerId: "string",
    controlPlaneId: "string",
    subjectName: "string",
    caCertificate: {
        id: "string",
    },
    createdAt: 0,
    gatewayMtlsAuthId: "string",
    tags: ["string"],
});
type: konnect:GatewayMtlsAuth
properties:
    caCertificate:
        id: string
    consumerId: string
    controlPlaneId: string
    createdAt: 0
    gatewayMtlsAuthId: string
    subjectName: string
    tags:
        - string
GatewayMtlsAuth 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 GatewayMtlsAuth resource accepts the following input properties:
- ConsumerId string
- Consumer ID for nested entities. Requires replacement if changed.
- ControlPlane stringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- SubjectName string
- Requires replacement if changed.
- CaCertificate GatewayMtls Auth Ca Certificate 
- Requires replacement if changed.
- CreatedAt double
- Unix epoch when the resource was created. Requires replacement if changed.
- GatewayMtls stringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- List<string>
- A set of strings representing tags. Requires replacement if changed.
- ConsumerId string
- Consumer ID for nested entities. Requires replacement if changed.
- ControlPlane stringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- SubjectName string
- Requires replacement if changed.
- CaCertificate GatewayMtls Auth Ca Certificate Args 
- Requires replacement if changed.
- CreatedAt float64
- Unix epoch when the resource was created. Requires replacement if changed.
- GatewayMtls stringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- []string
- A set of strings representing tags. Requires replacement if changed.
- consumerId String
- Consumer ID for nested entities. Requires replacement if changed.
- controlPlane StringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- subjectName String
- Requires replacement if changed.
- caCertificate GatewayMtls Auth Ca Certificate 
- Requires replacement if changed.
- createdAt Double
- Unix epoch when the resource was created. Requires replacement if changed.
- gatewayMtls StringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- List<String>
- A set of strings representing tags. Requires replacement if changed.
- consumerId string
- Consumer ID for nested entities. Requires replacement if changed.
- controlPlane stringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- subjectName string
- Requires replacement if changed.
- caCertificate GatewayMtls Auth Ca Certificate 
- Requires replacement if changed.
- createdAt number
- Unix epoch when the resource was created. Requires replacement if changed.
- gatewayMtls stringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- string[]
- A set of strings representing tags. 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.
- subject_name str
- Requires replacement if changed.
- ca_certificate GatewayMtls Auth Ca Certificate Args 
- Requires replacement if changed.
- created_at float
- Unix epoch when the resource was created. Requires replacement if changed.
- gateway_mtls_ strauth_ id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- Sequence[str]
- A set of strings representing tags. Requires replacement if changed.
- consumerId String
- Consumer ID for nested entities. Requires replacement if changed.
- controlPlane StringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- subjectName String
- Requires replacement if changed.
- caCertificate Property Map
- Requires replacement if changed.
- createdAt Number
- Unix epoch when the resource was created. Requires replacement if changed.
- gatewayMtls StringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- List<String>
- A set of strings representing tags. Requires replacement if changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayMtlsAuth 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 GatewayMtlsAuth Resource
Get an existing GatewayMtlsAuth 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?: GatewayMtlsAuthState, opts?: CustomResourceOptions): GatewayMtlsAuth@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ca_certificate: Optional[GatewayMtlsAuthCaCertificateArgs] = None,
        consumer_id: Optional[str] = None,
        control_plane_id: Optional[str] = None,
        created_at: Optional[float] = None,
        gateway_mtls_auth_id: Optional[str] = None,
        subject_name: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> GatewayMtlsAuthfunc GetGatewayMtlsAuth(ctx *Context, name string, id IDInput, state *GatewayMtlsAuthState, opts ...ResourceOption) (*GatewayMtlsAuth, error)public static GatewayMtlsAuth Get(string name, Input<string> id, GatewayMtlsAuthState? state, CustomResourceOptions? opts = null)public static GatewayMtlsAuth get(String name, Output<String> id, GatewayMtlsAuthState state, CustomResourceOptions options)resources:  _:    type: konnect:GatewayMtlsAuth    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.
- CaCertificate GatewayMtls Auth Ca Certificate 
- Requires replacement if changed.
- ConsumerId string
- Consumer ID for nested entities. Requires replacement if changed.
- ControlPlane stringId 
- 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. Requires replacement if changed.
- GatewayMtls stringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- SubjectName string
- Requires replacement if changed.
- List<string>
- A set of strings representing tags. Requires replacement if changed.
- CaCertificate GatewayMtls Auth Ca Certificate Args 
- Requires replacement if changed.
- ConsumerId string
- Consumer ID for nested entities. Requires replacement if changed.
- ControlPlane stringId 
- 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. Requires replacement if changed.
- GatewayMtls stringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- SubjectName string
- Requires replacement if changed.
- []string
- A set of strings representing tags. Requires replacement if changed.
- caCertificate GatewayMtls Auth Ca Certificate 
- Requires replacement if changed.
- consumerId String
- Consumer ID for nested entities. Requires replacement if changed.
- controlPlane StringId 
- 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. Requires replacement if changed.
- gatewayMtls StringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- subjectName String
- Requires replacement if changed.
- List<String>
- A set of strings representing tags. Requires replacement if changed.
- caCertificate GatewayMtls Auth Ca Certificate 
- Requires replacement if changed.
- consumerId string
- Consumer ID for nested entities. Requires replacement if changed.
- controlPlane stringId 
- 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. Requires replacement if changed.
- gatewayMtls stringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- subjectName string
- Requires replacement if changed.
- string[]
- A set of strings representing tags. Requires replacement if changed.
- ca_certificate GatewayMtls Auth Ca Certificate 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. Requires replacement if changed.
- gateway_mtls_ strauth_ id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- subject_name str
- Requires replacement if changed.
- Sequence[str]
- A set of strings representing tags. Requires replacement if changed.
- caCertificate Property Map
- Requires replacement if changed.
- consumerId String
- Consumer ID for nested entities. Requires replacement if changed.
- controlPlane StringId 
- 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. Requires replacement if changed.
- gatewayMtls StringAuth Id 
- A string representing a UUID (universally unique identifier). Requires replacement if changed.
- subjectName String
- Requires replacement if changed.
- List<String>
- A set of strings representing tags. Requires replacement if changed.
Supporting Types
GatewayMtlsAuthCaCertificate, GatewayMtlsAuthCaCertificateArgs          
- 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
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_gateway_mtls_auth.my_konnect_gateway_mtls_auth
id = jsonencode({
consumer_id = "f28acbfa-c866-4587-b688-0208ac24df21"
control_plane_id = "9524ec7d-36d9-465d-a8c5-83a3c9390458"
id = ""
})
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/gatewayMtlsAuth:GatewayMtlsAuth my_konnect_gateway_mtls_auth '{"consumer_id": "f28acbfa-c866-4587-b688-0208ac24df21", "control_plane_id": "9524ec7d-36d9-465d-a8c5-83a3c9390458", "id": ""}'
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 konnectTerraform Provider.
