This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getRemediationAtResourceGroup.go
48 lines (43 loc) · 2.05 KB
/
getRemediationAtResourceGroup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20180701preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupRemediationAtResourceGroup(ctx *pulumi.Context, args *LookupRemediationAtResourceGroupArgs, opts ...pulumi.InvokeOption) (*LookupRemediationAtResourceGroupResult, error) {
var rv LookupRemediationAtResourceGroupResult
err := ctx.Invoke("azure-nextgen:policyinsights/v20180701preview:getRemediationAtResourceGroup", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupRemediationAtResourceGroupArgs struct {
// The name of the remediation.
RemediationName string `pulumi:"remediationName"`
// Resource group name.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The remediation definition.
type LookupRemediationAtResourceGroupResult struct {
// The time at which the remediation was created.
CreatedOn string `pulumi:"createdOn"`
// The deployment status summary for all deployments created by the remediation.
DeploymentStatus *RemediationDeploymentSummaryResponse `pulumi:"deploymentStatus"`
// The filters that will be applied to determine which resources to remediate.
Filters *RemediationFiltersResponse `pulumi:"filters"`
// The ID of the remediation.
Id string `pulumi:"id"`
// The time at which the remediation was last updated.
LastUpdatedOn string `pulumi:"lastUpdatedOn"`
// The name of the remediation.
Name string `pulumi:"name"`
// The resource ID of the policy assignment that should be remediated.
PolicyAssignmentId *string `pulumi:"policyAssignmentId"`
// The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
PolicyDefinitionReferenceId *string `pulumi:"policyDefinitionReferenceId"`
// The status of the remediation.
ProvisioningState string `pulumi:"provisioningState"`
// The type of the remediation.
Type string `pulumi:"type"`
}