AssessmentArgs

data class AssessmentArgs(val assessmentReportsDestination: Output<AssessmentAssessmentReportsDestinationArgs>? = null, val description: Output<String>? = null, val frameworkId: Output<String>? = null, val name: Output<String>? = null, val roles: Output<List<AssessmentRoleArgs>>? = null, val scope: Output<AssessmentScopeArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AssessmentArgs>

Resource for managing an AWS Audit Manager Assessment.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.auditmanager.Assessment;
import com.pulumi.aws.auditmanager.AssessmentArgs;
import com.pulumi.aws.auditmanager.inputs.AssessmentAssessmentReportsDestinationArgs;
import com.pulumi.aws.auditmanager.inputs.AssessmentRoleArgs;
import com.pulumi.aws.auditmanager.inputs.AssessmentScopeArgs;
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 test = new Assessment("test", AssessmentArgs.builder()
.assessmentReportsDestination(AssessmentAssessmentReportsDestinationArgs.builder()
.destination(String.format("s3://%s", aws_s3_bucket.test().id()))
.destinationType("S3")
.build())
.frameworkId(aws_auditmanager_framework.test().id())
.roles(AssessmentRoleArgs.builder()
.roleArn(aws_iam_role.test().arn())
.roleType("PROCESS_OWNER")
.build())
.scope(AssessmentScopeArgs.builder()
.awsAccounts(AssessmentScopeAwsAccountArgs.builder()
.id(data.aws_caller_identity().current().account_id())
.build())
.awsServices(AssessmentScopeAwsServiceArgs.builder()
.serviceName("S3")
.build())
.build())
.build());
}
}

Import

Using pulumi import, import Audit Manager Assessments using the assessment id. For example:

$ pulumi import aws:auditmanager/assessment:Assessment example abc123-de45

Constructors

Link copied to clipboard
fun AssessmentArgs(assessmentReportsDestination: Output<AssessmentAssessmentReportsDestinationArgs>? = null, description: Output<String>? = null, frameworkId: Output<String>? = null, name: Output<String>? = null, roles: Output<List<AssessmentRoleArgs>>? = null, scope: Output<AssessmentScopeArgs>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AssessmentArgs

Properties

Link copied to clipboard

Assessment report storage destination configuration. See assessment_reports_destination below.

Link copied to clipboard
val description: Output<String>? = null

Description of the assessment.

Link copied to clipboard
val frameworkId: Output<String>? = null

Unique identifier of the framework the assessment will be created from.

Link copied to clipboard
val name: Output<String>? = null

Name of the assessment.

Link copied to clipboard
val roles: Output<List<AssessmentRoleArgs>>? = null

List of roles for the assessment. See roles below.

Link copied to clipboard
val scope: Output<AssessmentScopeArgs>? = null

Amazon Web Services accounts and services that are in scope for the assessment. See scope below. The following arguments are optional:

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

A map of tags to assign to the assessment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.