hsdp.ConnectMdmBucket
Explore with Pulumi AI
Create and manage MDM Bucket resources
This resource is deprecated. Please switch to using
hsdp.BlrBucket
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const store = new hsdp.ConnectMdmBucket("store", {
description: "Terraform provisioned bucket",
propositionId: data.hsdp_connect_mdm_propososition.prop.id,
defaultRegionId: data.hsdp_connect_mdm_region.us_east.id,
versioningEnabled: true,
loggingEnabled: true,
auditingEnabled: true,
corsConfigurations: [{
allowedOrigins: ["https://foo.hsdp.io"],
allowedMethods: ["GET"],
exposeHeaders: ["X-Hsdp-Signature"],
}],
});
import pulumi
import pulumi_hsdp as hsdp
store = hsdp.ConnectMdmBucket("store",
description="Terraform provisioned bucket",
proposition_id=data["hsdp_connect_mdm_propososition"]["prop"]["id"],
default_region_id=data["hsdp_connect_mdm_region"]["us_east"]["id"],
versioning_enabled=True,
logging_enabled=True,
auditing_enabled=True,
cors_configurations=[{
"allowed_origins": ["https://foo.hsdp.io"],
"allowed_methods": ["GET"],
"expose_headers": ["X-Hsdp-Signature"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hsdp.NewConnectMdmBucket(ctx, "store", &hsdp.ConnectMdmBucketArgs{
Description: pulumi.String("Terraform provisioned bucket"),
PropositionId: pulumi.Any(data.Hsdp_connect_mdm_propososition.Prop.Id),
DefaultRegionId: pulumi.Any(data.Hsdp_connect_mdm_region.Us_east.Id),
VersioningEnabled: pulumi.Bool(true),
LoggingEnabled: pulumi.Bool(true),
AuditingEnabled: pulumi.Bool(true),
CorsConfigurations: hsdp.ConnectMdmBucketCorsConfigurationArray{
&hsdp.ConnectMdmBucketCorsConfigurationArgs{
AllowedOrigins: pulumi.StringArray{
pulumi.String("https://foo.hsdp.io"),
},
AllowedMethods: pulumi.StringArray{
pulumi.String("GET"),
},
ExposeHeaders: pulumi.StringArray{
pulumi.String("X-Hsdp-Signature"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var store = new Hsdp.ConnectMdmBucket("store", new()
{
Description = "Terraform provisioned bucket",
PropositionId = data.Hsdp_connect_mdm_propososition.Prop.Id,
DefaultRegionId = data.Hsdp_connect_mdm_region.Us_east.Id,
VersioningEnabled = true,
LoggingEnabled = true,
AuditingEnabled = true,
CorsConfigurations = new[]
{
new Hsdp.Inputs.ConnectMdmBucketCorsConfigurationArgs
{
AllowedOrigins = new[]
{
"https://foo.hsdp.io",
},
AllowedMethods = new[]
{
"GET",
},
ExposeHeaders = new[]
{
"X-Hsdp-Signature",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.ConnectMdmBucket;
import com.pulumi.hsdp.ConnectMdmBucketArgs;
import com.pulumi.hsdp.inputs.ConnectMdmBucketCorsConfigurationArgs;
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 store = new ConnectMdmBucket("store", ConnectMdmBucketArgs.builder()
.description("Terraform provisioned bucket")
.propositionId(data.hsdp_connect_mdm_propososition().prop().id())
.defaultRegionId(data.hsdp_connect_mdm_region().us_east().id())
.versioningEnabled(true)
.loggingEnabled(true)
.auditingEnabled(true)
.corsConfigurations(ConnectMdmBucketCorsConfigurationArgs.builder()
.allowedOrigins("https://foo.hsdp.io")
.allowedMethods("GET")
.exposeHeaders("X-Hsdp-Signature")
.build())
.build());
}
}
resources:
store:
type: hsdp:ConnectMdmBucket
properties:
description: Terraform provisioned bucket
propositionId: ${data.hsdp_connect_mdm_propososition.prop.id}
defaultRegionId: ${data.hsdp_connect_mdm_region.us_east.id}
versioningEnabled: true
loggingEnabled: true
auditingEnabled: true
corsConfigurations:
- allowedOrigins:
- https://foo.hsdp.io
allowedMethods:
- GET
exposeHeaders:
- X-Hsdp-Signature
Attributes reference
In addition to all arguments above, the following attributes are exported:
id
- The ID reference of the service action (format:Bucket/${GUID}
)guid
- The GUID of the bucket
Create ConnectMdmBucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectMdmBucket(name: string, args: ConnectMdmBucketArgs, opts?: CustomResourceOptions);
@overload
def ConnectMdmBucket(resource_name: str,
args: ConnectMdmBucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConnectMdmBucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_region_id: Optional[str] = None,
proposition_id: Optional[str] = None,
auditing_enabled: Optional[bool] = None,
cache_control_age: Optional[float] = None,
connect_mdm_bucket_id: Optional[str] = None,
cors_configurations: Optional[Sequence[ConnectMdmBucketCorsConfigurationArgs]] = None,
description: Optional[str] = None,
enabled_cdn: Optional[bool] = None,
logging_enabled: Optional[bool] = None,
name: Optional[str] = None,
replication_region_id: Optional[str] = None,
versioning_enabled: Optional[bool] = None)
func NewConnectMdmBucket(ctx *Context, name string, args ConnectMdmBucketArgs, opts ...ResourceOption) (*ConnectMdmBucket, error)
public ConnectMdmBucket(string name, ConnectMdmBucketArgs args, CustomResourceOptions? opts = null)
public ConnectMdmBucket(String name, ConnectMdmBucketArgs args)
public ConnectMdmBucket(String name, ConnectMdmBucketArgs args, CustomResourceOptions options)
type: hsdp:ConnectMdmBucket
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 ConnectMdmBucketArgs
- 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 ConnectMdmBucketArgs
- 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 ConnectMdmBucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectMdmBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectMdmBucketArgs
- 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 connectMdmBucketResource = new Hsdp.ConnectMdmBucket("connectMdmBucketResource", new()
{
DefaultRegionId = "string",
PropositionId = "string",
AuditingEnabled = false,
CacheControlAge = 0,
ConnectMdmBucketId = "string",
CorsConfigurations = new[]
{
new Hsdp.Inputs.ConnectMdmBucketCorsConfigurationArgs
{
AllowedMethods = new[]
{
"string",
},
AllowedOrigins = new[]
{
"string",
},
AllowedHeaders = new[]
{
"string",
},
ExposeHeaders = new[]
{
"string",
},
MaxAgeSeconds = 0,
},
},
Description = "string",
EnabledCdn = false,
LoggingEnabled = false,
Name = "string",
ReplicationRegionId = "string",
VersioningEnabled = false,
});
example, err := hsdp.NewConnectMdmBucket(ctx, "connectMdmBucketResource", &hsdp.ConnectMdmBucketArgs{
DefaultRegionId: pulumi.String("string"),
PropositionId: pulumi.String("string"),
AuditingEnabled: pulumi.Bool(false),
CacheControlAge: pulumi.Float64(0),
ConnectMdmBucketId: pulumi.String("string"),
CorsConfigurations: hsdp.ConnectMdmBucketCorsConfigurationArray{
&hsdp.ConnectMdmBucketCorsConfigurationArgs{
AllowedMethods: pulumi.StringArray{
pulumi.String("string"),
},
AllowedOrigins: pulumi.StringArray{
pulumi.String("string"),
},
AllowedHeaders: pulumi.StringArray{
pulumi.String("string"),
},
ExposeHeaders: pulumi.StringArray{
pulumi.String("string"),
},
MaxAgeSeconds: pulumi.Float64(0),
},
},
Description: pulumi.String("string"),
EnabledCdn: pulumi.Bool(false),
LoggingEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
ReplicationRegionId: pulumi.String("string"),
VersioningEnabled: pulumi.Bool(false),
})
var connectMdmBucketResource = new ConnectMdmBucket("connectMdmBucketResource", ConnectMdmBucketArgs.builder()
.defaultRegionId("string")
.propositionId("string")
.auditingEnabled(false)
.cacheControlAge(0)
.connectMdmBucketId("string")
.corsConfigurations(ConnectMdmBucketCorsConfigurationArgs.builder()
.allowedMethods("string")
.allowedOrigins("string")
.allowedHeaders("string")
.exposeHeaders("string")
.maxAgeSeconds(0)
.build())
.description("string")
.enabledCdn(false)
.loggingEnabled(false)
.name("string")
.replicationRegionId("string")
.versioningEnabled(false)
.build());
connect_mdm_bucket_resource = hsdp.ConnectMdmBucket("connectMdmBucketResource",
default_region_id="string",
proposition_id="string",
auditing_enabled=False,
cache_control_age=0,
connect_mdm_bucket_id="string",
cors_configurations=[{
"allowed_methods": ["string"],
"allowed_origins": ["string"],
"allowed_headers": ["string"],
"expose_headers": ["string"],
"max_age_seconds": 0,
}],
description="string",
enabled_cdn=False,
logging_enabled=False,
name="string",
replication_region_id="string",
versioning_enabled=False)
const connectMdmBucketResource = new hsdp.ConnectMdmBucket("connectMdmBucketResource", {
defaultRegionId: "string",
propositionId: "string",
auditingEnabled: false,
cacheControlAge: 0,
connectMdmBucketId: "string",
corsConfigurations: [{
allowedMethods: ["string"],
allowedOrigins: ["string"],
allowedHeaders: ["string"],
exposeHeaders: ["string"],
maxAgeSeconds: 0,
}],
description: "string",
enabledCdn: false,
loggingEnabled: false,
name: "string",
replicationRegionId: "string",
versioningEnabled: false,
});
type: hsdp:ConnectMdmBucket
properties:
auditingEnabled: false
cacheControlAge: 0
connectMdmBucketId: string
corsConfigurations:
- allowedHeaders:
- string
allowedMethods:
- string
allowedOrigins:
- string
exposeHeaders:
- string
maxAgeSeconds: 0
defaultRegionId: string
description: string
enabledCdn: false
loggingEnabled: false
name: string
propositionId: string
replicationRegionId: string
versioningEnabled: false
ConnectMdmBucket 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 ConnectMdmBucket resource accepts the following input properties:
- Default
Region stringId - The Region this bucket should be provisioned in
- Proposition
Id string - The proposition ID where this bucket falls under
- Auditing
Enabled bool - Set auditing
- Cache
Control doubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - Connect
Mdm stringBucket Id - Cors
Configurations List<ConnectMdm Bucket Cors Configuration> - Description string
- A short description of the device group
- Enabled
Cdn bool - Logging
Enabled bool - Set logging
- Name string
- The name of the device group
- Replication
Region stringId - Versioning
Enabled bool - Set versioning
- Default
Region stringId - The Region this bucket should be provisioned in
- Proposition
Id string - The proposition ID where this bucket falls under
- Auditing
Enabled bool - Set auditing
- Cache
Control float64Age - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - Connect
Mdm stringBucket Id - Cors
Configurations []ConnectMdm Bucket Cors Configuration Args - Description string
- A short description of the device group
- Enabled
Cdn bool - Logging
Enabled bool - Set logging
- Name string
- The name of the device group
- Replication
Region stringId - Versioning
Enabled bool - Set versioning
- default
Region StringId - The Region this bucket should be provisioned in
- proposition
Id String - The proposition ID where this bucket falls under
- auditing
Enabled Boolean - Set auditing
- cache
Control DoubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect
Mdm StringBucket Id - cors
Configurations List<ConnectMdm Bucket Cors Configuration> - description String
- A short description of the device group
- enabled
Cdn Boolean - logging
Enabled Boolean - Set logging
- name String
- The name of the device group
- replication
Region StringId - versioning
Enabled Boolean - Set versioning
- default
Region stringId - The Region this bucket should be provisioned in
- proposition
Id string - The proposition ID where this bucket falls under
- auditing
Enabled boolean - Set auditing
- cache
Control numberAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect
Mdm stringBucket Id - cors
Configurations ConnectMdm Bucket Cors Configuration[] - description string
- A short description of the device group
- enabled
Cdn boolean - logging
Enabled boolean - Set logging
- name string
- The name of the device group
- replication
Region stringId - versioning
Enabled boolean - Set versioning
- default_
region_ strid - The Region this bucket should be provisioned in
- proposition_
id str - The proposition ID where this bucket falls under
- auditing_
enabled bool - Set auditing
- cache_
control_ floatage - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect_
mdm_ strbucket_ id - cors_
configurations Sequence[ConnectMdm Bucket Cors Configuration Args] - description str
- A short description of the device group
- enabled_
cdn bool - logging_
enabled bool - Set logging
- name str
- The name of the device group
- replication_
region_ strid - versioning_
enabled bool - Set versioning
- default
Region StringId - The Region this bucket should be provisioned in
- proposition
Id String - The proposition ID where this bucket falls under
- auditing
Enabled Boolean - Set auditing
- cache
Control NumberAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect
Mdm StringBucket Id - cors
Configurations List<Property Map> - description String
- A short description of the device group
- enabled
Cdn Boolean - logging
Enabled Boolean - Set logging
- name String
- The name of the device group
- replication
Region StringId - versioning
Enabled Boolean - Set versioning
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectMdmBucket resource produces the following output properties:
- guid str
- id str
- The provider-assigned unique ID for this managed resource.
- version_
id str
Look up Existing ConnectMdmBucket Resource
Get an existing ConnectMdmBucket 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?: ConnectMdmBucketState, opts?: CustomResourceOptions): ConnectMdmBucket
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auditing_enabled: Optional[bool] = None,
cache_control_age: Optional[float] = None,
connect_mdm_bucket_id: Optional[str] = None,
cors_configurations: Optional[Sequence[ConnectMdmBucketCorsConfigurationArgs]] = None,
default_region_id: Optional[str] = None,
description: Optional[str] = None,
enabled_cdn: Optional[bool] = None,
guid: Optional[str] = None,
logging_enabled: Optional[bool] = None,
name: Optional[str] = None,
proposition_id: Optional[str] = None,
replication_region_id: Optional[str] = None,
version_id: Optional[str] = None,
versioning_enabled: Optional[bool] = None) -> ConnectMdmBucket
func GetConnectMdmBucket(ctx *Context, name string, id IDInput, state *ConnectMdmBucketState, opts ...ResourceOption) (*ConnectMdmBucket, error)
public static ConnectMdmBucket Get(string name, Input<string> id, ConnectMdmBucketState? state, CustomResourceOptions? opts = null)
public static ConnectMdmBucket get(String name, Output<String> id, ConnectMdmBucketState state, CustomResourceOptions options)
resources: _: type: hsdp:ConnectMdmBucket get: id: ${id}
- 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.
- Auditing
Enabled bool - Set auditing
- Cache
Control doubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - Connect
Mdm stringBucket Id - Cors
Configurations List<ConnectMdm Bucket Cors Configuration> - Default
Region stringId - The Region this bucket should be provisioned in
- Description string
- A short description of the device group
- Enabled
Cdn bool - Guid string
- Logging
Enabled bool - Set logging
- Name string
- The name of the device group
- Proposition
Id string - The proposition ID where this bucket falls under
- Replication
Region stringId - Version
Id string - Versioning
Enabled bool - Set versioning
- Auditing
Enabled bool - Set auditing
- Cache
Control float64Age - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - Connect
Mdm stringBucket Id - Cors
Configurations []ConnectMdm Bucket Cors Configuration Args - Default
Region stringId - The Region this bucket should be provisioned in
- Description string
- A short description of the device group
- Enabled
Cdn bool - Guid string
- Logging
Enabled bool - Set logging
- Name string
- The name of the device group
- Proposition
Id string - The proposition ID where this bucket falls under
- Replication
Region stringId - Version
Id string - Versioning
Enabled bool - Set versioning
- auditing
Enabled Boolean - Set auditing
- cache
Control DoubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect
Mdm StringBucket Id - cors
Configurations List<ConnectMdm Bucket Cors Configuration> - default
Region StringId - The Region this bucket should be provisioned in
- description String
- A short description of the device group
- enabled
Cdn Boolean - guid String
- logging
Enabled Boolean - Set logging
- name String
- The name of the device group
- proposition
Id String - The proposition ID where this bucket falls under
- replication
Region StringId - version
Id String - versioning
Enabled Boolean - Set versioning
- auditing
Enabled boolean - Set auditing
- cache
Control numberAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect
Mdm stringBucket Id - cors
Configurations ConnectMdm Bucket Cors Configuration[] - default
Region stringId - The Region this bucket should be provisioned in
- description string
- A short description of the device group
- enabled
Cdn boolean - guid string
- logging
Enabled boolean - Set logging
- name string
- The name of the device group
- proposition
Id string - The proposition ID where this bucket falls under
- replication
Region stringId - version
Id string - versioning
Enabled boolean - Set versioning
- auditing_
enabled bool - Set auditing
- cache_
control_ floatage - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect_
mdm_ strbucket_ id - cors_
configurations Sequence[ConnectMdm Bucket Cors Configuration Args] - default_
region_ strid - The Region this bucket should be provisioned in
- description str
- A short description of the device group
- enabled_
cdn bool - guid str
- logging_
enabled bool - Set logging
- name str
- The name of the device group
- proposition_
id str - The proposition ID where this bucket falls under
- replication_
region_ strid - version_
id str - versioning_
enabled bool - Set versioning
- auditing
Enabled Boolean - Set auditing
- cache
Control NumberAge - Cache control age settings (Max:
1800
, Min:300
, Default:300
) - connect
Mdm StringBucket Id - cors
Configurations List<Property Map> - default
Region StringId - The Region this bucket should be provisioned in
- description String
- A short description of the device group
- enabled
Cdn Boolean - guid String
- logging
Enabled Boolean - Set logging
- name String
- The name of the device group
- proposition
Id String - The proposition ID where this bucket falls under
- replication
Region StringId - version
Id String - versioning
Enabled Boolean - Set versioning
Supporting Types
ConnectMdmBucketCorsConfiguration, ConnectMdmBucketCorsConfigurationArgs
- Allowed
Methods List<string> - ) Allowed methods: [
GET
,PUT
,POST
,DELETE
,HEAD
] - Allowed
Origins List<string> - ) List of allowed origins
- Allowed
Headers List<string> - Expose
Headers List<string> - ) List of headers to expose
- Max
Age doubleSeconds - Max age in seconds
- Allowed
Methods []string - ) Allowed methods: [
GET
,PUT
,POST
,DELETE
,HEAD
] - Allowed
Origins []string - ) List of allowed origins
- Allowed
Headers []string - Expose
Headers []string - ) List of headers to expose
- Max
Age float64Seconds - Max age in seconds
- allowed
Methods List<String> - ) Allowed methods: [
GET
,PUT
,POST
,DELETE
,HEAD
] - allowed
Origins List<String> - ) List of allowed origins
- allowed
Headers List<String> - expose
Headers List<String> - ) List of headers to expose
- max
Age DoubleSeconds - Max age in seconds
- allowed
Methods string[] - ) Allowed methods: [
GET
,PUT
,POST
,DELETE
,HEAD
] - allowed
Origins string[] - ) List of allowed origins
- allowed
Headers string[] - expose
Headers string[] - ) List of headers to expose
- max
Age numberSeconds - Max age in seconds
- allowed_
methods Sequence[str] - ) Allowed methods: [
GET
,PUT
,POST
,DELETE
,HEAD
] - allowed_
origins Sequence[str] - ) List of allowed origins
- allowed_
headers Sequence[str] - expose_
headers Sequence[str] - ) List of headers to expose
- max_
age_ floatseconds - Max age in seconds
- allowed
Methods List<String> - ) Allowed methods: [
GET
,PUT
,POST
,DELETE
,HEAD
] - allowed
Origins List<String> - ) List of allowed origins
- allowed
Headers List<String> - expose
Headers List<String> - ) List of headers to expose
- max
Age NumberSeconds - Max age in seconds
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.