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

konnect.ApiProductSpecification

Explore with Pulumi AI

APIProductSpecification Resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";

const myApiproductspecification = new konnect.ApiProductSpecification("myApiproductspecification", {
    apiProductId: "d32d905a-ed33-46a3-a093-d8f536af9a8a",
    apiProductVersionId: "9f5061ce-78f6-4452-9108-ad7c02821fd5",
    content: "TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA==",
});
Copy
import pulumi
import pulumi_konnect as konnect

my_apiproductspecification = konnect.ApiProductSpecification("myApiproductspecification",
    api_product_id="d32d905a-ed33-46a3-a093-d8f536af9a8a",
    api_product_version_id="9f5061ce-78f6-4452-9108-ad7c02821fd5",
    content="TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA==")
Copy
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.NewApiProductSpecification(ctx, "myApiproductspecification", &konnect.ApiProductSpecificationArgs{
			ApiProductId:        pulumi.String("d32d905a-ed33-46a3-a093-d8f536af9a8a"),
			ApiProductVersionId: pulumi.String("9f5061ce-78f6-4452-9108-ad7c02821fd5"),
			Content:             pulumi.String("TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA=="),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;

return await Deployment.RunAsync(() => 
{
    var myApiproductspecification = new Konnect.ApiProductSpecification("myApiproductspecification", new()
    {
        ApiProductId = "d32d905a-ed33-46a3-a093-d8f536af9a8a",
        ApiProductVersionId = "9f5061ce-78f6-4452-9108-ad7c02821fd5",
        Content = "TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA==",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.ApiProductSpecification;
import com.pulumi.konnect.ApiProductSpecificationArgs;
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 myApiproductspecification = new ApiProductSpecification("myApiproductspecification", ApiProductSpecificationArgs.builder()
            .apiProductId("d32d905a-ed33-46a3-a093-d8f536af9a8a")
            .apiProductVersionId("9f5061ce-78f6-4452-9108-ad7c02821fd5")
            .content("TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA==")
            .build());

    }
}
Copy
resources:
  myApiproductspecification:
    type: konnect:ApiProductSpecification
    properties:
      apiProductId: d32d905a-ed33-46a3-a093-d8f536af9a8a
      apiProductVersionId: 9f5061ce-78f6-4452-9108-ad7c02821fd5
      content: TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA==
Copy

Create ApiProductSpecification Resource

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

Constructor syntax

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

@overload
def ApiProductSpecification(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            api_product_id: Optional[str] = None,
                            api_product_version_id: Optional[str] = None,
                            content: Optional[str] = None,
                            name: Optional[str] = None)
func NewApiProductSpecification(ctx *Context, name string, args ApiProductSpecificationArgs, opts ...ResourceOption) (*ApiProductSpecification, error)
public ApiProductSpecification(string name, ApiProductSpecificationArgs args, CustomResourceOptions? opts = null)
public ApiProductSpecification(String name, ApiProductSpecificationArgs args)
public ApiProductSpecification(String name, ApiProductSpecificationArgs args, CustomResourceOptions options)
type: konnect:ApiProductSpecification
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. ApiProductSpecificationArgs
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. ApiProductSpecificationArgs
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. ApiProductSpecificationArgs
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. ApiProductSpecificationArgs
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. ApiProductSpecificationArgs
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 apiProductSpecificationResource = new Konnect.ApiProductSpecification("apiProductSpecificationResource", new()
{
    ApiProductId = "string",
    ApiProductVersionId = "string",
    Content = "string",
    Name = "string",
});
Copy
example, err := konnect.NewApiProductSpecification(ctx, "apiProductSpecificationResource", &konnect.ApiProductSpecificationArgs{
ApiProductId: pulumi.String("string"),
ApiProductVersionId: pulumi.String("string"),
Content: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var apiProductSpecificationResource = new ApiProductSpecification("apiProductSpecificationResource", ApiProductSpecificationArgs.builder()
    .apiProductId("string")
    .apiProductVersionId("string")
    .content("string")
    .name("string")
    .build());
Copy
api_product_specification_resource = konnect.ApiProductSpecification("apiProductSpecificationResource",
    api_product_id="string",
    api_product_version_id="string",
    content="string",
    name="string")
Copy
const apiProductSpecificationResource = new konnect.ApiProductSpecification("apiProductSpecificationResource", {
    apiProductId: "string",
    apiProductVersionId: "string",
    content: "string",
    name: "string",
});
Copy
type: konnect:ApiProductSpecification
properties:
    apiProductId: string
    apiProductVersionId: string
    content: string
    name: string
Copy

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

ApiProductId This property is required. string
The API product identifier
ApiProductVersionId This property is required. string
The API product version identifier
Content This property is required. string
The base64 encoded contents of the API product version specification
Name string
The name of the API product version specification
ApiProductId This property is required. string
The API product identifier
ApiProductVersionId This property is required. string
The API product version identifier
Content This property is required. string
The base64 encoded contents of the API product version specification
Name string
The name of the API product version specification
apiProductId This property is required. String
The API product identifier
apiProductVersionId This property is required. String
The API product version identifier
content This property is required. String
The base64 encoded contents of the API product version specification
name String
The name of the API product version specification
apiProductId This property is required. string
The API product identifier
apiProductVersionId This property is required. string
The API product version identifier
content This property is required. string
The base64 encoded contents of the API product version specification
name string
The name of the API product version specification
api_product_id This property is required. str
The API product identifier
api_product_version_id This property is required. str
The API product version identifier
content This property is required. str
The base64 encoded contents of the API product version specification
name str
The name of the API product version specification
apiProductId This property is required. String
The API product identifier
apiProductVersionId This property is required. String
The API product version identifier
content This property is required. String
The base64 encoded contents of the API product version specification
name String
The name of the API product version specification

Outputs

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

CreatedAt string
An ISO-8601 timestamp representation of entity creation date.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
An ISO-8601 timestamp representation of entity update date.
CreatedAt string
An ISO-8601 timestamp representation of entity creation date.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
An ISO-8601 timestamp representation of entity update date.
createdAt String
An ISO-8601 timestamp representation of entity creation date.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
An ISO-8601 timestamp representation of entity update date.
createdAt string
An ISO-8601 timestamp representation of entity creation date.
id string
The provider-assigned unique ID for this managed resource.
updatedAt string
An ISO-8601 timestamp representation of entity update date.
created_at str
An ISO-8601 timestamp representation of entity creation date.
id str
The provider-assigned unique ID for this managed resource.
updated_at str
An ISO-8601 timestamp representation of entity update date.
createdAt String
An ISO-8601 timestamp representation of entity creation date.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
An ISO-8601 timestamp representation of entity update date.

Look up Existing ApiProductSpecification Resource

Get an existing ApiProductSpecification 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?: ApiProductSpecificationState, opts?: CustomResourceOptions): ApiProductSpecification
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_product_id: Optional[str] = None,
        api_product_version_id: Optional[str] = None,
        content: Optional[str] = None,
        created_at: Optional[str] = None,
        name: Optional[str] = None,
        updated_at: Optional[str] = None) -> ApiProductSpecification
func GetApiProductSpecification(ctx *Context, name string, id IDInput, state *ApiProductSpecificationState, opts ...ResourceOption) (*ApiProductSpecification, error)
public static ApiProductSpecification Get(string name, Input<string> id, ApiProductSpecificationState? state, CustomResourceOptions? opts = null)
public static ApiProductSpecification get(String name, Output<String> id, ApiProductSpecificationState state, CustomResourceOptions options)
resources:  _:    type: konnect:ApiProductSpecification    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:
ApiProductId string
The API product identifier
ApiProductVersionId string
The API product version identifier
Content string
The base64 encoded contents of the API product version specification
CreatedAt string
An ISO-8601 timestamp representation of entity creation date.
Name string
The name of the API product version specification
UpdatedAt string
An ISO-8601 timestamp representation of entity update date.
ApiProductId string
The API product identifier
ApiProductVersionId string
The API product version identifier
Content string
The base64 encoded contents of the API product version specification
CreatedAt string
An ISO-8601 timestamp representation of entity creation date.
Name string
The name of the API product version specification
UpdatedAt string
An ISO-8601 timestamp representation of entity update date.
apiProductId String
The API product identifier
apiProductVersionId String
The API product version identifier
content String
The base64 encoded contents of the API product version specification
createdAt String
An ISO-8601 timestamp representation of entity creation date.
name String
The name of the API product version specification
updatedAt String
An ISO-8601 timestamp representation of entity update date.
apiProductId string
The API product identifier
apiProductVersionId string
The API product version identifier
content string
The base64 encoded contents of the API product version specification
createdAt string
An ISO-8601 timestamp representation of entity creation date.
name string
The name of the API product version specification
updatedAt string
An ISO-8601 timestamp representation of entity update date.
api_product_id str
The API product identifier
api_product_version_id str
The API product version identifier
content str
The base64 encoded contents of the API product version specification
created_at str
An ISO-8601 timestamp representation of entity creation date.
name str
The name of the API product version specification
updated_at str
An ISO-8601 timestamp representation of entity update date.
apiProductId String
The API product identifier
apiProductVersionId String
The API product version identifier
content String
The base64 encoded contents of the API product version specification
createdAt String
An ISO-8601 timestamp representation of entity creation date.
name String
The name of the API product version specification
updatedAt String
An ISO-8601 timestamp representation of entity update date.

Import

$ pulumi import konnect:index/apiProductSpecification:ApiProductSpecification my_konnect_api_product_specification "{ \"api_product_id\": \"d32d905a-ed33-46a3-a093-d8f536af9a8a\", \"api_product_version_id\": \"9f5061ce-78f6-4452-9108-ad7c02821fd5\", \"id\": \"742ff9f1-fb89-4aeb-a599-f0e278c7aeaa\"}"
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.