ReportArgs

data class ReportArgs(val offerGuid: Output<String>? = null, val reportName: Output<String>? = null, val resources: Output<List<ResourceMetadataArgs>>? = null, val storageInfo: Output<StorageInfoArgs>? = null, val timeZone: Output<String>? = null, val triggerTime: Output<String>? = null) : ConvertibleToJava<ReportArgs>

A class represent an AppComplianceAutomation report resource. Uses Azure REST API version 2024-06-27. In version 2.x of the Azure Native provider, it used API version 2022-11-16-preview. Other available API versions: 2022-11-16-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native appcomplianceautomation [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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()
{
OfferGuid = "00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002",
ReportName = "testReportName",
Resources = new[]
{
new AzureNative.AppComplianceAutomation.Inputs.ResourceMetadataArgs
{
ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
ResourceOrigin = AzureNative.AppComplianceAutomation.ResourceOrigin.Azure,
ResourceType = "Microsoft.SignalRService/SignalR",
},
},
StorageInfo = new AzureNative.AppComplianceAutomation.Inputs.StorageInfoArgs
{
AccountName = "testStorageAccount",
Location = "East US",
ResourceGroup = "testResourceGroup",
SubscriptionId = "00000000-0000-0000-0000-000000000000",
},
TimeZone = "GMT Standard Time",
TriggerTime = "2022-03-04T05:00:00.000Z",
});
});
package main
import (
appcomplianceautomation "github.com/pulumi/pulumi-azure-native-sdk/appcomplianceautomation/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appcomplianceautomation.NewReport(ctx, "report", &appcomplianceautomation.ReportArgs{
OfferGuid: pulumi.String("00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002"),
ReportName: pulumi.String("testReportName"),
Resources: appcomplianceautomation.ResourceMetadataArray{
&appcomplianceautomation.ResourceMetadataArgs{
ResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService"),
ResourceOrigin: pulumi.String(appcomplianceautomation.ResourceOriginAzure),
ResourceType: pulumi.String("Microsoft.SignalRService/SignalR"),
},
},
StorageInfo: &appcomplianceautomation.StorageInfoArgs{
AccountName: pulumi.String("testStorageAccount"),
Location: pulumi.String("East US"),
ResourceGroup: pulumi.String("testResourceGroup"),
SubscriptionId: pulumi.String("00000000-0000-0000-0000-000000000000"),
},
TimeZone: pulumi.String("GMT Standard Time"),
TriggerTime: pulumi.String("2022-03-04T05:00:00.000Z"),
})
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.ResourceMetadataArgs;
import com.pulumi.azurenative.appcomplianceautomation.inputs.StorageInfoArgs;
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()
.offerGuid("00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002")
.reportName("testReportName")
.resources(ResourceMetadataArgs.builder()
.resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService")
.resourceOrigin("Azure")
.resourceType("Microsoft.SignalRService/SignalR")
.build())
.storageInfo(StorageInfoArgs.builder()
.accountName("testStorageAccount")
.location("East US")
.resourceGroup("testResourceGroup")
.subscriptionId("00000000-0000-0000-0000-000000000000")
.build())
.timeZone("GMT Standard Time")
.triggerTime("2022-03-04T05:00:00.000Z")
.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(offerGuid: Output<String>? = null, reportName: Output<String>? = null, resources: Output<List<ResourceMetadataArgs>>? = null, storageInfo: Output<StorageInfoArgs>? = null, timeZone: Output<String>? = null, triggerTime: Output<String>? = null)

Properties

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

A list of comma-separated offerGuids indicates a series of offerGuids that map to the report. For example, "00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002" and "00000000-0000-0000-0000-000000000003".

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

Report Name.

Link copied to clipboard
val resources: Output<List<ResourceMetadataArgs>>? = null

List of resource data.

Link copied to clipboard
val storageInfo: Output<StorageInfoArgs>? = null

The information of 'bring your own storage' binding to the report

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

Report collection trigger time's time zone, the available list can be obtained by executing "Get-TimeZone -ListAvailable" in PowerShell. An example of valid timezone id is "Pacific Standard Time".

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

Report collection trigger time.

Functions

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