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

oci.BigDataService.BdsInstancePatchAction

Explore with Pulumi AI

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

    This resource provides the Bds Instance Patch Action resource in Oracle Cloud Infrastructure Big Data Service service.

    Install the specified patch to this cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBdsInstancePatchAction = new oci.bigdataservice.BdsInstancePatchAction("test_bds_instance_patch_action", {
        bdsInstanceId: testBdsInstance.id,
        clusterAdminPassword: bdsInstancePatchActionClusterAdminPassword,
        version: bdsInstancePatchActionVersion,
        patchingConfig: {
            patchingConfigStrategy: bdsInstancePatchActionPatchingConfigPatchingConfigStrategy,
            batchSize: bdsInstancePatchActionPatchingConfigBatchSize,
            waitTimeBetweenBatchInSeconds: bdsInstancePatchActionPatchingConfigWaitTimeBetweenBatchInSeconds,
            waitTimeBetweenDomainInSeconds: bdsInstancePatchActionPatchingConfigWaitTimeBetweenDomainInSeconds,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_bds_instance_patch_action = oci.big_data_service.BdsInstancePatchAction("test_bds_instance_patch_action",
        bds_instance_id=test_bds_instance["id"],
        cluster_admin_password=bds_instance_patch_action_cluster_admin_password,
        version=bds_instance_patch_action_version,
        patching_config={
            "patching_config_strategy": bds_instance_patch_action_patching_config_patching_config_strategy,
            "batch_size": bds_instance_patch_action_patching_config_batch_size,
            "wait_time_between_batch_in_seconds": bds_instance_patch_action_patching_config_wait_time_between_batch_in_seconds,
            "wait_time_between_domain_in_seconds": bds_instance_patch_action_patching_config_wait_time_between_domain_in_seconds,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/BigDataService"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := BigDataService.NewBdsInstancePatchAction(ctx, "test_bds_instance_patch_action", &BigDataService.BdsInstancePatchActionArgs{
    			BdsInstanceId:        pulumi.Any(testBdsInstance.Id),
    			ClusterAdminPassword: pulumi.Any(bdsInstancePatchActionClusterAdminPassword),
    			Version:              pulumi.Any(bdsInstancePatchActionVersion),
    			PatchingConfig: &bigdataservice.BdsInstancePatchActionPatchingConfigArgs{
    				PatchingConfigStrategy:         pulumi.Any(bdsInstancePatchActionPatchingConfigPatchingConfigStrategy),
    				BatchSize:                      pulumi.Any(bdsInstancePatchActionPatchingConfigBatchSize),
    				WaitTimeBetweenBatchInSeconds:  pulumi.Any(bdsInstancePatchActionPatchingConfigWaitTimeBetweenBatchInSeconds),
    				WaitTimeBetweenDomainInSeconds: pulumi.Any(bdsInstancePatchActionPatchingConfigWaitTimeBetweenDomainInSeconds),
    			},
    		})
    		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 testBdsInstancePatchAction = new Oci.BigDataService.BdsInstancePatchAction("test_bds_instance_patch_action", new()
        {
            BdsInstanceId = testBdsInstance.Id,
            ClusterAdminPassword = bdsInstancePatchActionClusterAdminPassword,
            Version = bdsInstancePatchActionVersion,
            PatchingConfig = new Oci.BigDataService.Inputs.BdsInstancePatchActionPatchingConfigArgs
            {
                PatchingConfigStrategy = bdsInstancePatchActionPatchingConfigPatchingConfigStrategy,
                BatchSize = bdsInstancePatchActionPatchingConfigBatchSize,
                WaitTimeBetweenBatchInSeconds = bdsInstancePatchActionPatchingConfigWaitTimeBetweenBatchInSeconds,
                WaitTimeBetweenDomainInSeconds = bdsInstancePatchActionPatchingConfigWaitTimeBetweenDomainInSeconds,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.BigDataService.BdsInstancePatchAction;
    import com.pulumi.oci.BigDataService.BdsInstancePatchActionArgs;
    import com.pulumi.oci.BigDataService.inputs.BdsInstancePatchActionPatchingConfigArgs;
    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 testBdsInstancePatchAction = new BdsInstancePatchAction("testBdsInstancePatchAction", BdsInstancePatchActionArgs.builder()
                .bdsInstanceId(testBdsInstance.id())
                .clusterAdminPassword(bdsInstancePatchActionClusterAdminPassword)
                .version(bdsInstancePatchActionVersion)
                .patchingConfig(BdsInstancePatchActionPatchingConfigArgs.builder()
                    .patchingConfigStrategy(bdsInstancePatchActionPatchingConfigPatchingConfigStrategy)
                    .batchSize(bdsInstancePatchActionPatchingConfigBatchSize)
                    .waitTimeBetweenBatchInSeconds(bdsInstancePatchActionPatchingConfigWaitTimeBetweenBatchInSeconds)
                    .waitTimeBetweenDomainInSeconds(bdsInstancePatchActionPatchingConfigWaitTimeBetweenDomainInSeconds)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testBdsInstancePatchAction:
        type: oci:BigDataService:BdsInstancePatchAction
        name: test_bds_instance_patch_action
        properties:
          bdsInstanceId: ${testBdsInstance.id}
          clusterAdminPassword: ${bdsInstancePatchActionClusterAdminPassword}
          version: ${bdsInstancePatchActionVersion}
          patchingConfig:
            patchingConfigStrategy: ${bdsInstancePatchActionPatchingConfigPatchingConfigStrategy}
            batchSize: ${bdsInstancePatchActionPatchingConfigBatchSize}
            waitTimeBetweenBatchInSeconds: ${bdsInstancePatchActionPatchingConfigWaitTimeBetweenBatchInSeconds}
            waitTimeBetweenDomainInSeconds: ${bdsInstancePatchActionPatchingConfigWaitTimeBetweenDomainInSeconds}
    

    Create BdsInstancePatchAction Resource

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

    Constructor syntax

    new BdsInstancePatchAction(name: string, args: BdsInstancePatchActionArgs, opts?: CustomResourceOptions);
    @overload
    def BdsInstancePatchAction(resource_name: str,
                               args: BdsInstancePatchActionArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def BdsInstancePatchAction(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               bds_instance_id: Optional[str] = None,
                               cluster_admin_password: Optional[str] = None,
                               version: Optional[str] = None,
                               patching_config: Optional[_bigdataservice.BdsInstancePatchActionPatchingConfigArgs] = None)
    func NewBdsInstancePatchAction(ctx *Context, name string, args BdsInstancePatchActionArgs, opts ...ResourceOption) (*BdsInstancePatchAction, error)
    public BdsInstancePatchAction(string name, BdsInstancePatchActionArgs args, CustomResourceOptions? opts = null)
    public BdsInstancePatchAction(String name, BdsInstancePatchActionArgs args)
    public BdsInstancePatchAction(String name, BdsInstancePatchActionArgs args, CustomResourceOptions options)
    
    type: oci:BigDataService:BdsInstancePatchAction
    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 BdsInstancePatchActionArgs
    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 BdsInstancePatchActionArgs
    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 BdsInstancePatchActionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BdsInstancePatchActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BdsInstancePatchActionArgs
    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 bdsInstancePatchActionResource = new Oci.BigDataService.BdsInstancePatchAction("bdsInstancePatchActionResource", new()
    {
        BdsInstanceId = "string",
        ClusterAdminPassword = "string",
        Version = "string",
        PatchingConfig = new Oci.BigDataService.Inputs.BdsInstancePatchActionPatchingConfigArgs
        {
            PatchingConfigStrategy = "string",
            BatchSize = 0,
            WaitTimeBetweenBatchInSeconds = 0,
            WaitTimeBetweenDomainInSeconds = 0,
        },
    });
    
    example, err := BigDataService.NewBdsInstancePatchAction(ctx, "bdsInstancePatchActionResource", &BigDataService.BdsInstancePatchActionArgs{
    	BdsInstanceId:        pulumi.String("string"),
    	ClusterAdminPassword: pulumi.String("string"),
    	Version:              pulumi.String("string"),
    	PatchingConfig: &bigdataservice.BdsInstancePatchActionPatchingConfigArgs{
    		PatchingConfigStrategy:         pulumi.String("string"),
    		BatchSize:                      pulumi.Int(0),
    		WaitTimeBetweenBatchInSeconds:  pulumi.Int(0),
    		WaitTimeBetweenDomainInSeconds: pulumi.Int(0),
    	},
    })
    
    var bdsInstancePatchActionResource = new BdsInstancePatchAction("bdsInstancePatchActionResource", BdsInstancePatchActionArgs.builder()
        .bdsInstanceId("string")
        .clusterAdminPassword("string")
        .version("string")
        .patchingConfig(BdsInstancePatchActionPatchingConfigArgs.builder()
            .patchingConfigStrategy("string")
            .batchSize(0)
            .waitTimeBetweenBatchInSeconds(0)
            .waitTimeBetweenDomainInSeconds(0)
            .build())
        .build());
    
    bds_instance_patch_action_resource = oci.big_data_service.BdsInstancePatchAction("bdsInstancePatchActionResource",
        bds_instance_id="string",
        cluster_admin_password="string",
        version="string",
        patching_config={
            "patching_config_strategy": "string",
            "batch_size": 0,
            "wait_time_between_batch_in_seconds": 0,
            "wait_time_between_domain_in_seconds": 0,
        })
    
    const bdsInstancePatchActionResource = new oci.bigdataservice.BdsInstancePatchAction("bdsInstancePatchActionResource", {
        bdsInstanceId: "string",
        clusterAdminPassword: "string",
        version: "string",
        patchingConfig: {
            patchingConfigStrategy: "string",
            batchSize: 0,
            waitTimeBetweenBatchInSeconds: 0,
            waitTimeBetweenDomainInSeconds: 0,
        },
    });
    
    type: oci:BigDataService:BdsInstancePatchAction
    properties:
        bdsInstanceId: string
        clusterAdminPassword: string
        patchingConfig:
            batchSize: 0
            patchingConfigStrategy: string
            waitTimeBetweenBatchInSeconds: 0
            waitTimeBetweenDomainInSeconds: 0
        version: string
    

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

    BdsInstanceId string
    The OCID of the cluster.
    ClusterAdminPassword string
    Base-64 encoded password for the cluster admin user.
    Version string

    The version of the patch to be installed.

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

    PatchingConfig BdsInstancePatchActionPatchingConfig
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    BdsInstanceId string
    The OCID of the cluster.
    ClusterAdminPassword string
    Base-64 encoded password for the cluster admin user.
    Version string

    The version of the patch to be installed.

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

    PatchingConfig BdsInstancePatchActionPatchingConfigArgs
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    bdsInstanceId String
    The OCID of the cluster.
    clusterAdminPassword String
    Base-64 encoded password for the cluster admin user.
    version String

    The version of the patch to be installed.

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

    patchingConfig BdsInstancePatchActionPatchingConfig
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    bdsInstanceId string
    The OCID of the cluster.
    clusterAdminPassword string
    Base-64 encoded password for the cluster admin user.
    version string

    The version of the patch to be installed.

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

    patchingConfig BdsInstancePatchActionPatchingConfig
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    bds_instance_id str
    The OCID of the cluster.
    cluster_admin_password str
    Base-64 encoded password for the cluster admin user.
    version str

    The version of the patch to be installed.

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

    patching_config bigdataservice.BdsInstancePatchActionPatchingConfigArgs
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    bdsInstanceId String
    The OCID of the cluster.
    clusterAdminPassword String
    Base-64 encoded password for the cluster admin user.
    version String

    The version of the patch to be installed.

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

    patchingConfig Property Map
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.

    Outputs

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

    Get an existing BdsInstancePatchAction 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?: BdsInstancePatchActionState, opts?: CustomResourceOptions): BdsInstancePatchAction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bds_instance_id: Optional[str] = None,
            cluster_admin_password: Optional[str] = None,
            patching_config: Optional[_bigdataservice.BdsInstancePatchActionPatchingConfigArgs] = None,
            version: Optional[str] = None) -> BdsInstancePatchAction
    func GetBdsInstancePatchAction(ctx *Context, name string, id IDInput, state *BdsInstancePatchActionState, opts ...ResourceOption) (*BdsInstancePatchAction, error)
    public static BdsInstancePatchAction Get(string name, Input<string> id, BdsInstancePatchActionState? state, CustomResourceOptions? opts = null)
    public static BdsInstancePatchAction get(String name, Output<String> id, BdsInstancePatchActionState 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:
    BdsInstanceId string
    The OCID of the cluster.
    ClusterAdminPassword string
    Base-64 encoded password for the cluster admin user.
    PatchingConfig BdsInstancePatchActionPatchingConfig
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    Version string

    The version of the patch to be installed.

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

    BdsInstanceId string
    The OCID of the cluster.
    ClusterAdminPassword string
    Base-64 encoded password for the cluster admin user.
    PatchingConfig BdsInstancePatchActionPatchingConfigArgs
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    Version string

    The version of the patch to be installed.

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

    bdsInstanceId String
    The OCID of the cluster.
    clusterAdminPassword String
    Base-64 encoded password for the cluster admin user.
    patchingConfig BdsInstancePatchActionPatchingConfig
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    version String

    The version of the patch to be installed.

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

    bdsInstanceId string
    The OCID of the cluster.
    clusterAdminPassword string
    Base-64 encoded password for the cluster admin user.
    patchingConfig BdsInstancePatchActionPatchingConfig
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    version string

    The version of the patch to be installed.

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

    bds_instance_id str
    The OCID of the cluster.
    cluster_admin_password str
    Base-64 encoded password for the cluster admin user.
    patching_config bigdataservice.BdsInstancePatchActionPatchingConfigArgs
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    version str

    The version of the patch to be installed.

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

    bdsInstanceId String
    The OCID of the cluster.
    clusterAdminPassword String
    Base-64 encoded password for the cluster admin user.
    patchingConfig Property Map
    Detailed configurations for defining the behavior when installing ODH patches. If not provided, nodes will be patched with down time.
    version String

    The version of the patch to be installed.

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

    Supporting Types

    BdsInstancePatchActionPatchingConfig, BdsInstancePatchActionPatchingConfigArgs

    PatchingConfigStrategy string
    Type of strategy used for detailed patching configuration
    BatchSize int
    How many nodes to be patched in each iteration.
    WaitTimeBetweenBatchInSeconds int
    The wait time between batches in seconds.
    WaitTimeBetweenDomainInSeconds int
    The wait time between AD/FD in seconds.
    PatchingConfigStrategy string
    Type of strategy used for detailed patching configuration
    BatchSize int
    How many nodes to be patched in each iteration.
    WaitTimeBetweenBatchInSeconds int
    The wait time between batches in seconds.
    WaitTimeBetweenDomainInSeconds int
    The wait time between AD/FD in seconds.
    patchingConfigStrategy String
    Type of strategy used for detailed patching configuration
    batchSize Integer
    How many nodes to be patched in each iteration.
    waitTimeBetweenBatchInSeconds Integer
    The wait time between batches in seconds.
    waitTimeBetweenDomainInSeconds Integer
    The wait time between AD/FD in seconds.
    patchingConfigStrategy string
    Type of strategy used for detailed patching configuration
    batchSize number
    How many nodes to be patched in each iteration.
    waitTimeBetweenBatchInSeconds number
    The wait time between batches in seconds.
    waitTimeBetweenDomainInSeconds number
    The wait time between AD/FD in seconds.
    patching_config_strategy str
    Type of strategy used for detailed patching configuration
    batch_size int
    How many nodes to be patched in each iteration.
    wait_time_between_batch_in_seconds int
    The wait time between batches in seconds.
    wait_time_between_domain_in_seconds int
    The wait time between AD/FD in seconds.
    patchingConfigStrategy String
    Type of strategy used for detailed patching configuration
    batchSize Number
    How many nodes to be patched in each iteration.
    waitTimeBetweenBatchInSeconds Number
    The wait time between batches in seconds.
    waitTimeBetweenDomainInSeconds Number
    The wait time between AD/FD in seconds.

    Import

    Import is not supported for this resource.

    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