gcp.networkservices.WasmPlugin
WasmPlugin is a resource representing a service executing a customer-provided Wasm module.
To get more information about WasmPlugin, see:
- API documentation
- How-to Guides
Example Usage
Create WasmPlugin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WasmPlugin(name: string, args: WasmPluginArgs, opts?: CustomResourceOptions);@overload
def WasmPlugin(resource_name: str,
args: WasmPluginArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WasmPlugin(resource_name: str,
opts: Optional[ResourceOptions] = None,
main_version_id: Optional[str] = None,
versions: Optional[Sequence[WasmPluginVersionArgs]] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
log_config: Optional[WasmPluginLogConfigArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None)func NewWasmPlugin(ctx *Context, name string, args WasmPluginArgs, opts ...ResourceOption) (*WasmPlugin, error)public WasmPlugin(string name, WasmPluginArgs args, CustomResourceOptions? opts = null)
public WasmPlugin(String name, WasmPluginArgs args)
public WasmPlugin(String name, WasmPluginArgs args, CustomResourceOptions options)
type: gcp:networkservices:WasmPlugin
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 WasmPluginArgs
- 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 WasmPluginArgs
- 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 WasmPluginArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WasmPluginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WasmPluginArgs
- 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 wasmPluginResource = new Gcp.NetworkServices.WasmPlugin("wasmPluginResource", new()
{
MainVersionId = "string",
Versions = new[]
{
new Gcp.NetworkServices.Inputs.WasmPluginVersionArgs
{
VersionName = "string",
CreateTime = "string",
Description = "string",
ImageDigest = "string",
ImageUri = "string",
Labels =
{
{ "string", "string" },
},
PluginConfigData = "string",
PluginConfigDigest = "string",
PluginConfigUri = "string",
UpdateTime = "string",
},
},
Description = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
LogConfig = new Gcp.NetworkServices.Inputs.WasmPluginLogConfigArgs
{
Enable = false,
MinLogLevel = "string",
SampleRate = 0,
},
Name = "string",
Project = "string",
});
example, err := networkservices.NewWasmPlugin(ctx, "wasmPluginResource", &networkservices.WasmPluginArgs{
MainVersionId: pulumi.String("string"),
Versions: networkservices.WasmPluginVersionArray{
&networkservices.WasmPluginVersionArgs{
VersionName: pulumi.String("string"),
CreateTime: pulumi.String("string"),
Description: pulumi.String("string"),
ImageDigest: pulumi.String("string"),
ImageUri: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
PluginConfigData: pulumi.String("string"),
PluginConfigDigest: pulumi.String("string"),
PluginConfigUri: pulumi.String("string"),
UpdateTime: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
LogConfig: &networkservices.WasmPluginLogConfigArgs{
Enable: pulumi.Bool(false),
MinLogLevel: pulumi.String("string"),
SampleRate: pulumi.Float64(0),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var wasmPluginResource = new WasmPlugin("wasmPluginResource", WasmPluginArgs.builder()
.mainVersionId("string")
.versions(WasmPluginVersionArgs.builder()
.versionName("string")
.createTime("string")
.description("string")
.imageDigest("string")
.imageUri("string")
.labels(Map.of("string", "string"))
.pluginConfigData("string")
.pluginConfigDigest("string")
.pluginConfigUri("string")
.updateTime("string")
.build())
.description("string")
.labels(Map.of("string", "string"))
.location("string")
.logConfig(WasmPluginLogConfigArgs.builder()
.enable(false)
.minLogLevel("string")
.sampleRate(0.0)
.build())
.name("string")
.project("string")
.build());
wasm_plugin_resource = gcp.networkservices.WasmPlugin("wasmPluginResource",
main_version_id="string",
versions=[{
"version_name": "string",
"create_time": "string",
"description": "string",
"image_digest": "string",
"image_uri": "string",
"labels": {
"string": "string",
},
"plugin_config_data": "string",
"plugin_config_digest": "string",
"plugin_config_uri": "string",
"update_time": "string",
}],
description="string",
labels={
"string": "string",
},
location="string",
log_config={
"enable": False,
"min_log_level": "string",
"sample_rate": 0,
},
name="string",
project="string")
const wasmPluginResource = new gcp.networkservices.WasmPlugin("wasmPluginResource", {
mainVersionId: "string",
versions: [{
versionName: "string",
createTime: "string",
description: "string",
imageDigest: "string",
imageUri: "string",
labels: {
string: "string",
},
pluginConfigData: "string",
pluginConfigDigest: "string",
pluginConfigUri: "string",
updateTime: "string",
}],
description: "string",
labels: {
string: "string",
},
location: "string",
logConfig: {
enable: false,
minLogLevel: "string",
sampleRate: 0,
},
name: "string",
project: "string",
});
type: gcp:networkservices:WasmPlugin
properties:
description: string
labels:
string: string
location: string
logConfig:
enable: false
minLogLevel: string
sampleRate: 0
mainVersionId: string
name: string
project: string
versions:
- createTime: string
description: string
imageDigest: string
imageUri: string
labels:
string: string
pluginConfigData: string
pluginConfigDigest: string
pluginConfigUri: string
updateTime: string
versionName: string
WasmPlugin 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 WasmPlugin resource accepts the following input properties:
- Main
Version stringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- Versions
List<Wasm
Plugin Version> - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- Description string
- Optional. A human-readable description of the resource.
- Labels Dictionary<string, string>
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - Location string
- The location of the traffic extension
- Log
Config WasmPlugin Log Config - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- Name string
- Identifier. Name of the WasmPlugin resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Main
Version stringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- Versions
[]Wasm
Plugin Version Args - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- Description string
- Optional. A human-readable description of the resource.
- Labels map[string]string
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - Location string
- The location of the traffic extension
- Log
Config WasmPlugin Log Config Args - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- Name string
- Identifier. Name of the WasmPlugin resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- main
Version StringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- versions
List<Wasm
Plugin Version> - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- description String
- Optional. A human-readable description of the resource.
- labels Map<String,String>
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location String
- The location of the traffic extension
- log
Config WasmPlugin Log Config - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- name String
- Identifier. Name of the WasmPlugin resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- main
Version stringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- versions
Wasm
Plugin Version[] - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- description string
- Optional. A human-readable description of the resource.
- labels {[key: string]: string}
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location string
- The location of the traffic extension
- log
Config WasmPlugin Log Config - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- name string
- Identifier. Name of the WasmPlugin resource.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- main_
version_ strid - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- versions
Sequence[Wasm
Plugin Version Args] - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- description str
- Optional. A human-readable description of the resource.
- labels Mapping[str, str]
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location str
- The location of the traffic extension
- log_
config WasmPlugin Log Config Args - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- name str
- Identifier. Name of the WasmPlugin resource.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- main
Version StringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- versions List<Property Map>
- All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- description String
- Optional. A human-readable description of the resource.
- labels Map<String>
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location String
- The location of the traffic extension
- log
Config Property Map - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- name String
- Identifier. Name of the WasmPlugin resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the WasmPlugin resource produces the following output properties:
- Create
Time string - Output only. The timestamp when the resource was created.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Output only. The timestamp when the resource was updated.
- Used
Bies List<WasmPlugin Used By> - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- Create
Time string - Output only. The timestamp when the resource was created.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Output only. The timestamp when the resource was updated.
- Used
Bies []WasmPlugin Used By - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- create
Time String - Output only. The timestamp when the resource was created.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String - Output only. The timestamp when the resource was updated.
- used
Bies List<WasmPlugin Used By> - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- create
Time string - Output only. The timestamp when the resource was created.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time string - Output only. The timestamp when the resource was updated.
- used
Bies WasmPlugin Used By[] - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- create_
time str - Output only. The timestamp when the resource was created.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- update_
time str - Output only. The timestamp when the resource was updated.
- used_
bies Sequence[WasmPlugin Used By] - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- create
Time String - Output only. The timestamp when the resource was created.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String - Output only. The timestamp when the resource was updated.
- used
Bies List<Property Map> - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
Look up Existing WasmPlugin Resource
Get an existing WasmPlugin 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?: WasmPluginState, opts?: CustomResourceOptions): WasmPlugin@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
log_config: Optional[WasmPluginLogConfigArgs] = None,
main_version_id: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
update_time: Optional[str] = None,
used_bies: Optional[Sequence[WasmPluginUsedByArgs]] = None,
versions: Optional[Sequence[WasmPluginVersionArgs]] = None) -> WasmPluginfunc GetWasmPlugin(ctx *Context, name string, id IDInput, state *WasmPluginState, opts ...ResourceOption) (*WasmPlugin, error)public static WasmPlugin Get(string name, Input<string> id, WasmPluginState? state, CustomResourceOptions? opts = null)public static WasmPlugin get(String name, Output<String> id, WasmPluginState state, CustomResourceOptions options)resources: _: type: gcp:networkservices:WasmPlugin 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.
- Create
Time string - Output only. The timestamp when the resource was created.
- Description string
- Optional. A human-readable description of the resource.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<string, string>
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - Location string
- The location of the traffic extension
- Log
Config WasmPlugin Log Config - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- Main
Version stringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- Name string
- Identifier. Name of the WasmPlugin resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Output only. The timestamp when the resource was updated.
- Used
Bies List<WasmPlugin Used By> - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- Versions
List<Wasm
Plugin Version> - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- Create
Time string - Output only. The timestamp when the resource was created.
- Description string
- Optional. A human-readable description of the resource.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels map[string]string
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - Location string
- The location of the traffic extension
- Log
Config WasmPlugin Log Config Args - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- Main
Version stringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- Name string
- Identifier. Name of the WasmPlugin resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Output only. The timestamp when the resource was updated.
- Used
Bies []WasmPlugin Used By Args - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- Versions
[]Wasm
Plugin Version Args - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- create
Time String - Output only. The timestamp when the resource was created.
- description String
- Optional. A human-readable description of the resource.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String,String>
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location String
- The location of the traffic extension
- log
Config WasmPlugin Log Config - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- main
Version StringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- name String
- Identifier. Name of the WasmPlugin resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String - Output only. The timestamp when the resource was updated.
- used
Bies List<WasmPlugin Used By> - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- versions
List<Wasm
Plugin Version> - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- create
Time string - Output only. The timestamp when the resource was created.
- description string
- Optional. A human-readable description of the resource.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: string]: string}
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location string
- The location of the traffic extension
- log
Config WasmPlugin Log Config - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- main
Version stringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- name string
- Identifier. Name of the WasmPlugin resource.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time string - Output only. The timestamp when the resource was updated.
- used
Bies WasmPlugin Used By[] - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- versions
Wasm
Plugin Version[] - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- create_
time str - Output only. The timestamp when the resource was created.
- description str
- Optional. A human-readable description of the resource.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location str
- The location of the traffic extension
- log_
config WasmPlugin Log Config Args - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- main_
version_ strid - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- name str
- Identifier. Name of the WasmPlugin resource.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- update_
time str - Output only. The timestamp when the resource was updated.
- used_
bies Sequence[WasmPlugin Used By Args] - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- versions
Sequence[Wasm
Plugin Version Args] - All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
- create
Time String - Output only. The timestamp when the resource was created.
- description String
- Optional. A human-readable description of the resource.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String>
- Optional. Set of labels associated with the WasmPlugin resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labelsfor all of the labels present on the resource. - location String
- The location of the traffic extension
- log
Config Property Map - Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
- main
Version StringId - The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
- name String
- Identifier. Name of the WasmPlugin resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String - Output only. The timestamp when the resource was updated.
- used
Bies List<Property Map> - Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
- versions List<Property Map>
- All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
Supporting Types
WasmPluginLogConfig, WasmPluginLogConfigArgs
- Enable bool
- Optional. Specifies whether to enable logging for activity by this plugin.
- Min
Log stringLevel - Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.
This field is can be set only if logging is enabled for the plugin.
If the field is not provided when logging is enabled, it is set to INFO by default.
Possible values are:
LOG_LEVEL_UNSPECIFIED,TRACE,DEBUG,INFO,WARN,ERROR,CRITICAL. - Sample
Rate double - Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
- Enable bool
- Optional. Specifies whether to enable logging for activity by this plugin.
- Min
Log stringLevel - Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.
This field is can be set only if logging is enabled for the plugin.
If the field is not provided when logging is enabled, it is set to INFO by default.
Possible values are:
LOG_LEVEL_UNSPECIFIED,TRACE,DEBUG,INFO,WARN,ERROR,CRITICAL. - Sample
Rate float64 - Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
- enable Boolean
- Optional. Specifies whether to enable logging for activity by this plugin.
- min
Log StringLevel - Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.
This field is can be set only if logging is enabled for the plugin.
If the field is not provided when logging is enabled, it is set to INFO by default.
Possible values are:
LOG_LEVEL_UNSPECIFIED,TRACE,DEBUG,INFO,WARN,ERROR,CRITICAL. - sample
Rate Double - Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
- enable boolean
- Optional. Specifies whether to enable logging for activity by this plugin.
- min
Log stringLevel - Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.
This field is can be set only if logging is enabled for the plugin.
If the field is not provided when logging is enabled, it is set to INFO by default.
Possible values are:
LOG_LEVEL_UNSPECIFIED,TRACE,DEBUG,INFO,WARN,ERROR,CRITICAL. - sample
Rate number - Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
- enable bool
- Optional. Specifies whether to enable logging for activity by this plugin.
- min_
log_ strlevel - Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.
This field is can be set only if logging is enabled for the plugin.
If the field is not provided when logging is enabled, it is set to INFO by default.
Possible values are:
LOG_LEVEL_UNSPECIFIED,TRACE,DEBUG,INFO,WARN,ERROR,CRITICAL. - sample_
rate float - Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
- enable Boolean
- Optional. Specifies whether to enable logging for activity by this plugin.
- min
Log StringLevel - Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.
This field is can be set only if logging is enabled for the plugin.
If the field is not provided when logging is enabled, it is set to INFO by default.
Possible values are:
LOG_LEVEL_UNSPECIFIED,TRACE,DEBUG,INFO,WARN,ERROR,CRITICAL. - sample
Rate Number - Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
WasmPluginUsedBy, WasmPluginUsedByArgs
- Name string
- Identifier. Name of the WasmPlugin resource.
- Name string
- Identifier. Name of the WasmPlugin resource.
- name String
- Identifier. Name of the WasmPlugin resource.
- name string
- Identifier. Name of the WasmPlugin resource.
- name str
- Identifier. Name of the WasmPlugin resource.
- name String
- Identifier. Name of the WasmPlugin resource.
WasmPluginVersion, WasmPluginVersionArgs
- Version
Name string - The identifier for this object. Format specified above.
- Create
Time string - (Output) Output only. The timestamp when the resource was created.
- Description string
- Optional. A human-readable description of the resource.
- Image
Digest string - (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
- Image
Uri string - Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
- Labels Dictionary<string, string>
- Optional. Set of labels associated with the WasmPlugin resource.
- Plugin
Config stringData - A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
- Plugin
Config stringDigest - (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
- Plugin
Config stringUri - URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
- Update
Time string - (Output) Output only. The timestamp when the resource was updated.
- Version
Name string - The identifier for this object. Format specified above.
- Create
Time string - (Output) Output only. The timestamp when the resource was created.
- Description string
- Optional. A human-readable description of the resource.
- Image
Digest string - (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
- Image
Uri string - Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
- Labels map[string]string
- Optional. Set of labels associated with the WasmPlugin resource.
- Plugin
Config stringData - A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
- Plugin
Config stringDigest - (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
- Plugin
Config stringUri - URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
- Update
Time string - (Output) Output only. The timestamp when the resource was updated.
- version
Name String - The identifier for this object. Format specified above.
- create
Time String - (Output) Output only. The timestamp when the resource was created.
- description String
- Optional. A human-readable description of the resource.
- image
Digest String - (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
- image
Uri String - Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
- labels Map<String,String>
- Optional. Set of labels associated with the WasmPlugin resource.
- plugin
Config StringData - A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
- plugin
Config StringDigest - (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
- plugin
Config StringUri - URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
- update
Time String - (Output) Output only. The timestamp when the resource was updated.
- version
Name string - The identifier for this object. Format specified above.
- create
Time string - (Output) Output only. The timestamp when the resource was created.
- description string
- Optional. A human-readable description of the resource.
- image
Digest string - (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
- image
Uri string - Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
- labels {[key: string]: string}
- Optional. Set of labels associated with the WasmPlugin resource.
- plugin
Config stringData - A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
- plugin
Config stringDigest - (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
- plugin
Config stringUri - URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
- update
Time string - (Output) Output only. The timestamp when the resource was updated.
- version_
name str - The identifier for this object. Format specified above.
- create_
time str - (Output) Output only. The timestamp when the resource was created.
- description str
- Optional. A human-readable description of the resource.
- image_
digest str - (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
- image_
uri str - Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
- labels Mapping[str, str]
- Optional. Set of labels associated with the WasmPlugin resource.
- plugin_
config_ strdata - A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
- plugin_
config_ strdigest - (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
- plugin_
config_ struri - URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
- update_
time str - (Output) Output only. The timestamp when the resource was updated.
- version
Name String - The identifier for this object. Format specified above.
- create
Time String - (Output) Output only. The timestamp when the resource was created.
- description String
- Optional. A human-readable description of the resource.
- image
Digest String - (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
- image
Uri String - Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
- labels Map<String>
- Optional. Set of labels associated with the WasmPlugin resource.
- plugin
Config StringData - A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
- plugin
Config StringDigest - (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
- plugin
Config StringUri - URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
- update
Time String - (Output) Output only. The timestamp when the resource was updated.
Import
WasmPlugin can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/wasmPlugins/{{name}}{{project}}/{{location}}/{{name}}{{location}}/{{name}}
When using the pulumi import command, WasmPlugin can be imported using one of the formats above. For example:
$ pulumi import gcp:networkservices/wasmPlugin:WasmPlugin default projects/{{project}}/locations/{{location}}/wasmPlugins/{{name}}
$ pulumi import gcp:networkservices/wasmPlugin:WasmPlugin default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:networkservices/wasmPlugin:WasmPlugin default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
