Class AssessmentTemplate
Provides a Inspector assessment template
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Inspector.AssessmentTemplate("example", new Aws.Inspector.AssessmentTemplateArgs
{
Duration = 3600,
RulesPackageArns =
{
"arn:aws:inspector:us-west-2:758058086616:rulespackage/0-9hgA516p",
"arn:aws:inspector:us-west-2:758058086616:rulespackage/0-H5hpSawc",
"arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ",
"arn:aws:inspector:us-west-2:758058086616:rulespackage/0-vg5GGHSD",
},
TargetArn = aws_inspector_assessment_target.Example.Arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Inspector
Assembly: Pulumi.Aws.dll
Syntax
public class AssessmentTemplate : CustomResource
Constructors
View SourceAssessmentTemplate(String, AssessmentTemplateArgs, CustomResourceOptions)
Create a AssessmentTemplate resource with the given unique name, arguments, and options.
Declaration
public AssessmentTemplate(string name, AssessmentTemplateArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AssessmentTemplateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The template assessment ARN.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Duration
The duration of the inspector run.
Declaration
public Output<int> Duration { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Name
The name of the assessment template.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RulesPackageArns
The rules to be used during the run.
Declaration
public Output<ImmutableArray<string>> RulesPackageArns { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Tags
Key-value map of tags for the Inspector assessment template.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
TargetArn
The assessment target ARN to attach the template to.
Declaration
public Output<string> TargetArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AssessmentTemplateState, CustomResourceOptions)
Get an existing AssessmentTemplate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AssessmentTemplate Get(string name, Input<string> id, AssessmentTemplateState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AssessmentTemplateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AssessmentTemplate |