Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

CompareUserAssessment

This resource provides the Compare User Assessment resource in Oracle Cloud Infrastructure Data Safe service.

Compares two user assessments. For this comparison, a user assessment can be a saved, a latest assessment, or a baseline. As an example, it can be used to compare a user assessment saved or a latest assessment with a baseline.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testCompareUserAssessment = new Oci.DataSafe.CompareUserAssessment("testCompareUserAssessment", new Oci.DataSafe.CompareUserAssessmentArgs
        {
            ComparisonUserAssessmentId = oci_data_safe_user_assessment.Test_user_assessment.Id,
            UserAssessmentId = oci_data_safe_user_assessment.Test_user_assessment.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataSafe.NewCompareUserAssessment(ctx, "testCompareUserAssessment", &DataSafe.CompareUserAssessmentArgs{
			ComparisonUserAssessmentId: pulumi.Any(oci_data_safe_user_assessment.Test_user_assessment.Id),
			UserAssessmentId:           pulumi.Any(oci_data_safe_user_assessment.Test_user_assessment.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_compare_user_assessment = oci.data_safe.CompareUserAssessment("testCompareUserAssessment",
    comparison_user_assessment_id=oci_data_safe_user_assessment["test_user_assessment"]["id"],
    user_assessment_id=oci_data_safe_user_assessment["test_user_assessment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCompareUserAssessment = new oci.datasafe.CompareUserAssessment("testCompareUserAssessment", {
    comparisonUserAssessmentId: oci_data_safe_user_assessment.test_user_assessment.id,
    userAssessmentId: oci_data_safe_user_assessment.test_user_assessment.id,
});

Coming soon!

Create a CompareUserAssessment Resource

new CompareUserAssessment(name: string, args: CompareUserAssessmentArgs, opts?: CustomResourceOptions);
@overload
def CompareUserAssessment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          comparison_user_assessment_id: Optional[str] = None,
                          user_assessment_id: Optional[str] = None)
@overload
def CompareUserAssessment(resource_name: str,
                          args: CompareUserAssessmentArgs,
                          opts: Optional[ResourceOptions] = None)
func NewCompareUserAssessment(ctx *Context, name string, args CompareUserAssessmentArgs, opts ...ResourceOption) (*CompareUserAssessment, error)
public CompareUserAssessment(string name, CompareUserAssessmentArgs args, CustomResourceOptions? opts = null)
public CompareUserAssessment(String name, CompareUserAssessmentArgs args)
public CompareUserAssessment(String name, CompareUserAssessmentArgs args, CustomResourceOptions options)
type: oci:DataSafe:CompareUserAssessment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CompareUserAssessmentArgs
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 CompareUserAssessmentArgs
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 CompareUserAssessmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CompareUserAssessmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CompareUserAssessmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CompareUserAssessment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CompareUserAssessment resource accepts the following input properties:

ComparisonUserAssessmentId string

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

UserAssessmentId string

The OCID of the user assessment.

ComparisonUserAssessmentId string

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

UserAssessmentId string

The OCID of the user assessment.

comparisonUserAssessmentId String

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

userAssessmentId String

The OCID of the user assessment.

comparisonUserAssessmentId string

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

userAssessmentId string

The OCID of the user assessment.

comparison_user_assessment_id str

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

user_assessment_id str

The OCID of the user assessment.

comparisonUserAssessmentId String

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

userAssessmentId String

The OCID of the user assessment.

Outputs

All input properties are implicitly available as output properties. Additionally, the CompareUserAssessment resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing CompareUserAssessment Resource

Get an existing CompareUserAssessment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CompareUserAssessmentState, opts?: CustomResourceOptions): CompareUserAssessment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comparison_user_assessment_id: Optional[str] = None,
        user_assessment_id: Optional[str] = None) -> CompareUserAssessment
func GetCompareUserAssessment(ctx *Context, name string, id IDInput, state *CompareUserAssessmentState, opts ...ResourceOption) (*CompareUserAssessment, error)
public static CompareUserAssessment Get(string name, Input<string> id, CompareUserAssessmentState? state, CustomResourceOptions? opts = null)
public static CompareUserAssessment get(String name, Output<String> id, CompareUserAssessmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ComparisonUserAssessmentId string

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

UserAssessmentId string

The OCID of the user assessment.

ComparisonUserAssessmentId string

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

UserAssessmentId string

The OCID of the user assessment.

comparisonUserAssessmentId String

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

userAssessmentId String

The OCID of the user assessment.

comparisonUserAssessmentId string

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

userAssessmentId string

The OCID of the user assessment.

comparison_user_assessment_id str

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

user_assessment_id str

The OCID of the user assessment.

comparisonUserAssessmentId String

The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.

userAssessmentId String

The OCID of the user assessment.

Import

CompareUserAssessment can be imported using the id, e.g.

 $ pulumi import oci:DataSafe/compareUserAssessment:CompareUserAssessment test_compare_user_assessment "id"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.