oci.DataSafe.CompareUserAssessment
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCompareUserAssessment = new oci.datasafe.CompareUserAssessment("test_compare_user_assessment", {
comparisonUserAssessmentId: testUserAssessment.id,
userAssessmentId: testUserAssessment.id,
});
import pulumi
import pulumi_oci as oci
test_compare_user_assessment = oci.data_safe.CompareUserAssessment("test_compare_user_assessment",
comparison_user_assessment_id=test_user_assessment["id"],
user_assessment_id=test_user_assessment["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataSafe.NewCompareUserAssessment(ctx, "test_compare_user_assessment", &DataSafe.CompareUserAssessmentArgs{
ComparisonUserAssessmentId: pulumi.Any(testUserAssessment.Id),
UserAssessmentId: pulumi.Any(testUserAssessment.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testCompareUserAssessment = new Oci.DataSafe.CompareUserAssessment("test_compare_user_assessment", new()
{
ComparisonUserAssessmentId = testUserAssessment.Id,
UserAssessmentId = testUserAssessment.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.CompareUserAssessment;
import com.pulumi.oci.DataSafe.CompareUserAssessmentArgs;
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 testCompareUserAssessment = new CompareUserAssessment("testCompareUserAssessment", CompareUserAssessmentArgs.builder()
.comparisonUserAssessmentId(testUserAssessment.id())
.userAssessmentId(testUserAssessment.id())
.build());
}
}
resources:
testCompareUserAssessment:
type: oci:DataSafe:CompareUserAssessment
name: test_compare_user_assessment
properties:
comparisonUserAssessmentId: ${testUserAssessment.id}
userAssessmentId: ${testUserAssessment.id}
Create CompareUserAssessment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CompareUserAssessment(name: string, args: CompareUserAssessmentArgs, opts?: CustomResourceOptions);
@overload
def CompareUserAssessment(resource_name: str,
args: CompareUserAssessmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CompareUserAssessment(resource_name: str,
opts: Optional[ResourceOptions] = None,
comparison_user_assessment_id: Optional[str] = None,
user_assessment_id: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var compareUserAssessmentResource = new Oci.DataSafe.CompareUserAssessment("compareUserAssessmentResource", new()
{
ComparisonUserAssessmentId = "string",
UserAssessmentId = "string",
});
example, err := DataSafe.NewCompareUserAssessment(ctx, "compareUserAssessmentResource", &DataSafe.CompareUserAssessmentArgs{
ComparisonUserAssessmentId: pulumi.String("string"),
UserAssessmentId: pulumi.String("string"),
})
var compareUserAssessmentResource = new CompareUserAssessment("compareUserAssessmentResource", CompareUserAssessmentArgs.builder()
.comparisonUserAssessmentId("string")
.userAssessmentId("string")
.build());
compare_user_assessment_resource = oci.data_safe.CompareUserAssessment("compareUserAssessmentResource",
comparison_user_assessment_id="string",
user_assessment_id="string")
const compareUserAssessmentResource = new oci.datasafe.CompareUserAssessment("compareUserAssessmentResource", {
comparisonUserAssessmentId: "string",
userAssessmentId: "string",
});
type: oci:DataSafe:CompareUserAssessment
properties:
comparisonUserAssessmentId: string
userAssessmentId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CompareUserAssessment resource accepts the following input properties:
- Comparison
User stringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- User
Assessment stringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Comparison
User stringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- User
Assessment stringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison
User StringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user
Assessment StringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison
User stringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user
Assessment stringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison_
user_ strassessment_ id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user_
assessment_ strid The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison
User StringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user
Assessment StringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
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 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.
- Comparison
User stringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- User
Assessment stringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Comparison
User stringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- User
Assessment stringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison
User StringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user
Assessment StringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison
User stringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user
Assessment stringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison_
user_ strassessment_ id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user_
assessment_ strid The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- comparison
User StringAssessment Id - The OCID of the user assessment to be compared. You can compare with another user assessment, a latest assessment, or a baseline.
- user
Assessment StringId The OCID of the user assessment.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
CompareUserAssessment can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/compareUserAssessment:CompareUserAssessment test_compare_user_assessment "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.