cloudflare.SchemaValidationSchemas
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleSchemaValidationSchemas = new cloudflare.SchemaValidationSchemas("example_schema_validation_schemas", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
kind: "openapi_v3",
name: "petstore schema",
source: "<schema file contents>",
validationEnabled: true,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_schema_validation_schemas = cloudflare.SchemaValidationSchemas("example_schema_validation_schemas",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
kind="openapi_v3",
name="petstore schema",
source="<schema file contents>",
validation_enabled=True)
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewSchemaValidationSchemas(ctx, "example_schema_validation_schemas", &cloudflare.SchemaValidationSchemasArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Kind: pulumi.String("openapi_v3"),
Name: pulumi.String("petstore schema"),
Source: pulumi.String("<schema file contents>"),
ValidationEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleSchemaValidationSchemas = new Cloudflare.SchemaValidationSchemas("example_schema_validation_schemas", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
Kind = "openapi_v3",
Name = "petstore schema",
Source = "<schema file contents>",
ValidationEnabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.SchemaValidationSchemas;
import com.pulumi.cloudflare.SchemaValidationSchemasArgs;
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 exampleSchemaValidationSchemas = new SchemaValidationSchemas("exampleSchemaValidationSchemas", SchemaValidationSchemasArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.kind("openapi_v3")
.name("petstore schema")
.source("<schema file contents>")
.validationEnabled(true)
.build());
}
}
resources:
exampleSchemaValidationSchemas:
type: cloudflare:SchemaValidationSchemas
name: example_schema_validation_schemas
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
kind: openapi_v3
name: petstore schema
source: <schema file contents>
validationEnabled: true
Create SchemaValidationSchemas Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SchemaValidationSchemas(name: string, args: SchemaValidationSchemasArgs, opts?: CustomResourceOptions);
@overload
def SchemaValidationSchemas(resource_name: str,
args: SchemaValidationSchemasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SchemaValidationSchemas(resource_name: str,
opts: Optional[ResourceOptions] = None,
kind: Optional[str] = None,
name: Optional[str] = None,
source: Optional[str] = None,
validation_enabled: Optional[bool] = None,
zone_id: Optional[str] = None)
func NewSchemaValidationSchemas(ctx *Context, name string, args SchemaValidationSchemasArgs, opts ...ResourceOption) (*SchemaValidationSchemas, error)
public SchemaValidationSchemas(string name, SchemaValidationSchemasArgs args, CustomResourceOptions? opts = null)
public SchemaValidationSchemas(String name, SchemaValidationSchemasArgs args)
public SchemaValidationSchemas(String name, SchemaValidationSchemasArgs args, CustomResourceOptions options)
type: cloudflare:SchemaValidationSchemas
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 SchemaValidationSchemasArgs
- 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 SchemaValidationSchemasArgs
- 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 SchemaValidationSchemasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaValidationSchemasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaValidationSchemasArgs
- 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 schemaValidationSchemasResource = new Cloudflare.SchemaValidationSchemas("schemaValidationSchemasResource", new()
{
Kind = "string",
Name = "string",
Source = "string",
ValidationEnabled = false,
ZoneId = "string",
});
example, err := cloudflare.NewSchemaValidationSchemas(ctx, "schemaValidationSchemasResource", &cloudflare.SchemaValidationSchemasArgs{
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
Source: pulumi.String("string"),
ValidationEnabled: pulumi.Bool(false),
ZoneId: pulumi.String("string"),
})
var schemaValidationSchemasResource = new SchemaValidationSchemas("schemaValidationSchemasResource", SchemaValidationSchemasArgs.builder()
.kind("string")
.name("string")
.source("string")
.validationEnabled(false)
.zoneId("string")
.build());
schema_validation_schemas_resource = cloudflare.SchemaValidationSchemas("schemaValidationSchemasResource",
kind="string",
name="string",
source="string",
validation_enabled=False,
zone_id="string")
const schemaValidationSchemasResource = new cloudflare.SchemaValidationSchemas("schemaValidationSchemasResource", {
kind: "string",
name: "string",
source: "string",
validationEnabled: false,
zoneId: "string",
});
type: cloudflare:SchemaValidationSchemas
properties:
kind: string
name: string
source: string
validationEnabled: false
zoneId: string
SchemaValidationSchemas 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 SchemaValidationSchemas resource accepts the following input properties:
- Kind string
- The kind of the schema Available values: "openapi_v3".
- Name string
- A human-readable name for the schema
- Source string
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- Validation
Enabled bool - An indicator if this schema is enabled
- Zone
Id string - Identifier.
- Kind string
- The kind of the schema Available values: "openapi_v3".
- Name string
- A human-readable name for the schema
- Source string
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- Validation
Enabled bool - An indicator if this schema is enabled
- Zone
Id string - Identifier.
- kind String
- The kind of the schema Available values: "openapi_v3".
- name String
- A human-readable name for the schema
- source String
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation
Enabled Boolean - An indicator if this schema is enabled
- zone
Id String - Identifier.
- kind string
- The kind of the schema Available values: "openapi_v3".
- name string
- A human-readable name for the schema
- source string
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation
Enabled boolean - An indicator if this schema is enabled
- zone
Id string - Identifier.
- kind str
- The kind of the schema Available values: "openapi_v3".
- name str
- A human-readable name for the schema
- source str
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation_
enabled bool - An indicator if this schema is enabled
- zone_
id str - Identifier.
- kind String
- The kind of the schema Available values: "openapi_v3".
- name String
- A human-readable name for the schema
- source String
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation
Enabled Boolean - An indicator if this schema is enabled
- zone
Id String - Identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the SchemaValidationSchemas resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- schema_
id str - A unique identifier of this schema
Look up Existing SchemaValidationSchemas Resource
Get an existing SchemaValidationSchemas 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?: SchemaValidationSchemasState, opts?: CustomResourceOptions): SchemaValidationSchemas
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
kind: Optional[str] = None,
name: Optional[str] = None,
schema_id: Optional[str] = None,
source: Optional[str] = None,
validation_enabled: Optional[bool] = None,
zone_id: Optional[str] = None) -> SchemaValidationSchemas
func GetSchemaValidationSchemas(ctx *Context, name string, id IDInput, state *SchemaValidationSchemasState, opts ...ResourceOption) (*SchemaValidationSchemas, error)
public static SchemaValidationSchemas Get(string name, Input<string> id, SchemaValidationSchemasState? state, CustomResourceOptions? opts = null)
public static SchemaValidationSchemas get(String name, Output<String> id, SchemaValidationSchemasState state, CustomResourceOptions options)
resources: _: type: cloudflare:SchemaValidationSchemas 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.
- Created
At string - Kind string
- The kind of the schema Available values: "openapi_v3".
- Name string
- A human-readable name for the schema
- Schema
Id string - A unique identifier of this schema
- Source string
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- Validation
Enabled bool - An indicator if this schema is enabled
- Zone
Id string - Identifier.
- Created
At string - Kind string
- The kind of the schema Available values: "openapi_v3".
- Name string
- A human-readable name for the schema
- Schema
Id string - A unique identifier of this schema
- Source string
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- Validation
Enabled bool - An indicator if this schema is enabled
- Zone
Id string - Identifier.
- created
At String - kind String
- The kind of the schema Available values: "openapi_v3".
- name String
- A human-readable name for the schema
- schema
Id String - A unique identifier of this schema
- source String
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation
Enabled Boolean - An indicator if this schema is enabled
- zone
Id String - Identifier.
- created
At string - kind string
- The kind of the schema Available values: "openapi_v3".
- name string
- A human-readable name for the schema
- schema
Id string - A unique identifier of this schema
- source string
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation
Enabled boolean - An indicator if this schema is enabled
- zone
Id string - Identifier.
- created_
at str - kind str
- The kind of the schema Available values: "openapi_v3".
- name str
- A human-readable name for the schema
- schema_
id str - A unique identifier of this schema
- source str
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation_
enabled bool - An indicator if this schema is enabled
- zone_
id str - Identifier.
- created
At String - kind String
- The kind of the schema Available values: "openapi_v3".
- name String
- A human-readable name for the schema
- schema
Id String - A unique identifier of this schema
- source String
- The raw schema, e.g., the OpenAPI schema, either as JSON or YAML
- validation
Enabled Boolean - An indicator if this schema is enabled
- zone
Id String - Identifier.
Import
$ pulumi import cloudflare:index/schemaValidationSchemas:SchemaValidationSchemas example '<zone_id>/<schema_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.