1. Packages
  2. Spotinst
  3. API Docs
  4. DataIntegration
Spotinst v3.81.0 published on Monday, Jun 24, 2024 by Pulumi

spotinst.DataIntegration

Explore with Pulumi AI

spotinst logo
Spotinst v3.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Provides a Spotinst Data Integration resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spotinst from "@pulumi/spotinst";
    
    const example = new spotinst.DataIntegration("example", {
        name: "foo",
        status: "enabled",
        s3: {
            bucketName: "terraform-test-do-not-delete",
            subdir: "terraform-test-data-integration",
        },
    });
    
    import pulumi
    import pulumi_spotinst as spotinst
    
    example = spotinst.DataIntegration("example",
        name="foo",
        status="enabled",
        s3=spotinst.DataIntegrationS3Args(
            bucket_name="terraform-test-do-not-delete",
            subdir="terraform-test-data-integration",
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spotinst.NewDataIntegration(ctx, "example", &spotinst.DataIntegrationArgs{
    			Name:   pulumi.String("foo"),
    			Status: pulumi.String("enabled"),
    			S3: &spotinst.DataIntegrationS3Args{
    				BucketName: pulumi.String("terraform-test-do-not-delete"),
    				Subdir:     pulumi.String("terraform-test-data-integration"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SpotInst = Pulumi.SpotInst;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new SpotInst.DataIntegration("example", new()
        {
            Name = "foo",
            Status = "enabled",
            S3 = new SpotInst.Inputs.DataIntegrationS3Args
            {
                BucketName = "terraform-test-do-not-delete",
                Subdir = "terraform-test-data-integration",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spotinst.DataIntegration;
    import com.pulumi.spotinst.DataIntegrationArgs;
    import com.pulumi.spotinst.inputs.DataIntegrationS3Args;
    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 example = new DataIntegration("example", DataIntegrationArgs.builder()
                .name("foo")
                .status("enabled")
                .s3(DataIntegrationS3Args.builder()
                    .bucketName("terraform-test-do-not-delete")
                    .subdir("terraform-test-data-integration")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: spotinst:DataIntegration
        properties:
          name: foo
          status: enabled
          s3:
            bucketName: terraform-test-do-not-delete
            subdir: terraform-test-data-integration
    

    Create DataIntegration Resource

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

    Constructor syntax

    new DataIntegration(name: string, args?: DataIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def DataIntegration(resource_name: str,
                        args: Optional[DataIntegrationArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataIntegration(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        name: Optional[str] = None,
                        s3: Optional[DataIntegrationS3Args] = None,
                        status: Optional[str] = None)
    func NewDataIntegration(ctx *Context, name string, args *DataIntegrationArgs, opts ...ResourceOption) (*DataIntegration, error)
    public DataIntegration(string name, DataIntegrationArgs? args = null, CustomResourceOptions? opts = null)
    public DataIntegration(String name, DataIntegrationArgs args)
    public DataIntegration(String name, DataIntegrationArgs args, CustomResourceOptions options)
    
    type: spotinst:DataIntegration
    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 DataIntegrationArgs
    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 DataIntegrationArgs
    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 DataIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataIntegrationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var dataIntegrationResource = new SpotInst.DataIntegration("dataIntegrationResource", new()
    {
        Name = "string",
        S3 = new SpotInst.Inputs.DataIntegrationS3Args
        {
            BucketName = "string",
            Subdir = "string",
        },
        Status = "string",
    });
    
    example, err := spotinst.NewDataIntegration(ctx, "dataIntegrationResource", &spotinst.DataIntegrationArgs{
    	Name: pulumi.String("string"),
    	S3: &spotinst.DataIntegrationS3Args{
    		BucketName: pulumi.String("string"),
    		Subdir:     pulumi.String("string"),
    	},
    	Status: pulumi.String("string"),
    })
    
    var dataIntegrationResource = new DataIntegration("dataIntegrationResource", DataIntegrationArgs.builder()
        .name("string")
        .s3(DataIntegrationS3Args.builder()
            .bucketName("string")
            .subdir("string")
            .build())
        .status("string")
        .build());
    
    data_integration_resource = spotinst.DataIntegration("dataIntegrationResource",
        name="string",
        s3=spotinst.DataIntegrationS3Args(
            bucket_name="string",
            subdir="string",
        ),
        status="string")
    
    const dataIntegrationResource = new spotinst.DataIntegration("dataIntegrationResource", {
        name: "string",
        s3: {
            bucketName: "string",
            subdir: "string",
        },
        status: "string",
    });
    
    type: spotinst:DataIntegration
    properties:
        name: string
        s3:
            bucketName: string
            subdir: string
        status: string
    

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

    Name string
    The name of the data integration.
    S3 Pulumi.SpotInst.Inputs.DataIntegrationS3
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    Status string
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    Name string
    The name of the data integration.
    S3 DataIntegrationS3Args
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    Status string
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name String
    The name of the data integration.
    s3 DataIntegrationS3
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status String
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name string
    The name of the data integration.
    s3 DataIntegrationS3
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status string
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name str
    The name of the data integration.
    s3 DataIntegrationS3Args
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status str
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name String
    The name of the data integration.
    s3 Property Map
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status String
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"

    Outputs

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

    Get an existing DataIntegration 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?: DataIntegrationState, opts?: CustomResourceOptions): DataIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            s3: Optional[DataIntegrationS3Args] = None,
            status: Optional[str] = None) -> DataIntegration
    func GetDataIntegration(ctx *Context, name string, id IDInput, state *DataIntegrationState, opts ...ResourceOption) (*DataIntegration, error)
    public static DataIntegration Get(string name, Input<string> id, DataIntegrationState? state, CustomResourceOptions? opts = null)
    public static DataIntegration get(String name, Output<String> id, DataIntegrationState 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:
    Name string
    The name of the data integration.
    S3 Pulumi.SpotInst.Inputs.DataIntegrationS3
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    Status string
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    Name string
    The name of the data integration.
    S3 DataIntegrationS3Args
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    Status string
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name String
    The name of the data integration.
    s3 DataIntegrationS3
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status String
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name string
    The name of the data integration.
    s3 DataIntegrationS3
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status string
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name str
    The name of the data integration.
    s3 DataIntegrationS3Args
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status str
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"
    name String
    The name of the data integration.
    s3 Property Map
    When vendor value is s3, the following fields are included:

    • bucketName - (Required) The name of the bucket to use. Your spot IAM Role policy needs to include s3:putObject permissions for this bucket. Can't be null.
    status String
    Determines if this data integration is on or off. Valid values: "enabled", "disabled"

    Supporting Types

    DataIntegrationS3, DataIntegrationS3Args

    BucketName string
    Subdir string
    The subdirectory in which your files will be stored within the bucket. Adds the prefix subdir/ to new objects' keys. Can't be null or contain '/'.
    BucketName string
    Subdir string
    The subdirectory in which your files will be stored within the bucket. Adds the prefix subdir/ to new objects' keys. Can't be null or contain '/'.
    bucketName String
    subdir String
    The subdirectory in which your files will be stored within the bucket. Adds the prefix subdir/ to new objects' keys. Can't be null or contain '/'.
    bucketName string
    subdir string
    The subdirectory in which your files will be stored within the bucket. Adds the prefix subdir/ to new objects' keys. Can't be null or contain '/'.
    bucket_name str
    subdir str
    The subdirectory in which your files will be stored within the bucket. Adds the prefix subdir/ to new objects' keys. Can't be null or contain '/'.
    bucketName String
    subdir String
    The subdirectory in which your files will be stored within the bucket. Adds the prefix subdir/ to new objects' keys. Can't be null or contain '/'.

    Package Details

    Repository
    Spotinst pulumi/pulumi-spotinst
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the spotinst Terraform Provider.
    spotinst logo
    Spotinst v3.81.0 published on Monday, Jun 24, 2024 by Pulumi