ApiShieldSchema

class ApiShieldSchema : KotlinCustomResource

Provides a resource to manage a schema in API Shield Schema Validation 2.0.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ApiShieldSchema;
import com.pulumi.cloudflare.ApiShieldSchemaArgs;
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 petstoreSchema = new ApiShieldSchema("petstoreSchema", ApiShieldSchemaArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.name("myschema")
.kind("openapi_v3")
.validationEnabled(true)
.source(Files.readString(Paths.get("./schemas/petstore.json")))
.build());
}
}

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>?

Kind of schema. Defaults to openapi_v3. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val name: Output<String>

Name of the schema. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val source: Output<String>

Schema file bytes. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Flag whether schema is enabled for validation.

Link copied to clipboard
val zoneId: Output<String>

The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.