AssessmentTemplate

Provides a Inspector assessment template

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.inspector.AssessmentTemplate;
import com.pulumi.aws.inspector.AssessmentTemplateArgs;
import com.pulumi.aws.inspector.inputs.AssessmentTemplateEventSubscriptionArgs;
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 example = new AssessmentTemplate("example", AssessmentTemplateArgs.builder()
.targetArn(aws_inspector_assessment_target.example().arn())
.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")
.eventSubscriptions(AssessmentTemplateEventSubscriptionArgs.builder()
.event("ASSESSMENT_RUN_COMPLETED")
.topicArn(aws_sns_topic.example().arn())
.build())
.build());
}
}

Import

aws_inspector_assessment_template can be imported by using the template assessment ARN, e.g.,

$ pulumi import aws:inspector/assessmentTemplate:AssessmentTemplate example arn:aws:inspector:us-west-2:123456789012:target/0-9IaAzhGR/template/0-WEcjR8CH

Properties

Link copied to clipboard
val arn: Output<String>

The template assessment ARN.

Link copied to clipboard
val duration: Output<Int>

The duration of the inspector run.

Link copied to clipboard

A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the assessment template.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The rules to be used during the run.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of tags for the Inspector assessment template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val targetArn: Output<String>

The assessment target ARN to attach the template to.

Link copied to clipboard
val urn: Output<String>