1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. UnsetUserAssessmentBaselineManagement
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.UnsetUserAssessmentBaselineManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Unset User Assessment Baseline management resource in Oracle Cloud Infrastructure Data Safe service.

    Removes the baseline setting for the saved user assessment as the baseline in the compartment where the the specified assessment resides.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUnsetUserAssessmentBaselineManagement = new oci.datasafe.UnsetUserAssessmentBaselineManagement("test_unset_user_assessment_baseline_management", {
        userAssessmentId: testSetUserAssessmentBaselineManagement.userAssessmentId,
        compartmentId: comaprtmentId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_unset_user_assessment_baseline_management = oci.data_safe.UnsetUserAssessmentBaselineManagement("test_unset_user_assessment_baseline_management",
        user_assessment_id=test_set_user_assessment_baseline_management["userAssessmentId"],
        compartment_id=comaprtment_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.NewUnsetUserAssessmentBaselineManagement(ctx, "test_unset_user_assessment_baseline_management", &DataSafe.UnsetUserAssessmentBaselineManagementArgs{
    			UserAssessmentId: pulumi.Any(testSetUserAssessmentBaselineManagement.UserAssessmentId),
    			CompartmentId:    pulumi.Any(comaprtmentId),
    		})
    		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 testUnsetUserAssessmentBaselineManagement = new Oci.DataSafe.UnsetUserAssessmentBaselineManagement("test_unset_user_assessment_baseline_management", new()
        {
            UserAssessmentId = testSetUserAssessmentBaselineManagement.UserAssessmentId,
            CompartmentId = comaprtmentId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.UnsetUserAssessmentBaselineManagement;
    import com.pulumi.oci.DataSafe.UnsetUserAssessmentBaselineManagementArgs;
    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 testUnsetUserAssessmentBaselineManagement = new UnsetUserAssessmentBaselineManagement("testUnsetUserAssessmentBaselineManagement", UnsetUserAssessmentBaselineManagementArgs.builder()
                .userAssessmentId(testSetUserAssessmentBaselineManagement.userAssessmentId())
                .compartmentId(comaprtmentId)
                .build());
    
        }
    }
    
    resources:
      testUnsetUserAssessmentBaselineManagement:
        type: oci:DataSafe:UnsetUserAssessmentBaselineManagement
        name: test_unset_user_assessment_baseline_management
        properties:
          userAssessmentId: ${testSetUserAssessmentBaselineManagement.userAssessmentId}
          compartmentId: ${comaprtmentId}
    

    Create UnsetUserAssessmentBaselineManagement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UnsetUserAssessmentBaselineManagement(name: string, args: UnsetUserAssessmentBaselineManagementArgs, opts?: CustomResourceOptions);
    @overload
    def UnsetUserAssessmentBaselineManagement(resource_name: str,
                                              args: UnsetUserAssessmentBaselineManagementArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def UnsetUserAssessmentBaselineManagement(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              compartment_id: Optional[str] = None,
                                              user_assessment_id: Optional[str] = None)
    func NewUnsetUserAssessmentBaselineManagement(ctx *Context, name string, args UnsetUserAssessmentBaselineManagementArgs, opts ...ResourceOption) (*UnsetUserAssessmentBaselineManagement, error)
    public UnsetUserAssessmentBaselineManagement(string name, UnsetUserAssessmentBaselineManagementArgs args, CustomResourceOptions? opts = null)
    public UnsetUserAssessmentBaselineManagement(String name, UnsetUserAssessmentBaselineManagementArgs args)
    public UnsetUserAssessmentBaselineManagement(String name, UnsetUserAssessmentBaselineManagementArgs args, CustomResourceOptions options)
    
    type: oci:DataSafe:UnsetUserAssessmentBaselineManagement
    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 UnsetUserAssessmentBaselineManagementArgs
    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 UnsetUserAssessmentBaselineManagementArgs
    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 UnsetUserAssessmentBaselineManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UnsetUserAssessmentBaselineManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UnsetUserAssessmentBaselineManagementArgs
    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 unsetUserAssessmentBaselineManagementResource = new Oci.DataSafe.UnsetUserAssessmentBaselineManagement("unsetUserAssessmentBaselineManagementResource", new()
    {
        CompartmentId = "string",
        UserAssessmentId = "string",
    });
    
    example, err := DataSafe.NewUnsetUserAssessmentBaselineManagement(ctx, "unsetUserAssessmentBaselineManagementResource", &DataSafe.UnsetUserAssessmentBaselineManagementArgs{
    	CompartmentId:    pulumi.String("string"),
    	UserAssessmentId: pulumi.String("string"),
    })
    
    var unsetUserAssessmentBaselineManagementResource = new UnsetUserAssessmentBaselineManagement("unsetUserAssessmentBaselineManagementResource", UnsetUserAssessmentBaselineManagementArgs.builder()
        .compartmentId("string")
        .userAssessmentId("string")
        .build());
    
    unset_user_assessment_baseline_management_resource = oci.data_safe.UnsetUserAssessmentBaselineManagement("unsetUserAssessmentBaselineManagementResource",
        compartment_id="string",
        user_assessment_id="string")
    
    const unsetUserAssessmentBaselineManagementResource = new oci.datasafe.UnsetUserAssessmentBaselineManagement("unsetUserAssessmentBaselineManagementResource", {
        compartmentId: "string",
        userAssessmentId: "string",
    });
    
    type: oci:DataSafe:UnsetUserAssessmentBaselineManagement
    properties:
        compartmentId: string
        userAssessmentId: string
    

    UnsetUserAssessmentBaselineManagement 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 UnsetUserAssessmentBaselineManagement resource accepts the following input properties:

    CompartmentId string

    The compartment OCID where the assessment resides.

    ** 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

    UserAssessmentId string
    The OCID of the user assessment.
    CompartmentId string

    The compartment OCID where the assessment resides.

    ** 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

    UserAssessmentId string
    The OCID of the user assessment.
    compartmentId String

    The compartment OCID where the assessment resides.

    ** 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

    userAssessmentId String
    The OCID of the user assessment.
    compartmentId string

    The compartment OCID where the assessment resides.

    ** 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

    userAssessmentId string
    The OCID of the user assessment.
    compartment_id str

    The compartment OCID where the assessment resides.

    ** 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

    user_assessment_id str
    The OCID of the user assessment.
    compartmentId String

    The compartment OCID where the assessment resides.

    ** 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

    userAssessmentId String
    The OCID of the user assessment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UnsetUserAssessmentBaselineManagement 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 UnsetUserAssessmentBaselineManagement Resource

    Get an existing UnsetUserAssessmentBaselineManagement 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?: UnsetUserAssessmentBaselineManagementState, opts?: CustomResourceOptions): UnsetUserAssessmentBaselineManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            user_assessment_id: Optional[str] = None) -> UnsetUserAssessmentBaselineManagement
    func GetUnsetUserAssessmentBaselineManagement(ctx *Context, name string, id IDInput, state *UnsetUserAssessmentBaselineManagementState, opts ...ResourceOption) (*UnsetUserAssessmentBaselineManagement, error)
    public static UnsetUserAssessmentBaselineManagement Get(string name, Input<string> id, UnsetUserAssessmentBaselineManagementState? state, CustomResourceOptions? opts = null)
    public static UnsetUserAssessmentBaselineManagement get(String name, Output<String> id, UnsetUserAssessmentBaselineManagementState 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:
    CompartmentId string

    The compartment OCID where the assessment resides.

    ** 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

    UserAssessmentId string
    The OCID of the user assessment.
    CompartmentId string

    The compartment OCID where the assessment resides.

    ** 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

    UserAssessmentId string
    The OCID of the user assessment.
    compartmentId String

    The compartment OCID where the assessment resides.

    ** 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

    userAssessmentId String
    The OCID of the user assessment.
    compartmentId string

    The compartment OCID where the assessment resides.

    ** 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

    userAssessmentId string
    The OCID of the user assessment.
    compartment_id str

    The compartment OCID where the assessment resides.

    ** 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

    user_assessment_id str
    The OCID of the user assessment.
    compartmentId String

    The compartment OCID where the assessment resides.

    ** 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

    userAssessmentId String
    The OCID of the user assessment.

    Import

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

    $ pulumi import oci:DataSafe/unsetUserAssessmentBaselineManagement:UnsetUserAssessmentBaselineManagement test_unset_user_assessment_baseline_management "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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi