Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
dynatrace.VulnerabilityCode
Explore with Pulumi AI
Create VulnerabilityCode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VulnerabilityCode(name: string, args: VulnerabilityCodeArgs, opts?: CustomResourceOptions);
@overload
def VulnerabilityCode(resource_name: str,
args: VulnerabilityCodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VulnerabilityCode(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
metadata: Optional[VulnerabilityCodeMetadataArgs] = None,
vulnerability_detection_control: Optional[VulnerabilityCodeVulnerabilityDetectionControlArgs] = None,
criteria: Optional[VulnerabilityCodeCriteriaArgs] = None,
insert_after: Optional[str] = None)
func NewVulnerabilityCode(ctx *Context, name string, args VulnerabilityCodeArgs, opts ...ResourceOption) (*VulnerabilityCode, error)
public VulnerabilityCode(string name, VulnerabilityCodeArgs args, CustomResourceOptions? opts = null)
public VulnerabilityCode(String name, VulnerabilityCodeArgs args)
public VulnerabilityCode(String name, VulnerabilityCodeArgs args, CustomResourceOptions options)
type: dynatrace:VulnerabilityCode
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 VulnerabilityCodeArgs
- 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 VulnerabilityCodeArgs
- 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 VulnerabilityCodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VulnerabilityCodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VulnerabilityCodeArgs
- 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 vulnerabilityCodeResource = new Dynatrace.VulnerabilityCode("vulnerabilityCodeResource", new()
{
Enabled = false,
Metadata = new Dynatrace.Inputs.VulnerabilityCodeMetadataArgs
{
Comment = "string",
},
VulnerabilityDetectionControl = new Dynatrace.Inputs.VulnerabilityCodeVulnerabilityDetectionControlArgs
{
MonitoringMode = "string",
},
Criteria = new Dynatrace.Inputs.VulnerabilityCodeCriteriaArgs
{
ProcessGroup = "string",
},
InsertAfter = "string",
});
example, err := dynatrace.NewVulnerabilityCode(ctx, "vulnerabilityCodeResource", &dynatrace.VulnerabilityCodeArgs{
Enabled: pulumi.Bool(false),
Metadata: &dynatrace.VulnerabilityCodeMetadataArgs{
Comment: pulumi.String("string"),
},
VulnerabilityDetectionControl: &dynatrace.VulnerabilityCodeVulnerabilityDetectionControlArgs{
MonitoringMode: pulumi.String("string"),
},
Criteria: &dynatrace.VulnerabilityCodeCriteriaArgs{
ProcessGroup: pulumi.String("string"),
},
InsertAfter: pulumi.String("string"),
})
var vulnerabilityCodeResource = new VulnerabilityCode("vulnerabilityCodeResource", VulnerabilityCodeArgs.builder()
.enabled(false)
.metadata(VulnerabilityCodeMetadataArgs.builder()
.comment("string")
.build())
.vulnerabilityDetectionControl(VulnerabilityCodeVulnerabilityDetectionControlArgs.builder()
.monitoringMode("string")
.build())
.criteria(VulnerabilityCodeCriteriaArgs.builder()
.processGroup("string")
.build())
.insertAfter("string")
.build());
vulnerability_code_resource = dynatrace.VulnerabilityCode("vulnerabilityCodeResource",
enabled=False,
metadata=dynatrace.VulnerabilityCodeMetadataArgs(
comment="string",
),
vulnerability_detection_control=dynatrace.VulnerabilityCodeVulnerabilityDetectionControlArgs(
monitoring_mode="string",
),
criteria=dynatrace.VulnerabilityCodeCriteriaArgs(
process_group="string",
),
insert_after="string")
const vulnerabilityCodeResource = new dynatrace.VulnerabilityCode("vulnerabilityCodeResource", {
enabled: false,
metadata: {
comment: "string",
},
vulnerabilityDetectionControl: {
monitoringMode: "string",
},
criteria: {
processGroup: "string",
},
insertAfter: "string",
});
type: dynatrace:VulnerabilityCode
properties:
criteria:
processGroup: string
enabled: false
insertAfter: string
metadata:
comment: string
vulnerabilityDetectionControl:
monitoringMode: string
VulnerabilityCode Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VulnerabilityCode resource accepts the following input properties:
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metadata
Pulumiverse.
Dynatrace. Inputs. Vulnerability Code Metadata - Step 3: Leave comment
- Vulnerability
Detection Pulumiverse.Control Dynatrace. Inputs. Vulnerability Code Vulnerability Detection Control - Step 2: Define code-level vulnerability detection control for chosen criteria
- Criteria
Pulumiverse.
Dynatrace. Inputs. Vulnerability Code Criteria - Step 1: Define criteria
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metadata
Vulnerability
Code Metadata Args - Step 3: Leave comment
- Vulnerability
Detection VulnerabilityControl Code Vulnerability Detection Control Args - Step 2: Define code-level vulnerability detection control for chosen criteria
- Criteria
Vulnerability
Code Criteria Args - Step 1: Define criteria
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - metadata
Vulnerability
Code Metadata - Step 3: Leave comment
- vulnerability
Detection VulnerabilityControl Code Vulnerability Detection Control - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria
Vulnerability
Code Criteria - Step 1: Define criteria
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - metadata
Vulnerability
Code Metadata - Step 3: Leave comment
- vulnerability
Detection VulnerabilityControl Code Vulnerability Detection Control - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria
Vulnerability
Code Criteria - Step 1: Define criteria
- insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - metadata
Vulnerability
Code Metadata Args - Step 3: Leave comment
- vulnerability_
detection_ Vulnerabilitycontrol Code Vulnerability Detection Control Args - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria
Vulnerability
Code Criteria Args - Step 1: Define criteria
- insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - metadata Property Map
- Step 3: Leave comment
- vulnerability
Detection Property MapControl - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria Property Map
- Step 1: Define criteria
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
Outputs
All input properties are implicitly available as output properties. Additionally, the VulnerabilityCode 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 VulnerabilityCode Resource
Get an existing VulnerabilityCode 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?: VulnerabilityCodeState, opts?: CustomResourceOptions): VulnerabilityCode
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
criteria: Optional[VulnerabilityCodeCriteriaArgs] = None,
enabled: Optional[bool] = None,
insert_after: Optional[str] = None,
metadata: Optional[VulnerabilityCodeMetadataArgs] = None,
vulnerability_detection_control: Optional[VulnerabilityCodeVulnerabilityDetectionControlArgs] = None) -> VulnerabilityCode
func GetVulnerabilityCode(ctx *Context, name string, id IDInput, state *VulnerabilityCodeState, opts ...ResourceOption) (*VulnerabilityCode, error)
public static VulnerabilityCode Get(string name, Input<string> id, VulnerabilityCodeState? state, CustomResourceOptions? opts = null)
public static VulnerabilityCode get(String name, Output<String> id, VulnerabilityCodeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Criteria
Pulumiverse.
Dynatrace. Inputs. Vulnerability Code Criteria - Step 1: Define criteria
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Metadata
Pulumiverse.
Dynatrace. Inputs. Vulnerability Code Metadata - Step 3: Leave comment
- Vulnerability
Detection Pulumiverse.Control Dynatrace. Inputs. Vulnerability Code Vulnerability Detection Control - Step 2: Define code-level vulnerability detection control for chosen criteria
- Criteria
Vulnerability
Code Criteria Args - Step 1: Define criteria
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Metadata
Vulnerability
Code Metadata Args - Step 3: Leave comment
- Vulnerability
Detection VulnerabilityControl Code Vulnerability Detection Control Args - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria
Vulnerability
Code Criteria - Step 1: Define criteria
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- metadata
Vulnerability
Code Metadata - Step 3: Leave comment
- vulnerability
Detection VulnerabilityControl Code Vulnerability Detection Control - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria
Vulnerability
Code Criteria - Step 1: Define criteria
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- metadata
Vulnerability
Code Metadata - Step 3: Leave comment
- vulnerability
Detection VulnerabilityControl Code Vulnerability Detection Control - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria
Vulnerability
Code Criteria Args - Step 1: Define criteria
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- metadata
Vulnerability
Code Metadata Args - Step 3: Leave comment
- vulnerability_
detection_ Vulnerabilitycontrol Code Vulnerability Detection Control Args - Step 2: Define code-level vulnerability detection control for chosen criteria
- criteria Property Map
- Step 1: Define criteria
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- metadata Property Map
- Step 3: Leave comment
- vulnerability
Detection Property MapControl - Step 2: Define code-level vulnerability detection control for chosen criteria
Supporting Types
VulnerabilityCodeCriteria, VulnerabilityCodeCriteriaArgs
- Process
Group string - Process group
- Process
Group string - Process group
- process
Group String - Process group
- process
Group string - Process group
- process_
group str - Process group
- process
Group String - Process group
VulnerabilityCodeMetadata, VulnerabilityCodeMetadataArgs
- Comment string
- no documentation available
- Comment string
- no documentation available
- comment String
- no documentation available
- comment string
- no documentation available
- comment str
- no documentation available
- comment String
- no documentation available
VulnerabilityCodeVulnerabilityDetectionControl, VulnerabilityCodeVulnerabilityDetectionControlArgs
- Monitoring
Mode string - Possible Values:
MONITORING_OFF
,MONITORING_ON
- Monitoring
Mode string - Possible Values:
MONITORING_OFF
,MONITORING_ON
- monitoring
Mode String - Possible Values:
MONITORING_OFF
,MONITORING_ON
- monitoring
Mode string - Possible Values:
MONITORING_OFF
,MONITORING_ON
- monitoring_
mode str - Possible Values:
MONITORING_OFF
,MONITORING_ON
- monitoring
Mode String - Possible Values:
MONITORING_OFF
,MONITORING_ON
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.