Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AssessmentTemplate
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Inspector
Assembly: Pulumi.Aws.dll
Syntax
public class AssessmentTemplate : CustomResource

Constructors

View Source

AssessmentTemplate(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 Source

Arn

The template assessment ARN.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Duration

The duration of the inspector run.

Declaration
public Output<int> Duration { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Name

The name of the assessment template.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.