1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. oss
  5. BucketHttpsConfig
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.oss.BucketHttpsConfig

Explore with Pulumi AI

Import

OSS Bucket Https Config can be imported using the id, e.g.

$ pulumi import alicloud:oss/bucketHttpsConfig:BucketHttpsConfig example <id>
Copy

Create BucketHttpsConfig Resource

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

Constructor syntax

new BucketHttpsConfig(name: string, args: BucketHttpsConfigArgs, opts?: CustomResourceOptions);
@overload
def BucketHttpsConfig(resource_name: str,
                      args: BucketHttpsConfigArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def BucketHttpsConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      bucket: Optional[str] = None,
                      enable: Optional[bool] = None,
                      tls_versions: Optional[Sequence[str]] = None)
func NewBucketHttpsConfig(ctx *Context, name string, args BucketHttpsConfigArgs, opts ...ResourceOption) (*BucketHttpsConfig, error)
public BucketHttpsConfig(string name, BucketHttpsConfigArgs args, CustomResourceOptions? opts = null)
public BucketHttpsConfig(String name, BucketHttpsConfigArgs args)
public BucketHttpsConfig(String name, BucketHttpsConfigArgs args, CustomResourceOptions options)
type: alicloud:oss:BucketHttpsConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BucketHttpsConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BucketHttpsConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BucketHttpsConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BucketHttpsConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BucketHttpsConfigArgs
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 bucketHttpsConfigResource = new AliCloud.Oss.BucketHttpsConfig("bucketHttpsConfigResource", new()
{
    Bucket = "string",
    Enable = false,
    TlsVersions = new[]
    {
        "string",
    },
});
Copy
example, err := oss.NewBucketHttpsConfig(ctx, "bucketHttpsConfigResource", &oss.BucketHttpsConfigArgs{
	Bucket: pulumi.String("string"),
	Enable: pulumi.Bool(false),
	TlsVersions: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var bucketHttpsConfigResource = new BucketHttpsConfig("bucketHttpsConfigResource", BucketHttpsConfigArgs.builder()
    .bucket("string")
    .enable(false)
    .tlsVersions("string")
    .build());
Copy
bucket_https_config_resource = alicloud.oss.BucketHttpsConfig("bucketHttpsConfigResource",
    bucket="string",
    enable=False,
    tls_versions=["string"])
Copy
const bucketHttpsConfigResource = new alicloud.oss.BucketHttpsConfig("bucketHttpsConfigResource", {
    bucket: "string",
    enable: false,
    tlsVersions: ["string"],
});
Copy
type: alicloud:oss:BucketHttpsConfig
properties:
    bucket: string
    enable: false
    tlsVersions:
        - string
Copy

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

Bucket
This property is required.
Changes to this property will trigger replacement.
string
The name of the bucket.
Enable This property is required. bool
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
TlsVersions List<string>
Specifies the TLS versions allowed to access this buckets.
Bucket
This property is required.
Changes to this property will trigger replacement.
string
The name of the bucket.
Enable This property is required. bool
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
TlsVersions []string
Specifies the TLS versions allowed to access this buckets.
bucket
This property is required.
Changes to this property will trigger replacement.
String
The name of the bucket.
enable This property is required. Boolean
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tlsVersions List<String>
Specifies the TLS versions allowed to access this buckets.
bucket
This property is required.
Changes to this property will trigger replacement.
string
The name of the bucket.
enable This property is required. boolean
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tlsVersions string[]
Specifies the TLS versions allowed to access this buckets.
bucket
This property is required.
Changes to this property will trigger replacement.
str
The name of the bucket.
enable This property is required. bool
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tls_versions Sequence[str]
Specifies the TLS versions allowed to access this buckets.
bucket
This property is required.
Changes to this property will trigger replacement.
String
The name of the bucket.
enable This property is required. Boolean
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tlsVersions List<String>
Specifies the TLS versions allowed to access this buckets.

Outputs

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

Get an existing BucketHttpsConfig 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?: BucketHttpsConfigState, opts?: CustomResourceOptions): BucketHttpsConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket: Optional[str] = None,
        enable: Optional[bool] = None,
        tls_versions: Optional[Sequence[str]] = None) -> BucketHttpsConfig
func GetBucketHttpsConfig(ctx *Context, name string, id IDInput, state *BucketHttpsConfigState, opts ...ResourceOption) (*BucketHttpsConfig, error)
public static BucketHttpsConfig Get(string name, Input<string> id, BucketHttpsConfigState? state, CustomResourceOptions? opts = null)
public static BucketHttpsConfig get(String name, Output<String> id, BucketHttpsConfigState state, CustomResourceOptions options)
resources:  _:    type: alicloud:oss:BucketHttpsConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Bucket Changes to this property will trigger replacement. string
The name of the bucket.
Enable bool
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
TlsVersions List<string>
Specifies the TLS versions allowed to access this buckets.
Bucket Changes to this property will trigger replacement. string
The name of the bucket.
Enable bool
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
TlsVersions []string
Specifies the TLS versions allowed to access this buckets.
bucket Changes to this property will trigger replacement. String
The name of the bucket.
enable Boolean
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tlsVersions List<String>
Specifies the TLS versions allowed to access this buckets.
bucket Changes to this property will trigger replacement. string
The name of the bucket.
enable boolean
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tlsVersions string[]
Specifies the TLS versions allowed to access this buckets.
bucket Changes to this property will trigger replacement. str
The name of the bucket.
enable bool
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tls_versions Sequence[str]
Specifies the TLS versions allowed to access this buckets.
bucket Changes to this property will trigger replacement. String
The name of the bucket.
enable Boolean
Specifies whether to enable TLS version management for the bucket. Valid values: true, false.
tlsVersions List<String>
Specifies the TLS versions allowed to access this buckets.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.