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 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")
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",
});
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:
- File
Path string - The path of the file in storage.
- Report
Name string - Report Name.
- Control
Id string - Control id.
- Evidence
Name string - The evidence name.
- Evidence
Type string | Pulumi.Azure Native. App Compliance Automation. Evidence Type - Evidence type.
- Extra
Data string - Extra data considered as evidence.
- Offer
Guid string - The offerGuid which mapping to the reports.
- Report
Creator stringTenant Id - The tenant id of the report creator.
- Responsibility
Id string - Responsibility id.
- File
Path string - The path of the file in storage.
- Report
Name string - Report Name.
- Control
Id string - Control id.
- Evidence
Name string - The evidence name.
- Evidence
Type string | EvidenceType - Evidence type.
- Extra
Data string - Extra data considered as evidence.
- Offer
Guid string - The offerGuid which mapping to the reports.
- Report
Creator stringTenant Id - The tenant id of the report creator.
- Responsibility
Id string - Responsibility id.
- file
Path String - The path of the file in storage.
- report
Name String - Report Name.
- control
Id String - Control id.
- evidence
Name String - The evidence name.
- evidence
Type String | EvidenceType - Evidence type.
- extra
Data String - Extra data considered as evidence.
- offer
Guid String - The offerGuid which mapping to the reports.
- report
Creator StringTenant Id - The tenant id of the report creator.
- responsibility
Id String - Responsibility id.
- file
Path string - The path of the file in storage.
- report
Name string - Report Name.
- control
Id string - Control id.
- evidence
Name string - The evidence name.
- evidence
Type string | EvidenceType - Evidence type.
- extra
Data string - Extra data considered as evidence.
- offer
Guid string - The offerGuid which mapping to the reports.
- report
Creator stringTenant Id - The tenant id of the report creator.
- responsibility
Id 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.
- file
Path String - The path of the file in storage.
- report
Name String - Report Name.
- control
Id String - Control id.
- evidence
Name String - The evidence name.
- evidence
Type String | "File" | "AutoCollected Evidence" | "Data" - Evidence type.
- extra
Data String - Extra data considered as evidence.
- offer
Guid String - The offerGuid which mapping to the reports.
- report
Creator StringTenant Id - The tenant id of the report creator.
- responsibility
Id 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
- Provisioning
State string - Azure lifecycle management
- System
Data 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
- Provisioning
State string - Azure lifecycle management
- System
Data 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
- provisioning
State String - Azure lifecycle management
- system
Data 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
- provisioning
State string - Azure lifecycle management
- system
Data 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
- provisioning
State String - Azure lifecycle management
- system
Data 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.
- Auto
Collected Evidence - AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- Data
- DataThe evidence is data.
- Evidence
Type File - FileThe evidence is a file.
- Evidence
Type Auto Collected Evidence - AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- Evidence
Type 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.
- Auto
Collected 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.
- "Auto
Collected Evidence" - AutoCollectedEvidenceThe evidence auto collected by App Compliance Automation.
- "Data"
- DataThe evidence is data.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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