Try AWS Native preview for resources not in the classic version.
aws.auditmanager.AssessmentReport
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Resource for managing an AWS Audit Manager Assessment Report.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Auditmanager.AssessmentReport("test", new()
{
AssessmentId = aws_auditmanager_assessment.Test.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auditmanager.NewAssessmentReport(ctx, "test", &auditmanager.AssessmentReportArgs{
AssessmentId: pulumi.Any(aws_auditmanager_assessment.Test.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.auditmanager.AssessmentReport;
import com.pulumi.aws.auditmanager.AssessmentReportArgs;
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 AssessmentReport("test", AssessmentReportArgs.builder()
.assessmentId(aws_auditmanager_assessment.test().id())
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.auditmanager.AssessmentReport("test", assessment_id=aws_auditmanager_assessment["test"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.auditmanager.AssessmentReport("test", {assessmentId: aws_auditmanager_assessment.test.id});
resources:
test:
type: aws:auditmanager:AssessmentReport
properties:
assessmentId: ${aws_auditmanager_assessment.test.id}
Create AssessmentReport Resource
new AssessmentReport(name: string, args: AssessmentReportArgs, opts?: CustomResourceOptions);
@overload
def AssessmentReport(resource_name: str,
opts: Optional[ResourceOptions] = None,
assessment_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
@overload
def AssessmentReport(resource_name: str,
args: AssessmentReportArgs,
opts: Optional[ResourceOptions] = None)
func NewAssessmentReport(ctx *Context, name string, args AssessmentReportArgs, opts ...ResourceOption) (*AssessmentReport, error)
public AssessmentReport(string name, AssessmentReportArgs args, CustomResourceOptions? opts = null)
public AssessmentReport(String name, AssessmentReportArgs args)
public AssessmentReport(String name, AssessmentReportArgs args, CustomResourceOptions options)
type: aws:auditmanager:AssessmentReport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssessmentReportArgs
- 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 AssessmentReportArgs
- 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 AssessmentReportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssessmentReportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AssessmentReportArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AssessmentReport 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 AssessmentReport resource accepts the following input properties:
- Assessment
Id string Unique identifier of the assessment to create the report from.
The following arguments are optional:
- Description string
Description of the assessment report.
- Name string
Name of the assessment report.
- Assessment
Id string Unique identifier of the assessment to create the report from.
The following arguments are optional:
- Description string
Description of the assessment report.
- Name string
Name of the assessment report.
- assessment
Id String Unique identifier of the assessment to create the report from.
The following arguments are optional:
- description String
Description of the assessment report.
- name String
Name of the assessment report.
- assessment
Id string Unique identifier of the assessment to create the report from.
The following arguments are optional:
- description string
Description of the assessment report.
- name string
Name of the assessment report.
- assessment_
id str Unique identifier of the assessment to create the report from.
The following arguments are optional:
- description str
Description of the assessment report.
- name str
Name of the assessment report.
- assessment
Id String Unique identifier of the assessment to create the report from.
The following arguments are optional:
- description String
Description of the assessment report.
- name String
Name of the assessment report.
Outputs
All input properties are implicitly available as output properties. Additionally, the AssessmentReport resource produces the following output properties:
Look up Existing AssessmentReport Resource
Get an existing AssessmentReport 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?: AssessmentReportState, opts?: CustomResourceOptions): AssessmentReport
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assessment_id: Optional[str] = None,
author: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
status: Optional[str] = None) -> AssessmentReport
func GetAssessmentReport(ctx *Context, name string, id IDInput, state *AssessmentReportState, opts ...ResourceOption) (*AssessmentReport, error)
public static AssessmentReport Get(string name, Input<string> id, AssessmentReportState? state, CustomResourceOptions? opts = null)
public static AssessmentReport get(String name, Output<String> id, AssessmentReportState 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.
- Assessment
Id string Unique identifier of the assessment to create the report from.
The following arguments are optional:
- string
Name of the user who created the assessment report.
- Description string
Description of the assessment report.
- Name string
Name of the assessment report.
- Status string
Current status of the specified assessment report. Valid values are
COMPLETE
,IN_PROGRESS
, andFAILED
.
- Assessment
Id string Unique identifier of the assessment to create the report from.
The following arguments are optional:
- string
Name of the user who created the assessment report.
- Description string
Description of the assessment report.
- Name string
Name of the assessment report.
- Status string
Current status of the specified assessment report. Valid values are
COMPLETE
,IN_PROGRESS
, andFAILED
.
- assessment
Id String Unique identifier of the assessment to create the report from.
The following arguments are optional:
- String
Name of the user who created the assessment report.
- description String
Description of the assessment report.
- name String
Name of the assessment report.
- status String
Current status of the specified assessment report. Valid values are
COMPLETE
,IN_PROGRESS
, andFAILED
.
- assessment
Id string Unique identifier of the assessment to create the report from.
The following arguments are optional:
- string
Name of the user who created the assessment report.
- description string
Description of the assessment report.
- name string
Name of the assessment report.
- status string
Current status of the specified assessment report. Valid values are
COMPLETE
,IN_PROGRESS
, andFAILED
.
- assessment_
id str Unique identifier of the assessment to create the report from.
The following arguments are optional:
- str
Name of the user who created the assessment report.
- description str
Description of the assessment report.
- name str
Name of the assessment report.
- status str
Current status of the specified assessment report. Valid values are
COMPLETE
,IN_PROGRESS
, andFAILED
.
- assessment
Id String Unique identifier of the assessment to create the report from.
The following arguments are optional:
- String
Name of the user who created the assessment report.
- description String
Description of the assessment report.
- name String
Name of the assessment report.
- status String
Current status of the specified assessment report. Valid values are
COMPLETE
,IN_PROGRESS
, andFAILED
.
Import
Using pulumi import
, import Audit Manager Assessment Reports using the assessment report id
. For example:
$ pulumi import aws:auditmanager/assessmentReport:AssessmentReport example abc123-de45
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.