azure-native.appcomplianceautomation.Evidence
Explore with Pulumi AI
A class represent an AppComplianceAutomation evidence resource. Azure REST API version: 2024-06-27.
Example Usage
Evidence_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var evidence = new AzureNative.AppComplianceAutomation.Evidence("evidence", new()
    {
        ControlId = "Operational_Security_10",
        EvidenceName = "evidence1",
        EvidenceType = AzureNative.AppComplianceAutomation.EvidenceType.File,
        FilePath = "/test-byos/evidence1.png",
        ReportName = "testReportName",
        ResponsibilityId = "authorized_ip_ranges_should_be_defined_on_kubernetes_services",
    });
});
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.NewEvidence(ctx, "evidence", &appcomplianceautomation.EvidenceArgs{
			ControlId:        pulumi.String("Operational_Security_10"),
			EvidenceName:     pulumi.String("evidence1"),
			EvidenceType:     pulumi.String(appcomplianceautomation.EvidenceTypeFile),
			FilePath:         pulumi.String("/test-byos/evidence1.png"),
			ReportName:       pulumi.String("testReportName"),
			ResponsibilityId: pulumi.String("authorized_ip_ranges_should_be_defined_on_kubernetes_services"),
		})
		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.Evidence;
import com.pulumi.azurenative.appcomplianceautomation.EvidenceArgs;
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 evidence = new Evidence("evidence", EvidenceArgs.builder()
            .controlId("Operational_Security_10")
            .evidenceName("evidence1")
            .evidenceType("File")
            .filePath("/test-byos/evidence1.png")
            .reportName("testReportName")
            .responsibilityId("authorized_ip_ranges_should_be_defined_on_kubernetes_services")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const evidence = new azure_native.appcomplianceautomation.Evidence("evidence", {
    controlId: "Operational_Security_10",
    evidenceName: "evidence1",
    evidenceType: azure_native.appcomplianceautomation.EvidenceType.File,
    filePath: "/test-byos/evidence1.png",
    reportName: "testReportName",
    responsibilityId: "authorized_ip_ranges_should_be_defined_on_kubernetes_services",
});
import pulumi
import pulumi_azure_native as azure_native
evidence = azure_native.appcomplianceautomation.Evidence("evidence",
    control_id="Operational_Security_10",
    evidence_name="evidence1",
    evidence_type=azure_native.appcomplianceautomation.EvidenceType.FILE,
    file_path="/test-byos/evidence1.png",
    report_name="testReportName",
    responsibility_id="authorized_ip_ranges_should_be_defined_on_kubernetes_services")
resources:
  evidence:
    type: azure-native:appcomplianceautomation:Evidence
    properties:
      controlId: Operational_Security_10
      evidenceName: evidence1
      evidenceType: File
      filePath: /test-byos/evidence1.png
      reportName: testReportName
      responsibilityId: authorized_ip_ranges_should_be_defined_on_kubernetes_services
Create Evidence Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Evidence(name: string, args: EvidenceArgs, opts?: CustomResourceOptions);@overload
def Evidence(resource_name: str,
             args: EvidenceArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Evidence(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             file_path: Optional[str] = None,
             report_name: Optional[str] = None,
             control_id: Optional[str] = None,
             evidence_name: Optional[str] = None,
             evidence_type: Optional[Union[str, EvidenceType]] = None,
             extra_data: Optional[str] = None,
             offer_guid: Optional[str] = None,
             report_creator_tenant_id: Optional[str] = None,
             responsibility_id: Optional[str] = None)func NewEvidence(ctx *Context, name string, args EvidenceArgs, opts ...ResourceOption) (*Evidence, error)public Evidence(string name, EvidenceArgs args, CustomResourceOptions? opts = null)
public Evidence(String name, EvidenceArgs args)
public Evidence(String name, EvidenceArgs args, CustomResourceOptions options)
type: azure-native:appcomplianceautomation:Evidence
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EvidenceArgs
- 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 EvidenceArgs
- 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 EvidenceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EvidenceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EvidenceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var evidenceResource = new AzureNative.AppComplianceAutomation.Evidence("evidenceResource", new()
{
    FilePath = "string",
    ReportName = "string",
    ControlId = "string",
    EvidenceName = "string",
    EvidenceType = "string",
    ExtraData = "string",
    OfferGuid = "string",
    ReportCreatorTenantId = "string",
    ResponsibilityId = "string",
});
example, err := appcomplianceautomation.NewEvidence(ctx, "evidenceResource", &appcomplianceautomation.EvidenceArgs{
	FilePath:              pulumi.String("string"),
	ReportName:            pulumi.String("string"),
	ControlId:             pulumi.String("string"),
	EvidenceName:          pulumi.String("string"),
	EvidenceType:          pulumi.String("string"),
	ExtraData:             pulumi.String("string"),
	OfferGuid:             pulumi.String("string"),
	ReportCreatorTenantId: pulumi.String("string"),
	ResponsibilityId:      pulumi.String("string"),
})
var evidenceResource = new Evidence("evidenceResource", EvidenceArgs.builder()
    .filePath("string")
    .reportName("string")
    .controlId("string")
    .evidenceName("string")
    .evidenceType("string")
    .extraData("string")
    .offerGuid("string")
    .reportCreatorTenantId("string")
    .responsibilityId("string")
    .build());
evidence_resource = azure_native.appcomplianceautomation.Evidence("evidenceResource",
    file_path="string",
    report_name="string",
    control_id="string",
    evidence_name="string",
    evidence_type="string",
    extra_data="string",
    offer_guid="string",
    report_creator_tenant_id="string",
    responsibility_id="string")
const evidenceResource = new azure_native.appcomplianceautomation.Evidence("evidenceResource", {
    filePath: "string",
    reportName: "string",
    controlId: "string",
    evidenceName: "string",
    evidenceType: "string",
    extraData: "string",
    offerGuid: "string",
    reportCreatorTenantId: "string",
    responsibilityId: "string",
});
type: azure-native:appcomplianceautomation:Evidence
properties:
    controlId: string
    evidenceName: string
    evidenceType: string
    extraData: string
    filePath: string
    offerGuid: string
    reportCreatorTenantId: string
    reportName: string
    responsibilityId: string
Evidence Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Evidence resource accepts the following input properties:
- FilePath string
- The path of the file in storage.
- ReportName string
- Report Name.
- ControlId string
- Control id.
- EvidenceName string
- The evidence name.
- EvidenceType string | Pulumi.Azure Native. App Compliance Automation. Evidence Type 
- Evidence type.
- ExtraData string
- Extra data considered as evidence.
- OfferGuid string
- The offerGuid which mapping to the reports.
- ReportCreator stringTenant Id 
- The tenant id of the report creator.
- ResponsibilityId string
- Responsibility id.
- FilePath string
- The path of the file in storage.
- ReportName string
- Report Name.
- ControlId string
- Control id.
- EvidenceName string
- The evidence name.
- EvidenceType string | EvidenceType 
- Evidence type.
- ExtraData string
- Extra data considered as evidence.
- OfferGuid string
- The offerGuid which mapping to the reports.
- ReportCreator stringTenant Id 
- The tenant id of the report creator.
- ResponsibilityId string
- Responsibility id.
- filePath String
- The path of the file in storage.
- reportName String
- Report Name.
- controlId String
- Control id.
- evidenceName String
- The evidence name.
- evidenceType String | EvidenceType 
- Evidence type.
- extraData String
- Extra data considered as evidence.
- offerGuid String
- The offerGuid which mapping to the reports.
- reportCreator StringTenant Id 
- The tenant id of the report creator.
- responsibilityId String
- Responsibility id.
- filePath string
- The path of the file in storage.
- reportName string
- Report Name.
- controlId string
- Control id.
- evidenceName string
- The evidence name.
- evidenceType string | EvidenceType 
- Evidence type.
- extraData string
- Extra data considered as evidence.
- offerGuid string
- The offerGuid which mapping to the reports.
- reportCreator stringTenant Id 
- The tenant id of the report creator.
- responsibilityId string
- Responsibility id.
- file_path str
- The path of the file in storage.
- report_name str
- Report Name.
- control_id str
- Control id.
- evidence_name str
- The evidence name.
- evidence_type str | EvidenceType 
- Evidence type.
- extra_data str
- Extra data considered as evidence.
- offer_guid str
- The offerGuid which mapping to the reports.
- report_creator_ strtenant_ id 
- The tenant id of the report creator.
- responsibility_id str
- Responsibility id.
- filePath String
- The path of the file in storage.
- reportName String
- Report Name.
- controlId String
- Control id.
- evidenceName String
- The evidence name.
- evidenceType String | "File" | "AutoCollected Evidence" | "Data" 
- Evidence type.
- extraData String
- Extra data considered as evidence.
- offerGuid String
- The offerGuid which mapping to the reports.
- reportCreator StringTenant Id 
- The tenant id of the report creator.
- responsibilityId String
- Responsibility id.
Outputs
All input properties are implicitly available as output properties. Additionally, the Evidence resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- Azure lifecycle management
- SystemData Pulumi.Azure Native. App Compliance Automation. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- Azure lifecycle management
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- Azure lifecycle management
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioningState string
- Azure lifecycle management
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_state str
- Azure lifecycle management
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- Azure lifecycle management
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
EvidenceType, EvidenceTypeArgs    
- File
- FileThe evidence is a file.
- AutoCollected Evidence 
- AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- Data
- DataThe evidence is data.
- EvidenceType File 
- FileThe evidence is a file.
- EvidenceType Auto Collected Evidence 
- AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- EvidenceType Data 
- DataThe evidence is data.
- File
- FileThe evidence is a file.
- AutoCollected Evidence 
- AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- Data
- DataThe evidence is data.
- File
- FileThe evidence is a file.
- AutoCollected Evidence 
- AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- Data
- DataThe evidence is data.
- FILE
- FileThe evidence is a file.
- AUTO_COLLECTED_EVIDENCE
- AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- DATA
- DataThe evidence is data.
- "File"
- FileThe evidence is a file.
- "AutoCollected Evidence" 
- AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- "Data"
- DataThe evidence is data.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:appcomplianceautomation:Evidence evidence1 /providers/Microsoft.AppComplianceAutomation/reports/{reportName}/evidences/{evidenceName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0