ReportArgs

data class ReportArgs(val properties: Output<ReportPropertiesArgs>? = null, val reportName: Output<String>? = null) : ConvertibleToJava<ReportArgs>

A class represent an AppComplianceAutomation report resource. API Version: 2022-11-16-preview.

Example Usage

Report_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var report = new AzureNative.AppComplianceAutomation.Report("report", new()
{
Properties = new AzureNative.AppComplianceAutomation.Inputs.ReportPropertiesArgs
{
OfferGuid = "0000",
Resources = new[]
{
new AzureNative.AppComplianceAutomation.Inputs.ResourceMetadataArgs
{
ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint",
Tags =
{
{ "key1", "value1" },
},
},
},
TimeZone = "GMT Standard Time",
TriggerTime = "2022-03-04T05:11:56.197Z",
},
ReportName = "testReportName",
});
});
package main
import (
appcomplianceautomation "github.com/pulumi/pulumi-azure-native-sdk/appcomplianceautomation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appcomplianceautomation.NewReport(ctx, "report", &appcomplianceautomation.ReportArgs{
Properties: appcomplianceautomation.ReportPropertiesResponse{
OfferGuid: pulumi.String("0000"),
Resources: appcomplianceautomation.ResourceMetadataArray{
&appcomplianceautomation.ResourceMetadataArgs{
ResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"),
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
},
},
TimeZone: pulumi.String("GMT Standard Time"),
TriggerTime: pulumi.String("2022-03-04T05:11:56.197Z"),
},
ReportName: pulumi.String("testReportName"),
})
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.azurenative.appcomplianceautomation.Report;
import com.pulumi.azurenative.appcomplianceautomation.ReportArgs;
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 report = new Report("report", ReportArgs.builder()
.properties(Map.ofEntries(
Map.entry("offerGuid", "0000"),
Map.entry("resources", Map.ofEntries(
Map.entry("resourceId", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"),
Map.entry("tags", Map.of("key1", "value1"))
)),
Map.entry("timeZone", "GMT Standard Time"),
Map.entry("triggerTime", "2022-03-04T05:11:56.197Z")
))
.reportName("testReportName")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:appcomplianceautomation:Report testReportName /provider/Microsfot.AppComplianceAutomation/reports/testReportName

Constructors

Link copied to clipboard
constructor(properties: Output<ReportPropertiesArgs>? = null, reportName: Output<String>? = null)

Properties

Link copied to clipboard
val properties: Output<ReportPropertiesArgs>? = null

Report property.

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

Report Name.

Functions

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