hsdp.BlrBucket
Explore with Pulumi AI
Create and manage Blob Repository Buckets
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const store = new hsdp.BlrBucket("store", {
propositionId: data.hsdp_connect_mdm_propososition.prop.id,
enableCdn: false,
corsConfiguration: {
allowedOrigins: ["https://foo.hsdp.io"],
allowedMethods: ["GET"],
exposeHeaders: ["X-Hsdp-Signature"],
},
});
import pulumi
import pulumi_hsdp as hsdp
store = hsdp.BlrBucket("store",
proposition_id=data["hsdp_connect_mdm_propososition"]["prop"]["id"],
enable_cdn=False,
cors_configuration={
"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.NewBlrBucket(ctx, "store", &hsdp.BlrBucketArgs{
PropositionId: pulumi.Any(data.Hsdp_connect_mdm_propososition.Prop.Id),
EnableCdn: pulumi.Bool(false),
CorsConfiguration: &hsdp.BlrBucketCorsConfigurationArgs{
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.BlrBucket("store", new()
{
PropositionId = data.Hsdp_connect_mdm_propososition.Prop.Id,
EnableCdn = false,
CorsConfiguration = new Hsdp.Inputs.BlrBucketCorsConfigurationArgs
{
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.BlrBucket;
import com.pulumi.hsdp.BlrBucketArgs;
import com.pulumi.hsdp.inputs.BlrBucketCorsConfigurationArgs;
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 BlrBucket("store", BlrBucketArgs.builder()
.propositionId(data.hsdp_connect_mdm_propososition().prop().id())
.enableCdn(false)
.corsConfiguration(BlrBucketCorsConfigurationArgs.builder()
.allowedOrigins("https://foo.hsdp.io")
.allowedMethods("GET")
.exposeHeaders("X-Hsdp-Signature")
.build())
.build());
}
}
resources:
store:
type: hsdp:BlrBucket
properties:
propositionId: ${data.hsdp_connect_mdm_propososition.prop.id}
enableCdn: false
corsConfiguration:
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 BlrBucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BlrBucket(name: string, args: BlrBucketArgs, opts?: CustomResourceOptions);
@overload
def BlrBucket(resource_name: str,
args: BlrBucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BlrBucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
proposition_id: Optional[str] = None,
blr_bucket_id: Optional[str] = None,
cache_control_age: Optional[float] = None,
cors_configuration: Optional[BlrBucketCorsConfigurationArgs] = None,
enable_cdn: Optional[bool] = None,
enable_create_or_delete_blob_meta: Optional[bool] = None,
enable_hsdp_domain: Optional[bool] = None,
name: Optional[str] = None,
price_class: Optional[str] = None,
principal: Optional[BlrBucketPrincipalArgs] = None)
func NewBlrBucket(ctx *Context, name string, args BlrBucketArgs, opts ...ResourceOption) (*BlrBucket, error)
public BlrBucket(string name, BlrBucketArgs args, CustomResourceOptions? opts = null)
public BlrBucket(String name, BlrBucketArgs args)
public BlrBucket(String name, BlrBucketArgs args, CustomResourceOptions options)
type: hsdp:BlrBucket
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 BlrBucketArgs
- 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 BlrBucketArgs
- 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 BlrBucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BlrBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BlrBucketArgs
- 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 blrBucketResource = new Hsdp.BlrBucket("blrBucketResource", new()
{
PropositionId = "string",
BlrBucketId = "string",
CacheControlAge = 0,
CorsConfiguration = new Hsdp.Inputs.BlrBucketCorsConfigurationArgs
{
AllowedMethods = new[]
{
"string",
},
AllowedOrigins = new[]
{
"string",
},
AllowedHeaders = new[]
{
"string",
},
ExposeHeaders = new[]
{
"string",
},
MaxAgeSeconds = 0,
},
EnableCdn = false,
EnableCreateOrDeleteBlobMeta = false,
EnableHsdpDomain = false,
Name = "string",
PriceClass = "string",
Principal = new Hsdp.Inputs.BlrBucketPrincipalArgs
{
Endpoint = "string",
Environment = "string",
Oauth2ClientId = "string",
Oauth2Password = "string",
Password = "string",
Region = "string",
ServiceId = "string",
ServicePrivateKey = "string",
UaaPassword = "string",
UaaUsername = "string",
Username = "string",
},
});
example, err := hsdp.NewBlrBucket(ctx, "blrBucketResource", &hsdp.BlrBucketArgs{
PropositionId: pulumi.String("string"),
BlrBucketId: pulumi.String("string"),
CacheControlAge: pulumi.Float64(0),
CorsConfiguration: &hsdp.BlrBucketCorsConfigurationArgs{
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),
},
EnableCdn: pulumi.Bool(false),
EnableCreateOrDeleteBlobMeta: pulumi.Bool(false),
EnableHsdpDomain: pulumi.Bool(false),
Name: pulumi.String("string"),
PriceClass: pulumi.String("string"),
Principal: &hsdp.BlrBucketPrincipalArgs{
Endpoint: pulumi.String("string"),
Environment: pulumi.String("string"),
Oauth2ClientId: pulumi.String("string"),
Oauth2Password: pulumi.String("string"),
Password: pulumi.String("string"),
Region: pulumi.String("string"),
ServiceId: pulumi.String("string"),
ServicePrivateKey: pulumi.String("string"),
UaaPassword: pulumi.String("string"),
UaaUsername: pulumi.String("string"),
Username: pulumi.String("string"),
},
})
var blrBucketResource = new BlrBucket("blrBucketResource", BlrBucketArgs.builder()
.propositionId("string")
.blrBucketId("string")
.cacheControlAge(0)
.corsConfiguration(BlrBucketCorsConfigurationArgs.builder()
.allowedMethods("string")
.allowedOrigins("string")
.allowedHeaders("string")
.exposeHeaders("string")
.maxAgeSeconds(0)
.build())
.enableCdn(false)
.enableCreateOrDeleteBlobMeta(false)
.enableHsdpDomain(false)
.name("string")
.priceClass("string")
.principal(BlrBucketPrincipalArgs.builder()
.endpoint("string")
.environment("string")
.oauth2ClientId("string")
.oauth2Password("string")
.password("string")
.region("string")
.serviceId("string")
.servicePrivateKey("string")
.uaaPassword("string")
.uaaUsername("string")
.username("string")
.build())
.build());
blr_bucket_resource = hsdp.BlrBucket("blrBucketResource",
proposition_id="string",
blr_bucket_id="string",
cache_control_age=0,
cors_configuration={
"allowed_methods": ["string"],
"allowed_origins": ["string"],
"allowed_headers": ["string"],
"expose_headers": ["string"],
"max_age_seconds": 0,
},
enable_cdn=False,
enable_create_or_delete_blob_meta=False,
enable_hsdp_domain=False,
name="string",
price_class="string",
principal={
"endpoint": "string",
"environment": "string",
"oauth2_client_id": "string",
"oauth2_password": "string",
"password": "string",
"region": "string",
"service_id": "string",
"service_private_key": "string",
"uaa_password": "string",
"uaa_username": "string",
"username": "string",
})
const blrBucketResource = new hsdp.BlrBucket("blrBucketResource", {
propositionId: "string",
blrBucketId: "string",
cacheControlAge: 0,
corsConfiguration: {
allowedMethods: ["string"],
allowedOrigins: ["string"],
allowedHeaders: ["string"],
exposeHeaders: ["string"],
maxAgeSeconds: 0,
},
enableCdn: false,
enableCreateOrDeleteBlobMeta: false,
enableHsdpDomain: false,
name: "string",
priceClass: "string",
principal: {
endpoint: "string",
environment: "string",
oauth2ClientId: "string",
oauth2Password: "string",
password: "string",
region: "string",
serviceId: "string",
servicePrivateKey: "string",
uaaPassword: "string",
uaaUsername: "string",
username: "string",
},
});
type: hsdp:BlrBucket
properties:
blrBucketId: string
cacheControlAge: 0
corsConfiguration:
allowedHeaders:
- string
allowedMethods:
- string
allowedOrigins:
- string
exposeHeaders:
- string
maxAgeSeconds: 0
enableCdn: false
enableCreateOrDeleteBlobMeta: false
enableHsdpDomain: false
name: string
priceClass: string
principal:
endpoint: string
environment: string
oauth2ClientId: string
oauth2Password: string
password: string
region: string
serviceId: string
servicePrivateKey: string
uaaPassword: string
uaaUsername: string
username: string
propositionId: string
BlrBucket 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 BlrBucket resource accepts the following input properties:
- Proposition
Id string - The proposition ID where this bucket falls under
- Blr
Bucket stringId - Cache
Control doubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - Cors
Configuration BlrBucket Cors Configuration - Enable
Cdn bool - Enable CDN or not
- Enable
Create boolOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- Enable
Hsdp boolDomain - Enable HSDP domain mapping
- Name string
- The name of the device group
- Price
Class string - Principal
Blr
Bucket Principal
- Proposition
Id string - The proposition ID where this bucket falls under
- Blr
Bucket stringId - Cache
Control float64Age - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - Cors
Configuration BlrBucket Cors Configuration Args - Enable
Cdn bool - Enable CDN or not
- Enable
Create boolOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- Enable
Hsdp boolDomain - Enable HSDP domain mapping
- Name string
- The name of the device group
- Price
Class string - Principal
Blr
Bucket Principal Args
- proposition
Id String - The proposition ID where this bucket falls under
- blr
Bucket StringId - cache
Control DoubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors
Configuration BlrBucket Cors Configuration - enable
Cdn Boolean - Enable CDN or not
- enable
Create BooleanOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- enable
Hsdp BooleanDomain - Enable HSDP domain mapping
- name String
- The name of the device group
- price
Class String - principal
Blr
Bucket Principal
- proposition
Id string - The proposition ID where this bucket falls under
- blr
Bucket stringId - cache
Control numberAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors
Configuration BlrBucket Cors Configuration - enable
Cdn boolean - Enable CDN or not
- enable
Create booleanOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- enable
Hsdp booleanDomain - Enable HSDP domain mapping
- name string
- The name of the device group
- price
Class string - principal
Blr
Bucket Principal
- proposition_
id str - The proposition ID where this bucket falls under
- blr_
bucket_ strid - cache_
control_ floatage - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors_
configuration BlrBucket Cors Configuration Args - enable_
cdn bool - Enable CDN or not
- enable_
create_ boolor_ delete_ blob_ meta - Enables creation or deletion of Blob meta data
- enable_
hsdp_ booldomain - Enable HSDP domain mapping
- name str
- The name of the device group
- price_
class str - principal
Blr
Bucket Principal Args
- proposition
Id String - The proposition ID where this bucket falls under
- blr
Bucket StringId - cache
Control NumberAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors
Configuration Property Map - enable
Cdn Boolean - Enable CDN or not
- enable
Create BooleanOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- enable
Hsdp BooleanDomain - Enable HSDP domain mapping
- name String
- The name of the device group
- price
Class String - principal Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the BlrBucket resource produces the following output properties:
Look up Existing BlrBucket Resource
Get an existing BlrBucket 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?: BlrBucketState, opts?: CustomResourceOptions): BlrBucket
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
blr_bucket_id: Optional[str] = None,
cache_control_age: Optional[float] = None,
cors_configuration: Optional[BlrBucketCorsConfigurationArgs] = None,
enable_cdn: Optional[bool] = None,
enable_create_or_delete_blob_meta: Optional[bool] = None,
enable_hsdp_domain: Optional[bool] = None,
guid: Optional[str] = None,
name: Optional[str] = None,
price_class: Optional[str] = None,
principal: Optional[BlrBucketPrincipalArgs] = None,
proposition_id: Optional[str] = None) -> BlrBucket
func GetBlrBucket(ctx *Context, name string, id IDInput, state *BlrBucketState, opts ...ResourceOption) (*BlrBucket, error)
public static BlrBucket Get(string name, Input<string> id, BlrBucketState? state, CustomResourceOptions? opts = null)
public static BlrBucket get(String name, Output<String> id, BlrBucketState state, CustomResourceOptions options)
resources: _: type: hsdp:BlrBucket 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.
- Blr
Bucket stringId - Cache
Control doubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - Cors
Configuration BlrBucket Cors Configuration - Enable
Cdn bool - Enable CDN or not
- Enable
Create boolOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- Enable
Hsdp boolDomain - Enable HSDP domain mapping
- Guid string
- Name string
- The name of the device group
- Price
Class string - Principal
Blr
Bucket Principal - Proposition
Id string - The proposition ID where this bucket falls under
- Blr
Bucket stringId - Cache
Control float64Age - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - Cors
Configuration BlrBucket Cors Configuration Args - Enable
Cdn bool - Enable CDN or not
- Enable
Create boolOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- Enable
Hsdp boolDomain - Enable HSDP domain mapping
- Guid string
- Name string
- The name of the device group
- Price
Class string - Principal
Blr
Bucket Principal Args - Proposition
Id string - The proposition ID where this bucket falls under
- blr
Bucket StringId - cache
Control DoubleAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors
Configuration BlrBucket Cors Configuration - enable
Cdn Boolean - Enable CDN or not
- enable
Create BooleanOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- enable
Hsdp BooleanDomain - Enable HSDP domain mapping
- guid String
- name String
- The name of the device group
- price
Class String - principal
Blr
Bucket Principal - proposition
Id String - The proposition ID where this bucket falls under
- blr
Bucket stringId - cache
Control numberAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors
Configuration BlrBucket Cors Configuration - enable
Cdn boolean - Enable CDN or not
- enable
Create booleanOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- enable
Hsdp booleanDomain - Enable HSDP domain mapping
- guid string
- name string
- The name of the device group
- price
Class string - principal
Blr
Bucket Principal - proposition
Id string - The proposition ID where this bucket falls under
- blr_
bucket_ strid - cache_
control_ floatage - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors_
configuration BlrBucket Cors Configuration Args - enable_
cdn bool - Enable CDN or not
- enable_
create_ boolor_ delete_ blob_ meta - Enables creation or deletion of Blob meta data
- enable_
hsdp_ booldomain - Enable HSDP domain mapping
- guid str
- name str
- The name of the device group
- price_
class str - principal
Blr
Bucket Principal Args - proposition_
id str - The proposition ID where this bucket falls under
- blr
Bucket StringId - cache
Control NumberAge - Cache control age settings (Max:
1800
, Min:300
, Default:1
) - cors
Configuration Property Map - enable
Cdn Boolean - Enable CDN or not
- enable
Create BooleanOr Delete Blob Meta - Enables creation or deletion of Blob meta data
- enable
Hsdp BooleanDomain - Enable HSDP domain mapping
- guid String
- name String
- The name of the device group
- price
Class String - principal Property Map
- proposition
Id String - The proposition ID where this bucket falls under
Supporting Types
BlrBucketCorsConfiguration, BlrBucketCorsConfigurationArgs
- 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
BlrBucketPrincipal, BlrBucketPrincipalArgs
- Endpoint string
- Environment string
- Oauth2Client
Id string - Oauth2Password string
- Password string
- Region string
- Service
Id string - Service
Private stringKey - Uaa
Password string - Uaa
Username string - Username string
- Endpoint string
- Environment string
- Oauth2Client
Id string - Oauth2Password string
- Password string
- Region string
- Service
Id string - Service
Private stringKey - Uaa
Password string - Uaa
Username string - Username string
- endpoint String
- environment String
- oauth2Client
Id String - oauth2Password String
- password String
- region String
- service
Id String - service
Private StringKey - uaa
Password String - uaa
Username String - username String
- endpoint string
- environment string
- oauth2Client
Id string - oauth2Password string
- password string
- region string
- service
Id string - service
Private stringKey - uaa
Password string - uaa
Username string - username string
- endpoint str
- environment str
- oauth2_
client_ strid - oauth2_
password str - password str
- region str
- service_
id str - service_
private_ strkey - uaa_
password str - uaa_
username str - username str
- endpoint String
- environment String
- oauth2Client
Id String - oauth2Password String
- password String
- region String
- service
Id String - service
Private StringKey - uaa
Password String - uaa
Username String - username String
Import
$ pulumi import hsdp:index/blrBucket:BlrBucket An existing Bucket using `hsdp_blr_bucket`, e.g.
bash
$ pulumi import hsdp:index/blrBucket:BlrBucket target Bucket/guid-of-the-bucket-to-import
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.