ReportArgs

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

A class represent an AppComplianceAutomation report resource. Uses Azure REST API version 2022-11-16-preview. In version 1.x of the Azure Native provider, it used API version 2022-11-16-preview. Other available API versions: 2024-06-27.

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/v2"
"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.ReportPropertiesArgs{
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 com.pulumi.azurenative.appcomplianceautomation.inputs.ReportPropertiesArgs;
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(ReportPropertiesArgs.builder()
.offerGuid("0000")
.resources(ResourceMetadataArgs.builder()
.resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint")
.tags(Map.of("key1", "value1"))
.build())
.timeZone("GMT Standard Time")
.triggerTime("2022-03-04T05:11:56.197Z")
.build())
.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 /providers/Microsoft.AppComplianceAutomation/reports/{reportName}

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