alicloud.cloudstoragegateway.StorageBundle
Explore with Pulumi AI
Provides a Cloud Storage Gateway Storage Bundle resource.
For information about Cloud Storage Gateway Storage Bundle and how to use it, see What is Storage Bundle.
NOTE: Available since v1.116.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.cloudstoragegateway.StorageBundle("example", {storageBundleName: "example_value"});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cloudstoragegateway.StorageBundle("example", storage_bundle_name="example_value")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudstoragegateway.NewStorageBundle(ctx, "example", &cloudstoragegateway.StorageBundleArgs{
StorageBundleName: pulumi.String("example_value"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.CloudStorageGateway.StorageBundle("example", new()
{
StorageBundleName = "example_value",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundle;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundleArgs;
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 StorageBundle("example", StorageBundleArgs.builder()
.storageBundleName("example_value")
.build());
}
}
resources:
example:
type: alicloud:cloudstoragegateway:StorageBundle
properties:
storageBundleName: example_value
Create StorageBundle Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageBundle(name: string, args: StorageBundleArgs, opts?: CustomResourceOptions);
@overload
def StorageBundle(resource_name: str,
args: StorageBundleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StorageBundle(resource_name: str,
opts: Optional[ResourceOptions] = None,
storage_bundle_name: Optional[str] = None,
description: Optional[str] = None)
func NewStorageBundle(ctx *Context, name string, args StorageBundleArgs, opts ...ResourceOption) (*StorageBundle, error)
public StorageBundle(string name, StorageBundleArgs args, CustomResourceOptions? opts = null)
public StorageBundle(String name, StorageBundleArgs args)
public StorageBundle(String name, StorageBundleArgs args, CustomResourceOptions options)
type: alicloud:cloudstoragegateway:StorageBundle
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 StorageBundleArgs
- 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 StorageBundleArgs
- 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 StorageBundleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageBundleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageBundleArgs
- 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 storageBundleResource = new AliCloud.CloudStorageGateway.StorageBundle("storageBundleResource", new()
{
StorageBundleName = "string",
Description = "string",
});
example, err := cloudstoragegateway.NewStorageBundle(ctx, "storageBundleResource", &cloudstoragegateway.StorageBundleArgs{
StorageBundleName: pulumi.String("string"),
Description: pulumi.String("string"),
})
var storageBundleResource = new StorageBundle("storageBundleResource", StorageBundleArgs.builder()
.storageBundleName("string")
.description("string")
.build());
storage_bundle_resource = alicloud.cloudstoragegateway.StorageBundle("storageBundleResource",
storage_bundle_name="string",
description="string")
const storageBundleResource = new alicloud.cloudstoragegateway.StorageBundle("storageBundleResource", {
storageBundleName: "string",
description: "string",
});
type: alicloud:cloudstoragegateway:StorageBundle
properties:
description: string
storageBundleName: string
StorageBundle 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 StorageBundle resource accepts the following input properties:
- Storage
Bundle stringName - The name of storage bundle.
- Description string
- The description of storage bundle.
- Storage
Bundle stringName - The name of storage bundle.
- Description string
- The description of storage bundle.
- storage
Bundle StringName - The name of storage bundle.
- description String
- The description of storage bundle.
- storage
Bundle stringName - The name of storage bundle.
- description string
- The description of storage bundle.
- storage_
bundle_ strname - The name of storage bundle.
- description str
- The description of storage bundle.
- storage
Bundle StringName - The name of storage bundle.
- description String
- The description of storage bundle.
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageBundle 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 StorageBundle Resource
Get an existing StorageBundle 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?: StorageBundleState, opts?: CustomResourceOptions): StorageBundle
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
storage_bundle_name: Optional[str] = None) -> StorageBundle
func GetStorageBundle(ctx *Context, name string, id IDInput, state *StorageBundleState, opts ...ResourceOption) (*StorageBundle, error)
public static StorageBundle Get(string name, Input<string> id, StorageBundleState? state, CustomResourceOptions? opts = null)
public static StorageBundle get(String name, Output<String> id, StorageBundleState 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.
- Description string
- The description of storage bundle.
- Storage
Bundle stringName - The name of storage bundle.
- Description string
- The description of storage bundle.
- Storage
Bundle stringName - The name of storage bundle.
- description String
- The description of storage bundle.
- storage
Bundle StringName - The name of storage bundle.
- description string
- The description of storage bundle.
- storage
Bundle stringName - The name of storage bundle.
- description str
- The description of storage bundle.
- storage_
bundle_ strname - The name of storage bundle.
- description String
- The description of storage bundle.
- storage
Bundle StringName - The name of storage bundle.
Import
Cloud Storage Gateway Storage Bundle can be imported using the id, e.g.
$ pulumi import alicloud:cloudstoragegateway/storageBundle:StorageBundle example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.