1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. oss
  5. BucketHttpsConfig
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

alicloud.oss.BucketHttpsConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

    Import

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

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

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

    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

    The BucketHttpsConfig resource accepts the following input properties:

    Bucket 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 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 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 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 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 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.

    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)
    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:
    Bucket 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 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 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 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 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 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.
    alicloud logo
    Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi