oci.DataSafe.SetUserAssessmentBaselineManagement
Explore with Pulumi AI
This resource provides the Set User Assessment Baseline management resource in Oracle Cloud Infrastructure Data Safe service.
Sets the saved user assessment as the baseline in the compartment where the the specified assessment resides. The user assessment needs to be of type ‘SAVED’.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSetUserAssessmentBaselineManagement = new oci.datasafe.SetUserAssessmentBaselineManagement("test_set_user_assessment_baseline_management", {
targetId: testTargetDatabase.id,
compartmentId: comaprtmentId,
});
import pulumi
import pulumi_oci as oci
test_set_user_assessment_baseline_management = oci.data_safe.SetUserAssessmentBaselineManagement("test_set_user_assessment_baseline_management",
target_id=test_target_database["id"],
compartment_id=comaprtment_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.NewSetUserAssessmentBaselineManagement(ctx, "test_set_user_assessment_baseline_management", &DataSafe.SetUserAssessmentBaselineManagementArgs{
TargetId: pulumi.Any(testTargetDatabase.Id),
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 testSetUserAssessmentBaselineManagement = new Oci.DataSafe.SetUserAssessmentBaselineManagement("test_set_user_assessment_baseline_management", new()
{
TargetId = testTargetDatabase.Id,
CompartmentId = comaprtmentId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.SetUserAssessmentBaselineManagement;
import com.pulumi.oci.DataSafe.SetUserAssessmentBaselineManagementArgs;
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 testSetUserAssessmentBaselineManagement = new SetUserAssessmentBaselineManagement("testSetUserAssessmentBaselineManagement", SetUserAssessmentBaselineManagementArgs.builder()
.targetId(testTargetDatabase.id())
.compartmentId(comaprtmentId)
.build());
}
}
resources:
testSetUserAssessmentBaselineManagement:
type: oci:DataSafe:SetUserAssessmentBaselineManagement
name: test_set_user_assessment_baseline_management
properties:
targetId: ${testTargetDatabase.id}
compartmentId: ${comaprtmentId}
Create SetUserAssessmentBaselineManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SetUserAssessmentBaselineManagement(name: string, args: SetUserAssessmentBaselineManagementArgs, opts?: CustomResourceOptions);
@overload
def SetUserAssessmentBaselineManagement(resource_name: str,
args: SetUserAssessmentBaselineManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SetUserAssessmentBaselineManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
target_id: Optional[str] = None)
func NewSetUserAssessmentBaselineManagement(ctx *Context, name string, args SetUserAssessmentBaselineManagementArgs, opts ...ResourceOption) (*SetUserAssessmentBaselineManagement, error)
public SetUserAssessmentBaselineManagement(string name, SetUserAssessmentBaselineManagementArgs args, CustomResourceOptions? opts = null)
public SetUserAssessmentBaselineManagement(String name, SetUserAssessmentBaselineManagementArgs args)
public SetUserAssessmentBaselineManagement(String name, SetUserAssessmentBaselineManagementArgs args, CustomResourceOptions options)
type: oci:DataSafe:SetUserAssessmentBaselineManagement
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 SetUserAssessmentBaselineManagementArgs
- 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 SetUserAssessmentBaselineManagementArgs
- 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 SetUserAssessmentBaselineManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SetUserAssessmentBaselineManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SetUserAssessmentBaselineManagementArgs
- 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 setUserAssessmentBaselineManagementResource = new Oci.DataSafe.SetUserAssessmentBaselineManagement("setUserAssessmentBaselineManagementResource", new()
{
CompartmentId = "string",
TargetId = "string",
});
example, err := DataSafe.NewSetUserAssessmentBaselineManagement(ctx, "setUserAssessmentBaselineManagementResource", &DataSafe.SetUserAssessmentBaselineManagementArgs{
CompartmentId: pulumi.String("string"),
TargetId: pulumi.String("string"),
})
var setUserAssessmentBaselineManagementResource = new SetUserAssessmentBaselineManagement("setUserAssessmentBaselineManagementResource", SetUserAssessmentBaselineManagementArgs.builder()
.compartmentId("string")
.targetId("string")
.build());
set_user_assessment_baseline_management_resource = oci.data_safe.SetUserAssessmentBaselineManagement("setUserAssessmentBaselineManagementResource",
compartment_id="string",
target_id="string")
const setUserAssessmentBaselineManagementResource = new oci.datasafe.SetUserAssessmentBaselineManagement("setUserAssessmentBaselineManagementResource", {
compartmentId: "string",
targetId: "string",
});
type: oci:DataSafe:SetUserAssessmentBaselineManagement
properties:
compartmentId: string
targetId: string
SetUserAssessmentBaselineManagement 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 SetUserAssessmentBaselineManagement resource accepts the following input properties:
- Compartment
Id string The compartment OCID of the target.
** 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
- Target
Id string - The target OCID for which UA needs to be set as baseline.
- Compartment
Id string The compartment OCID of the target.
** 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
- Target
Id string - The target OCID for which UA needs to be set as baseline.
- compartment
Id String The compartment OCID of the target.
** 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
- target
Id String - The target OCID for which UA needs to be set as baseline.
- compartment
Id string The compartment OCID of the target.
** 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
- target
Id string - The target OCID for which UA needs to be set as baseline.
- compartment_
id str The compartment OCID of the target.
** 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
- target_
id str - The target OCID for which UA needs to be set as baseline.
- compartment
Id String The compartment OCID of the target.
** 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
- target
Id String - The target OCID for which UA needs to be set as baseline.
Outputs
All input properties are implicitly available as output properties. Additionally, the SetUserAssessmentBaselineManagement resource produces the following output properties:
- Assessment
Ids List<string> - Id string
- The provider-assigned unique ID for this managed resource.
- User
Assessment stringId
- Assessment
Ids []string - Id string
- The provider-assigned unique ID for this managed resource.
- User
Assessment stringId
- assessment
Ids List<String> - id String
- The provider-assigned unique ID for this managed resource.
- user
Assessment StringId
- assessment
Ids string[] - id string
- The provider-assigned unique ID for this managed resource.
- user
Assessment stringId
- assessment_
ids Sequence[str] - id str
- The provider-assigned unique ID for this managed resource.
- user_
assessment_ strid
- assessment
Ids List<String> - id String
- The provider-assigned unique ID for this managed resource.
- user
Assessment StringId
Look up Existing SetUserAssessmentBaselineManagement Resource
Get an existing SetUserAssessmentBaselineManagement 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?: SetUserAssessmentBaselineManagementState, opts?: CustomResourceOptions): SetUserAssessmentBaselineManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assessment_ids: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
target_id: Optional[str] = None,
user_assessment_id: Optional[str] = None) -> SetUserAssessmentBaselineManagement
func GetSetUserAssessmentBaselineManagement(ctx *Context, name string, id IDInput, state *SetUserAssessmentBaselineManagementState, opts ...ResourceOption) (*SetUserAssessmentBaselineManagement, error)
public static SetUserAssessmentBaselineManagement Get(string name, Input<string> id, SetUserAssessmentBaselineManagementState? state, CustomResourceOptions? opts = null)
public static SetUserAssessmentBaselineManagement get(String name, Output<String> id, SetUserAssessmentBaselineManagementState 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.
- Assessment
Ids List<string> - Compartment
Id string The compartment OCID of the target.
** 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
- Target
Id string - The target OCID for which UA needs to be set as baseline.
- User
Assessment stringId
- Assessment
Ids []string - Compartment
Id string The compartment OCID of the target.
** 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
- Target
Id string - The target OCID for which UA needs to be set as baseline.
- User
Assessment stringId
- assessment
Ids List<String> - compartment
Id String The compartment OCID of the target.
** 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
- target
Id String - The target OCID for which UA needs to be set as baseline.
- user
Assessment StringId
- assessment
Ids string[] - compartment
Id string The compartment OCID of the target.
** 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
- target
Id string - The target OCID for which UA needs to be set as baseline.
- user
Assessment stringId
- assessment_
ids Sequence[str] - compartment_
id str The compartment OCID of the target.
** 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
- target_
id str - The target OCID for which UA needs to be set as baseline.
- user_
assessment_ strid
- assessment
Ids List<String> - compartment
Id String The compartment OCID of the target.
** 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
- target
Id String - The target OCID for which UA needs to be set as baseline.
- user
Assessment StringId
Import
SetUserAssessmentBaselineManagement can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/setUserAssessmentBaselineManagement:SetUserAssessmentBaselineManagement test_set_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.