Provides a resource to manage tos bucket mirror back
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tos.BucketMirrorBack;
import com.pulumi.volcengine.tos.BucketMirrorBackArgs;
import com.pulumi.volcengine.tos.inputs.BucketMirrorBackRuleArgs;
import com.pulumi.volcengine.tos.inputs.BucketMirrorBackRuleConditionArgs;
import com.pulumi.volcengine.tos.inputs.BucketMirrorBackRuleRedirectArgs;
import com.pulumi.volcengine.tos.inputs.BucketMirrorBackRuleRedirectPublicSourceArgs;
import com.pulumi.volcengine.tos.inputs.BucketMirrorBackRuleRedirectPublicSourceSourceEndpointArgs;
import com.pulumi.volcengine.tos.inputs.BucketMirrorBackRuleRedirectTransformArgs;
import com.pulumi.volcengine.tos.inputs.BucketMirrorBackRuleRedirectTransformReplaceKeyPrefixArgs;
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 foo = new BucketMirrorBack("foo", BucketMirrorBackArgs.builder()
.bucketName("tflyb7")
.rules(BucketMirrorBackRuleArgs.builder()
.condition(BucketMirrorBackRuleConditionArgs.builder()
.allowHost("example1.volcengine.com")
.httpCode(404)
.httpMethod(
"GET",
"HEAD")
.keyPrefix("object-key-prefix")
.keySuffix("object-key-suffix")
.build())
.id("1")
.redirect(BucketMirrorBackRuleRedirectArgs.builder()
.fetchSourceOnRedirect(false)
.followRedirect(true)
.mirrorHeader(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.passQuery(true)
.publicSource(BucketMirrorBackRuleRedirectPublicSourceArgs.builder()
.sourceEndpoint(BucketMirrorBackRuleRedirectPublicSourceSourceEndpointArgs.builder()
.follower("http://abc.456/")
.primary("http://abc.123/")
.build())
.build())
.redirectType("Mirror")
.transform(BucketMirrorBackRuleRedirectTransformArgs.builder()
.replaceKeyPrefix(BucketMirrorBackRuleRedirectTransformReplaceKeyPrefixArgs.builder()
.keyPrefix("key-prefix")
.replaceWith("replace-with")
.build())
.withKeyPrefix("addtional-key-prefix")
.withKeySuffix("addtional-key-suffix")
.build())
.build())
.build())
.build());
}
}
resources:
foo:
type: volcengine:tos:BucketMirrorBack
properties:
bucketName: tflyb7
rules:
- condition:
allowHost:
- example1.volcengine.com
httpCode: 404
httpMethod:
- GET
- HEAD
keyPrefix: object-key-prefix
keySuffix: object-key-suffix
id: '1'
redirect:
fetchSourceOnRedirect: false
followRedirect: true
mirrorHeader:
- pass:
- aaa
- bbb
passAll: true
remove:
- xxx
- yyy
passQuery: true
publicSource:
sourceEndpoint:
follower:
- http://abc.456/
primary:
- http://abc.123/
redirectType: Mirror
transform:
replaceKeyPrefix:
keyPrefix: key-prefix
replaceWith: replace-with
withKeyPrefix: addtional-key-prefix
withKeySuffix: addtional-key-suffix
Create BucketMirrorBack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BucketMirrorBack(name: string, args: BucketMirrorBackArgs, opts?: CustomResourceOptions);@overload
def BucketMirrorBack(resource_name: str,
args: BucketMirrorBackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BucketMirrorBack(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
rules: Optional[Sequence[BucketMirrorBackRuleArgs]] = None)func NewBucketMirrorBack(ctx *Context, name string, args BucketMirrorBackArgs, opts ...ResourceOption) (*BucketMirrorBack, error)public BucketMirrorBack(string name, BucketMirrorBackArgs args, CustomResourceOptions? opts = null)
public BucketMirrorBack(String name, BucketMirrorBackArgs args)
public BucketMirrorBack(String name, BucketMirrorBackArgs args, CustomResourceOptions options)
type: volcengine:tos:BucketMirrorBack
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 BucketMirrorBackArgs
- 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 BucketMirrorBackArgs
- 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 BucketMirrorBackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketMirrorBackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketMirrorBackArgs
- 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 bucketMirrorBackResource = new Volcengine.Tos.BucketMirrorBack("bucketMirrorBackResource", new()
{
BucketName = "string",
Rules = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleArgs
{
Condition = new Volcengine.Tos.Inputs.BucketMirrorBackRuleConditionArgs
{
HttpCode = 0,
AllowHosts = new[]
{
"string",
},
HttpMethods = new[]
{
"string",
},
KeyPrefix = "string",
KeySuffix = "string",
},
Id = "string",
Redirect = new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectArgs
{
FetchHeaderToMetaDataRules = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRuleArgs
{
MetaDataSuffix = "string",
SourceHeader = "string",
},
},
FetchSourceOnRedirect = false,
FetchSourceOnRedirectWithQuery = false,
FollowRedirect = false,
MirrorHeaders = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectMirrorHeaderArgs
{
PassAll = false,
Passes = new[]
{
"string",
},
Removes = new[]
{
"string",
},
Sets = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectMirrorHeaderSetArgs
{
Key = "string",
Value = "string",
},
},
},
},
PassQuery = false,
PrivateSources = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPrivateSourceArgs
{
SourceEndpoints = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointArgs
{
Followers = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerArgs
{
BucketName = "string",
CredentialProvider = new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerCredentialProviderArgs
{
Role = "string",
},
Endpoint = "string",
},
},
Primaries = new[]
{
new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryArgs
{
BucketName = "string",
CredentialProvider = new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryCredentialProviderArgs
{
Role = "string",
},
Endpoint = "string",
},
},
},
},
},
},
PublicSource = new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPublicSourceArgs
{
FixedEndpoint = false,
SourceEndpoint = new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectPublicSourceSourceEndpointArgs
{
Followers = new[]
{
"string",
},
Primaries = new[]
{
"string",
},
},
},
RedirectType = "string",
Transform = new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectTransformArgs
{
ReplaceKeyPrefix = new Volcengine.Tos.Inputs.BucketMirrorBackRuleRedirectTransformReplaceKeyPrefixArgs
{
KeyPrefix = "string",
ReplaceWith = "string",
},
WithKeyPrefix = "string",
WithKeySuffix = "string",
},
},
},
},
});
example, err := tos.NewBucketMirrorBack(ctx, "bucketMirrorBackResource", &tos.BucketMirrorBackArgs{
BucketName: pulumi.String("string"),
Rules: tos.BucketMirrorBackRuleArray{
&tos.BucketMirrorBackRuleArgs{
Condition: &tos.BucketMirrorBackRuleConditionArgs{
HttpCode: pulumi.Int(0),
AllowHosts: pulumi.StringArray{
pulumi.String("string"),
},
HttpMethods: pulumi.StringArray{
pulumi.String("string"),
},
KeyPrefix: pulumi.String("string"),
KeySuffix: pulumi.String("string"),
},
Id: pulumi.String("string"),
Redirect: &tos.BucketMirrorBackRuleRedirectArgs{
FetchHeaderToMetaDataRules: tos.BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRuleArray{
&tos.BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRuleArgs{
MetaDataSuffix: pulumi.String("string"),
SourceHeader: pulumi.String("string"),
},
},
FetchSourceOnRedirect: pulumi.Bool(false),
FetchSourceOnRedirectWithQuery: pulumi.Bool(false),
FollowRedirect: pulumi.Bool(false),
MirrorHeaders: tos.BucketMirrorBackRuleRedirectMirrorHeaderArray{
&tos.BucketMirrorBackRuleRedirectMirrorHeaderArgs{
PassAll: pulumi.Bool(false),
Passes: pulumi.StringArray{
pulumi.String("string"),
},
Removes: pulumi.StringArray{
pulumi.String("string"),
},
Sets: tos.BucketMirrorBackRuleRedirectMirrorHeaderSetArray{
&tos.BucketMirrorBackRuleRedirectMirrorHeaderSetArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
PassQuery: pulumi.Bool(false),
PrivateSources: tos.BucketMirrorBackRuleRedirectPrivateSourceArray{
&tos.BucketMirrorBackRuleRedirectPrivateSourceArgs{
SourceEndpoints: tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointArray{
&tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointArgs{
Followers: tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerArray{
&tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerArgs{
BucketName: pulumi.String("string"),
CredentialProvider: &tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerCredentialProviderArgs{
Role: pulumi.String("string"),
},
Endpoint: pulumi.String("string"),
},
},
Primaries: tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryArray{
&tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryArgs{
BucketName: pulumi.String("string"),
CredentialProvider: &tos.BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryCredentialProviderArgs{
Role: pulumi.String("string"),
},
Endpoint: pulumi.String("string"),
},
},
},
},
},
},
PublicSource: &tos.BucketMirrorBackRuleRedirectPublicSourceArgs{
FixedEndpoint: pulumi.Bool(false),
SourceEndpoint: &tos.BucketMirrorBackRuleRedirectPublicSourceSourceEndpointArgs{
Followers: pulumi.StringArray{
pulumi.String("string"),
},
Primaries: pulumi.StringArray{
pulumi.String("string"),
},
},
},
RedirectType: pulumi.String("string"),
Transform: &tos.BucketMirrorBackRuleRedirectTransformArgs{
ReplaceKeyPrefix: &tos.BucketMirrorBackRuleRedirectTransformReplaceKeyPrefixArgs{
KeyPrefix: pulumi.String("string"),
ReplaceWith: pulumi.String("string"),
},
WithKeyPrefix: pulumi.String("string"),
WithKeySuffix: pulumi.String("string"),
},
},
},
},
})
var bucketMirrorBackResource = new BucketMirrorBack("bucketMirrorBackResource", BucketMirrorBackArgs.builder()
.bucketName("string")
.rules(BucketMirrorBackRuleArgs.builder()
.condition(BucketMirrorBackRuleConditionArgs.builder()
.httpCode(0)
.allowHosts("string")
.httpMethods("string")
.keyPrefix("string")
.keySuffix("string")
.build())
.id("string")
.redirect(BucketMirrorBackRuleRedirectArgs.builder()
.fetchHeaderToMetaDataRules(BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRuleArgs.builder()
.metaDataSuffix("string")
.sourceHeader("string")
.build())
.fetchSourceOnRedirect(false)
.fetchSourceOnRedirectWithQuery(false)
.followRedirect(false)
.mirrorHeaders(BucketMirrorBackRuleRedirectMirrorHeaderArgs.builder()
.passAll(false)
.passes("string")
.removes("string")
.sets(BucketMirrorBackRuleRedirectMirrorHeaderSetArgs.builder()
.key("string")
.value("string")
.build())
.build())
.passQuery(false)
.privateSources(BucketMirrorBackRuleRedirectPrivateSourceArgs.builder()
.sourceEndpoints(BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointArgs.builder()
.followers(BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerArgs.builder()
.bucketName("string")
.credentialProvider(BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerCredentialProviderArgs.builder()
.role("string")
.build())
.endpoint("string")
.build())
.primaries(BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryArgs.builder()
.bucketName("string")
.credentialProvider(BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryCredentialProviderArgs.builder()
.role("string")
.build())
.endpoint("string")
.build())
.build())
.build())
.publicSource(BucketMirrorBackRuleRedirectPublicSourceArgs.builder()
.fixedEndpoint(false)
.sourceEndpoint(BucketMirrorBackRuleRedirectPublicSourceSourceEndpointArgs.builder()
.followers("string")
.primaries("string")
.build())
.build())
.redirectType("string")
.transform(BucketMirrorBackRuleRedirectTransformArgs.builder()
.replaceKeyPrefix(BucketMirrorBackRuleRedirectTransformReplaceKeyPrefixArgs.builder()
.keyPrefix("string")
.replaceWith("string")
.build())
.withKeyPrefix("string")
.withKeySuffix("string")
.build())
.build())
.build())
.build());
bucket_mirror_back_resource = volcengine.tos.BucketMirrorBack("bucketMirrorBackResource",
bucket_name="string",
rules=[{
"condition": {
"http_code": 0,
"allow_hosts": ["string"],
"http_methods": ["string"],
"key_prefix": "string",
"key_suffix": "string",
},
"id": "string",
"redirect": {
"fetch_header_to_meta_data_rules": [{
"meta_data_suffix": "string",
"source_header": "string",
}],
"fetch_source_on_redirect": False,
"fetch_source_on_redirect_with_query": False,
"follow_redirect": False,
"mirror_headers": [{
"pass_all": False,
"passes": ["string"],
"removes": ["string"],
"sets": [{
"key": "string",
"value": "string",
}],
}],
"pass_query": False,
"private_sources": [{
"source_endpoints": [{
"followers": [{
"bucket_name": "string",
"credential_provider": {
"role": "string",
},
"endpoint": "string",
}],
"primaries": [{
"bucket_name": "string",
"credential_provider": {
"role": "string",
},
"endpoint": "string",
}],
}],
}],
"public_source": {
"fixed_endpoint": False,
"source_endpoint": {
"followers": ["string"],
"primaries": ["string"],
},
},
"redirect_type": "string",
"transform": {
"replace_key_prefix": {
"key_prefix": "string",
"replace_with": "string",
},
"with_key_prefix": "string",
"with_key_suffix": "string",
},
},
}])
const bucketMirrorBackResource = new volcengine.tos.BucketMirrorBack("bucketMirrorBackResource", {
bucketName: "string",
rules: [{
condition: {
httpCode: 0,
allowHosts: ["string"],
httpMethods: ["string"],
keyPrefix: "string",
keySuffix: "string",
},
id: "string",
redirect: {
fetchHeaderToMetaDataRules: [{
metaDataSuffix: "string",
sourceHeader: "string",
}],
fetchSourceOnRedirect: false,
fetchSourceOnRedirectWithQuery: false,
followRedirect: false,
mirrorHeaders: [{
passAll: false,
passes: ["string"],
removes: ["string"],
sets: [{
key: "string",
value: "string",
}],
}],
passQuery: false,
privateSources: [{
sourceEndpoints: [{
followers: [{
bucketName: "string",
credentialProvider: {
role: "string",
},
endpoint: "string",
}],
primaries: [{
bucketName: "string",
credentialProvider: {
role: "string",
},
endpoint: "string",
}],
}],
}],
publicSource: {
fixedEndpoint: false,
sourceEndpoint: {
followers: ["string"],
primaries: ["string"],
},
},
redirectType: "string",
transform: {
replaceKeyPrefix: {
keyPrefix: "string",
replaceWith: "string",
},
withKeyPrefix: "string",
withKeySuffix: "string",
},
},
}],
});
type: volcengine:tos:BucketMirrorBack
properties:
bucketName: string
rules:
- condition:
allowHosts:
- string
httpCode: 0
httpMethods:
- string
keyPrefix: string
keySuffix: string
id: string
redirect:
fetchHeaderToMetaDataRules:
- metaDataSuffix: string
sourceHeader: string
fetchSourceOnRedirect: false
fetchSourceOnRedirectWithQuery: false
followRedirect: false
mirrorHeaders:
- passAll: false
passes:
- string
removes:
- string
sets:
- key: string
value: string
passQuery: false
privateSources:
- sourceEndpoints:
- followers:
- bucketName: string
credentialProvider:
role: string
endpoint: string
primaries:
- bucketName: string
credentialProvider:
role: string
endpoint: string
publicSource:
fixedEndpoint: false
sourceEndpoint:
followers:
- string
primaries:
- string
redirectType: string
transform:
replaceKeyPrefix:
keyPrefix: string
replaceWith: string
withKeyPrefix: string
withKeySuffix: string
BucketMirrorBack 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 BucketMirrorBack resource accepts the following input properties:
- Bucket
Name string - The name of the TOS bucket.
- Rules
List<Bucket
Mirror Back Rule> - The mirror_back rules of the bucket.
- Bucket
Name string - The name of the TOS bucket.
- Rules
[]Bucket
Mirror Back Rule Args - The mirror_back rules of the bucket.
- bucket
Name String - The name of the TOS bucket.
- rules
List<Bucket
Mirror Back Rule> - The mirror_back rules of the bucket.
- bucket
Name string - The name of the TOS bucket.
- rules
Bucket
Mirror Back Rule[] - The mirror_back rules of the bucket.
- bucket_
name str - The name of the TOS bucket.
- rules
Sequence[Bucket
Mirror Back Rule Args] - The mirror_back rules of the bucket.
- bucket
Name String - The name of the TOS bucket.
- rules List<Property Map>
- The mirror_back rules of the bucket.
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketMirrorBack 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 BucketMirrorBack Resource
Get an existing BucketMirrorBack 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?: BucketMirrorBackState, opts?: CustomResourceOptions): BucketMirrorBack@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
rules: Optional[Sequence[BucketMirrorBackRuleArgs]] = None) -> BucketMirrorBackfunc GetBucketMirrorBack(ctx *Context, name string, id IDInput, state *BucketMirrorBackState, opts ...ResourceOption) (*BucketMirrorBack, error)public static BucketMirrorBack Get(string name, Input<string> id, BucketMirrorBackState? state, CustomResourceOptions? opts = null)public static BucketMirrorBack get(String name, Output<String> id, BucketMirrorBackState state, CustomResourceOptions options)resources: _: type: volcengine:tos:BucketMirrorBack 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.
- Bucket
Name string - The name of the TOS bucket.
- Rules
List<Bucket
Mirror Back Rule> - The mirror_back rules of the bucket.
- Bucket
Name string - The name of the TOS bucket.
- Rules
[]Bucket
Mirror Back Rule Args - The mirror_back rules of the bucket.
- bucket
Name String - The name of the TOS bucket.
- rules
List<Bucket
Mirror Back Rule> - The mirror_back rules of the bucket.
- bucket
Name string - The name of the TOS bucket.
- rules
Bucket
Mirror Back Rule[] - The mirror_back rules of the bucket.
- bucket_
name str - The name of the TOS bucket.
- rules
Sequence[Bucket
Mirror Back Rule Args] - The mirror_back rules of the bucket.
- bucket
Name String - The name of the TOS bucket.
- rules List<Property Map>
- The mirror_back rules of the bucket.
Supporting Types
BucketMirrorBackRule, BucketMirrorBackRuleArgs
- Condition
Bucket
Mirror Back Rule Condition - The condition of the mirror_back rule.
- Id string
- The ID of the mirror_back rule.
- Redirect
Bucket
Mirror Back Rule Redirect - The redirect configuration of the mirror_back rule.
- Condition
Bucket
Mirror Back Rule Condition - The condition of the mirror_back rule.
- Id string
- The ID of the mirror_back rule.
- Redirect
Bucket
Mirror Back Rule Redirect - The redirect configuration of the mirror_back rule.
- condition
Bucket
Mirror Back Rule Condition - The condition of the mirror_back rule.
- id String
- The ID of the mirror_back rule.
- redirect
Bucket
Mirror Back Rule Redirect - The redirect configuration of the mirror_back rule.
- condition
Bucket
Mirror Back Rule Condition - The condition of the mirror_back rule.
- id string
- The ID of the mirror_back rule.
- redirect
Bucket
Mirror Back Rule Redirect - The redirect configuration of the mirror_back rule.
- condition
Bucket
Mirror Back Rule Condition - The condition of the mirror_back rule.
- id str
- The ID of the mirror_back rule.
- redirect
Bucket
Mirror Back Rule Redirect - The redirect configuration of the mirror_back rule.
- condition Property Map
- The condition of the mirror_back rule.
- id String
- The ID of the mirror_back rule.
- redirect Property Map
- The redirect configuration of the mirror_back rule.
BucketMirrorBackRuleCondition, BucketMirrorBackRuleConditionArgs
- Http
Code int - Error code for triggering the source re-fetch function.
- Allow
Hosts List<string> - Only when a specific domain name is supported will the origin retrieval be triggered.
- Http
Methods List<string> - The type of request that triggers the re-sourcing process.
- Key
Prefix string - The prefix of the object name that matches the source object.
- Key
Suffix string - The suffix of the object name that matches the source object.
- Http
Code int - Error code for triggering the source re-fetch function.
- Allow
Hosts []string - Only when a specific domain name is supported will the origin retrieval be triggered.
- Http
Methods []string - The type of request that triggers the re-sourcing process.
- Key
Prefix string - The prefix of the object name that matches the source object.
- Key
Suffix string - The suffix of the object name that matches the source object.
- http
Code Integer - Error code for triggering the source re-fetch function.
- allow
Hosts List<String> - Only when a specific domain name is supported will the origin retrieval be triggered.
- http
Methods List<String> - The type of request that triggers the re-sourcing process.
- key
Prefix String - The prefix of the object name that matches the source object.
- key
Suffix String - The suffix of the object name that matches the source object.
- http
Code number - Error code for triggering the source re-fetch function.
- allow
Hosts string[] - Only when a specific domain name is supported will the origin retrieval be triggered.
- http
Methods string[] - The type of request that triggers the re-sourcing process.
- key
Prefix string - The prefix of the object name that matches the source object.
- key
Suffix string - The suffix of the object name that matches the source object.
- http_
code int - Error code for triggering the source re-fetch function.
- allow_
hosts Sequence[str] - Only when a specific domain name is supported will the origin retrieval be triggered.
- http_
methods Sequence[str] - The type of request that triggers the re-sourcing process.
- key_
prefix str - The prefix of the object name that matches the source object.
- key_
suffix str - The suffix of the object name that matches the source object.
- http
Code Number - Error code for triggering the source re-fetch function.
- allow
Hosts List<String> - Only when a specific domain name is supported will the origin retrieval be triggered.
- http
Methods List<String> - The type of request that triggers the re-sourcing process.
- key
Prefix String - The prefix of the object name that matches the source object.
- key
Suffix String - The suffix of the object name that matches the source object.
BucketMirrorBackRuleRedirect, BucketMirrorBackRuleRedirectArgs
- Fetch
Header List<BucketTo Meta Data Rules Mirror Back Rule Redirect Fetch Header To Meta Data Rule> - The fetch header to metadata rules.
- Fetch
Source boolOn Redirect - Whether to fetch source on redirect.
- Fetch
Source boolOn Redirect With Query - Whether to fetch source on redirect with query.
- Follow
Redirect bool - Whether to follow redirects.
- Mirror
Headers List<BucketMirror Back Rule Redirect Mirror Header> - The mirror header configuration.
- Pass
Query bool - Whether to pass query parameters.
- Private
Sources List<BucketMirror Back Rule Redirect Private Source> - The private source configuration.
- Public
Source BucketMirror Back Rule Redirect Public Source - The public source configuration.
- Redirect
Type string - The type of redirect.
- Transform
Bucket
Mirror Back Rule Redirect Transform - The transform configuration.
- Fetch
Header []BucketTo Meta Data Rules Mirror Back Rule Redirect Fetch Header To Meta Data Rule - The fetch header to metadata rules.
- Fetch
Source boolOn Redirect - Whether to fetch source on redirect.
- Fetch
Source boolOn Redirect With Query - Whether to fetch source on redirect with query.
- Follow
Redirect bool - Whether to follow redirects.
- Mirror
Headers []BucketMirror Back Rule Redirect Mirror Header - The mirror header configuration.
- Pass
Query bool - Whether to pass query parameters.
- Private
Sources []BucketMirror Back Rule Redirect Private Source - The private source configuration.
- Public
Source BucketMirror Back Rule Redirect Public Source - The public source configuration.
- Redirect
Type string - The type of redirect.
- Transform
Bucket
Mirror Back Rule Redirect Transform - The transform configuration.
- fetch
Header List<BucketTo Meta Data Rules Mirror Back Rule Redirect Fetch Header To Meta Data Rule> - The fetch header to metadata rules.
- fetch
Source BooleanOn Redirect - Whether to fetch source on redirect.
- fetch
Source BooleanOn Redirect With Query - Whether to fetch source on redirect with query.
- follow
Redirect Boolean - Whether to follow redirects.
- mirror
Headers List<BucketMirror Back Rule Redirect Mirror Header> - The mirror header configuration.
- pass
Query Boolean - Whether to pass query parameters.
- private
Sources List<BucketMirror Back Rule Redirect Private Source> - The private source configuration.
- public
Source BucketMirror Back Rule Redirect Public Source - The public source configuration.
- redirect
Type String - The type of redirect.
- transform
Bucket
Mirror Back Rule Redirect Transform - The transform configuration.
- fetch
Header BucketTo Meta Data Rules Mirror Back Rule Redirect Fetch Header To Meta Data Rule[] - The fetch header to metadata rules.
- fetch
Source booleanOn Redirect - Whether to fetch source on redirect.
- fetch
Source booleanOn Redirect With Query - Whether to fetch source on redirect with query.
- follow
Redirect boolean - Whether to follow redirects.
- mirror
Headers BucketMirror Back Rule Redirect Mirror Header[] - The mirror header configuration.
- pass
Query boolean - Whether to pass query parameters.
- private
Sources BucketMirror Back Rule Redirect Private Source[] - The private source configuration.
- public
Source BucketMirror Back Rule Redirect Public Source - The public source configuration.
- redirect
Type string - The type of redirect.
- transform
Bucket
Mirror Back Rule Redirect Transform - The transform configuration.
- fetch_
header_ Sequence[Bucketto_ meta_ data_ rules Mirror Back Rule Redirect Fetch Header To Meta Data Rule] - The fetch header to metadata rules.
- fetch_
source_ boolon_ redirect - Whether to fetch source on redirect.
- fetch_
source_ boolon_ redirect_ with_ query - Whether to fetch source on redirect with query.
- follow_
redirect bool - Whether to follow redirects.
- mirror_
headers Sequence[BucketMirror Back Rule Redirect Mirror Header] - The mirror header configuration.
- pass_
query bool - Whether to pass query parameters.
- private_
sources Sequence[BucketMirror Back Rule Redirect Private Source] - The private source configuration.
- public_
source BucketMirror Back Rule Redirect Public Source - The public source configuration.
- redirect_
type str - The type of redirect.
- transform
Bucket
Mirror Back Rule Redirect Transform - The transform configuration.
- fetch
Header List<Property Map>To Meta Data Rules - The fetch header to metadata rules.
- fetch
Source BooleanOn Redirect - Whether to fetch source on redirect.
- fetch
Source BooleanOn Redirect With Query - Whether to fetch source on redirect with query.
- follow
Redirect Boolean - Whether to follow redirects.
- mirror
Headers List<Property Map> - The mirror header configuration.
- pass
Query Boolean - Whether to pass query parameters.
- private
Sources List<Property Map> - The private source configuration.
- public
Source Property Map - The public source configuration.
- redirect
Type String - The type of redirect.
- transform Property Map
- The transform configuration.
BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRule, BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRuleArgs
- Meta
Data stringSuffix - The metadata suffix.
- Source
Header string - The source header.
- Meta
Data stringSuffix - The metadata suffix.
- Source
Header string - The source header.
- meta
Data StringSuffix - The metadata suffix.
- source
Header String - The source header.
- meta
Data stringSuffix - The metadata suffix.
- source
Header string - The source header.
- meta_
data_ strsuffix - The metadata suffix.
- source_
header str - The source header.
- meta
Data StringSuffix - The metadata suffix.
- source
Header String - The source header.
BucketMirrorBackRuleRedirectMirrorHeader, BucketMirrorBackRuleRedirectMirrorHeaderArgs
- Pass
All bool - Whether to pass all headers.
- Passes List<string>
- The headers to pass.
- Removes List<string>
- The headers to remove.
- Sets
List<Bucket
Mirror Back Rule Redirect Mirror Header Set> - The mirror header configuration.
- Pass
All bool - Whether to pass all headers.
- Passes []string
- The headers to pass.
- Removes []string
- The headers to remove.
- Sets
[]Bucket
Mirror Back Rule Redirect Mirror Header Set - The mirror header configuration.
- pass
All Boolean - Whether to pass all headers.
- passes List<String>
- The headers to pass.
- removes List<String>
- The headers to remove.
- sets
List<Bucket
Mirror Back Rule Redirect Mirror Header Set> - The mirror header configuration.
- pass
All boolean - Whether to pass all headers.
- passes string[]
- The headers to pass.
- removes string[]
- The headers to remove.
- sets
Bucket
Mirror Back Rule Redirect Mirror Header Set[] - The mirror header configuration.
- pass_
all bool - Whether to pass all headers.
- passes Sequence[str]
- The headers to pass.
- removes Sequence[str]
- The headers to remove.
- sets
Sequence[Bucket
Mirror Back Rule Redirect Mirror Header Set] - The mirror header configuration.
- pass
All Boolean - Whether to pass all headers.
- passes List<String>
- The headers to pass.
- removes List<String>
- The headers to remove.
- sets List<Property Map>
- The mirror header configuration.
BucketMirrorBackRuleRedirectMirrorHeaderSet, BucketMirrorBackRuleRedirectMirrorHeaderSetArgs
BucketMirrorBackRuleRedirectPrivateSource, BucketMirrorBackRuleRedirectPrivateSourceArgs
- Source
Endpoints List<BucketMirror Back Rule Redirect Private Source Source Endpoint> - The source endpoint.
- Source
Endpoints []BucketMirror Back Rule Redirect Private Source Source Endpoint - The source endpoint.
- source
Endpoints List<BucketMirror Back Rule Redirect Private Source Source Endpoint> - The source endpoint.
- source
Endpoints BucketMirror Back Rule Redirect Private Source Source Endpoint[] - The source endpoint.
- source_
endpoints Sequence[BucketMirror Back Rule Redirect Private Source Source Endpoint] - The source endpoint.
- source
Endpoints List<Property Map> - The source endpoint.
BucketMirrorBackRuleRedirectPrivateSourceSourceEndpoint, BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointArgs
- Followers
List<Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Follower> - The follower endpoints.
- Primaries
List<Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Primary> - The primary endpoints.
- Followers
[]Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Follower - The follower endpoints.
- Primaries
[]Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Primary - The primary endpoints.
- followers
List<Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Follower> - The follower endpoints.
- primaries
List<Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Primary> - The primary endpoints.
- followers
Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Follower[] - The follower endpoints.
- primaries
Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Primary[] - The primary endpoints.
- followers
Sequence[Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Follower] - The follower endpoints.
- primaries
Sequence[Bucket
Mirror Back Rule Redirect Private Source Source Endpoint Primary] - The primary endpoints.
- followers List<Property Map>
- The follower endpoints.
- primaries List<Property Map>
- The primary endpoints.
BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollower, BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerArgs
- Bucket
Name string - The bucket name.
- Credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Follower Credential Provider - The credential provider.
- Endpoint string
- The endpoint.
- Bucket
Name string - The bucket name.
- Credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Follower Credential Provider - The credential provider.
- Endpoint string
- The endpoint.
- bucket
Name String - The bucket name.
- credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Follower Credential Provider - The credential provider.
- endpoint String
- The endpoint.
- bucket
Name string - The bucket name.
- credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Follower Credential Provider - The credential provider.
- endpoint string
- The endpoint.
- bucket_
name str - The bucket name.
- credential_
provider BucketMirror Back Rule Redirect Private Source Source Endpoint Follower Credential Provider - The credential provider.
- endpoint str
- The endpoint.
- bucket
Name String - The bucket name.
- credential
Provider Property Map - The credential provider.
- endpoint String
- The endpoint.
BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerCredentialProvider, BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerCredentialProviderArgs
- Role string
- The role.
- Role string
- The role.
- role String
- The role.
- role string
- The role.
- role str
- The role.
- role String
- The role.
BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimary, BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryArgs
- Bucket
Name string - The bucket name.
- Credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Primary Credential Provider - The credential provider.
- Endpoint string
- The endpoint.
- Bucket
Name string - The bucket name.
- Credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Primary Credential Provider - The credential provider.
- Endpoint string
- The endpoint.
- bucket
Name String - The bucket name.
- credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Primary Credential Provider - The credential provider.
- endpoint String
- The endpoint.
- bucket
Name string - The bucket name.
- credential
Provider BucketMirror Back Rule Redirect Private Source Source Endpoint Primary Credential Provider - The credential provider.
- endpoint string
- The endpoint.
- bucket_
name str - The bucket name.
- credential_
provider BucketMirror Back Rule Redirect Private Source Source Endpoint Primary Credential Provider - The credential provider.
- endpoint str
- The endpoint.
- bucket
Name String - The bucket name.
- credential
Provider Property Map - The credential provider.
- endpoint String
- The endpoint.
BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryCredentialProvider, BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointPrimaryCredentialProviderArgs
- Role string
- The role.
- Role string
- The role.
- role String
- The role.
- role string
- The role.
- role str
- The role.
- role String
- The role.
BucketMirrorBackRuleRedirectPublicSource, BucketMirrorBackRuleRedirectPublicSourceArgs
- Fixed
Endpoint bool - Whether the endpoint is fixed.
- Source
Endpoint BucketMirror Back Rule Redirect Public Source Source Endpoint - The source endpoint.
- Fixed
Endpoint bool - Whether the endpoint is fixed.
- Source
Endpoint BucketMirror Back Rule Redirect Public Source Source Endpoint - The source endpoint.
- fixed
Endpoint Boolean - Whether the endpoint is fixed.
- source
Endpoint BucketMirror Back Rule Redirect Public Source Source Endpoint - The source endpoint.
- fixed
Endpoint boolean - Whether the endpoint is fixed.
- source
Endpoint BucketMirror Back Rule Redirect Public Source Source Endpoint - The source endpoint.
- fixed_
endpoint bool - Whether the endpoint is fixed.
- source_
endpoint BucketMirror Back Rule Redirect Public Source Source Endpoint - The source endpoint.
- fixed
Endpoint Boolean - Whether the endpoint is fixed.
- source
Endpoint Property Map - The source endpoint.
BucketMirrorBackRuleRedirectPublicSourceSourceEndpoint, BucketMirrorBackRuleRedirectPublicSourceSourceEndpointArgs
BucketMirrorBackRuleRedirectTransform, BucketMirrorBackRuleRedirectTransformArgs
- Replace
Key BucketPrefix Mirror Back Rule Redirect Transform Replace Key Prefix - The replace key prefix configuration.
- With
Key stringPrefix - The key prefix to add.
- With
Key stringSuffix - The key suffix to add.
- Replace
Key BucketPrefix Mirror Back Rule Redirect Transform Replace Key Prefix - The replace key prefix configuration.
- With
Key stringPrefix - The key prefix to add.
- With
Key stringSuffix - The key suffix to add.
- replace
Key BucketPrefix Mirror Back Rule Redirect Transform Replace Key Prefix - The replace key prefix configuration.
- with
Key StringPrefix - The key prefix to add.
- with
Key StringSuffix - The key suffix to add.
- replace
Key BucketPrefix Mirror Back Rule Redirect Transform Replace Key Prefix - The replace key prefix configuration.
- with
Key stringPrefix - The key prefix to add.
- with
Key stringSuffix - The key suffix to add.
- replace_
key_ Bucketprefix Mirror Back Rule Redirect Transform Replace Key Prefix - The replace key prefix configuration.
- with_
key_ strprefix - The key prefix to add.
- with_
key_ strsuffix - The key suffix to add.
- replace
Key Property MapPrefix - The replace key prefix configuration.
- with
Key StringPrefix - The key prefix to add.
- with
Key StringSuffix - The key suffix to add.
BucketMirrorBackRuleRedirectTransformReplaceKeyPrefix, BucketMirrorBackRuleRedirectTransformReplaceKeyPrefixArgs
- Key
Prefix string - The key prefix to replace.
- Replace
With string - The value to replace with.
- Key
Prefix string - The key prefix to replace.
- Replace
With string - The value to replace with.
- key
Prefix String - The key prefix to replace.
- replace
With String - The value to replace with.
- key
Prefix string - The key prefix to replace.
- replace
With string - The value to replace with.
- key_
prefix str - The key prefix to replace.
- replace_
with str - The value to replace with.
- key
Prefix String - The key prefix to replace.
- replace
With String - The value to replace with.
Import
TosBucketMirrorBack can be imported using the bucketName, e.g.
$ pulumi import volcengine:tos/bucketMirrorBack:BucketMirrorBack default bucket_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
