1. Packages
  2. Volcengine
  3. API Docs
  4. tos
  5. BucketMirrorBack
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
volcengine logo
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine

    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:

    BucketName string
    The name of the TOS bucket.
    Rules List<BucketMirrorBackRule>
    The mirror_back rules of the bucket.
    BucketName string
    The name of the TOS bucket.
    Rules []BucketMirrorBackRuleArgs
    The mirror_back rules of the bucket.
    bucketName String
    The name of the TOS bucket.
    rules List<BucketMirrorBackRule>
    The mirror_back rules of the bucket.
    bucketName string
    The name of the TOS bucket.
    rules BucketMirrorBackRule[]
    The mirror_back rules of the bucket.
    bucket_name str
    The name of the TOS bucket.
    rules Sequence[BucketMirrorBackRuleArgs]
    The mirror_back rules of the bucket.
    bucketName 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) -> BucketMirrorBack
    func 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.
    The following state arguments are supported:
    BucketName string
    The name of the TOS bucket.
    Rules List<BucketMirrorBackRule>
    The mirror_back rules of the bucket.
    BucketName string
    The name of the TOS bucket.
    Rules []BucketMirrorBackRuleArgs
    The mirror_back rules of the bucket.
    bucketName String
    The name of the TOS bucket.
    rules List<BucketMirrorBackRule>
    The mirror_back rules of the bucket.
    bucketName string
    The name of the TOS bucket.
    rules BucketMirrorBackRule[]
    The mirror_back rules of the bucket.
    bucket_name str
    The name of the TOS bucket.
    rules Sequence[BucketMirrorBackRuleArgs]
    The mirror_back rules of the bucket.
    bucketName String
    The name of the TOS bucket.
    rules List<Property Map>
    The mirror_back rules of the bucket.

    Supporting Types

    BucketMirrorBackRule, BucketMirrorBackRuleArgs

    Condition BucketMirrorBackRuleCondition
    The condition of the mirror_back rule.
    Id string
    The ID of the mirror_back rule.
    Redirect BucketMirrorBackRuleRedirect
    The redirect configuration of the mirror_back rule.
    Condition BucketMirrorBackRuleCondition
    The condition of the mirror_back rule.
    Id string
    The ID of the mirror_back rule.
    Redirect BucketMirrorBackRuleRedirect
    The redirect configuration of the mirror_back rule.
    condition BucketMirrorBackRuleCondition
    The condition of the mirror_back rule.
    id String
    The ID of the mirror_back rule.
    redirect BucketMirrorBackRuleRedirect
    The redirect configuration of the mirror_back rule.
    condition BucketMirrorBackRuleCondition
    The condition of the mirror_back rule.
    id string
    The ID of the mirror_back rule.
    redirect BucketMirrorBackRuleRedirect
    The redirect configuration of the mirror_back rule.
    condition BucketMirrorBackRuleCondition
    The condition of the mirror_back rule.
    id str
    The ID of the mirror_back rule.
    redirect BucketMirrorBackRuleRedirect
    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

    HttpCode int
    Error code for triggering the source re-fetch function.
    AllowHosts List<string>
    Only when a specific domain name is supported will the origin retrieval be triggered.
    HttpMethods List<string>
    The type of request that triggers the re-sourcing process.
    KeyPrefix string
    The prefix of the object name that matches the source object.
    KeySuffix string
    The suffix of the object name that matches the source object.
    HttpCode int
    Error code for triggering the source re-fetch function.
    AllowHosts []string
    Only when a specific domain name is supported will the origin retrieval be triggered.
    HttpMethods []string
    The type of request that triggers the re-sourcing process.
    KeyPrefix string
    The prefix of the object name that matches the source object.
    KeySuffix string
    The suffix of the object name that matches the source object.
    httpCode Integer
    Error code for triggering the source re-fetch function.
    allowHosts List<String>
    Only when a specific domain name is supported will the origin retrieval be triggered.
    httpMethods List<String>
    The type of request that triggers the re-sourcing process.
    keyPrefix String
    The prefix of the object name that matches the source object.
    keySuffix String
    The suffix of the object name that matches the source object.
    httpCode number
    Error code for triggering the source re-fetch function.
    allowHosts string[]
    Only when a specific domain name is supported will the origin retrieval be triggered.
    httpMethods string[]
    The type of request that triggers the re-sourcing process.
    keyPrefix string
    The prefix of the object name that matches the source object.
    keySuffix 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.
    httpCode Number
    Error code for triggering the source re-fetch function.
    allowHosts List<String>
    Only when a specific domain name is supported will the origin retrieval be triggered.
    httpMethods List<String>
    The type of request that triggers the re-sourcing process.
    keyPrefix String
    The prefix of the object name that matches the source object.
    keySuffix String
    The suffix of the object name that matches the source object.

    BucketMirrorBackRuleRedirect, BucketMirrorBackRuleRedirectArgs

    FetchHeaderToMetaDataRules List<BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRule>
    The fetch header to metadata rules.
    FetchSourceOnRedirect bool
    Whether to fetch source on redirect.
    FetchSourceOnRedirectWithQuery bool
    Whether to fetch source on redirect with query.
    FollowRedirect bool
    Whether to follow redirects.
    MirrorHeaders List<BucketMirrorBackRuleRedirectMirrorHeader>
    The mirror header configuration.
    PassQuery bool
    Whether to pass query parameters.
    PrivateSources List<BucketMirrorBackRuleRedirectPrivateSource>
    The private source configuration.
    PublicSource BucketMirrorBackRuleRedirectPublicSource
    The public source configuration.
    RedirectType string
    The type of redirect.
    Transform BucketMirrorBackRuleRedirectTransform
    The transform configuration.
    FetchHeaderToMetaDataRules []BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRule
    The fetch header to metadata rules.
    FetchSourceOnRedirect bool
    Whether to fetch source on redirect.
    FetchSourceOnRedirectWithQuery bool
    Whether to fetch source on redirect with query.
    FollowRedirect bool
    Whether to follow redirects.
    MirrorHeaders []BucketMirrorBackRuleRedirectMirrorHeader
    The mirror header configuration.
    PassQuery bool
    Whether to pass query parameters.
    PrivateSources []BucketMirrorBackRuleRedirectPrivateSource
    The private source configuration.
    PublicSource BucketMirrorBackRuleRedirectPublicSource
    The public source configuration.
    RedirectType string
    The type of redirect.
    Transform BucketMirrorBackRuleRedirectTransform
    The transform configuration.
    fetchHeaderToMetaDataRules List<BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRule>
    The fetch header to metadata rules.
    fetchSourceOnRedirect Boolean
    Whether to fetch source on redirect.
    fetchSourceOnRedirectWithQuery Boolean
    Whether to fetch source on redirect with query.
    followRedirect Boolean
    Whether to follow redirects.
    mirrorHeaders List<BucketMirrorBackRuleRedirectMirrorHeader>
    The mirror header configuration.
    passQuery Boolean
    Whether to pass query parameters.
    privateSources List<BucketMirrorBackRuleRedirectPrivateSource>
    The private source configuration.
    publicSource BucketMirrorBackRuleRedirectPublicSource
    The public source configuration.
    redirectType String
    The type of redirect.
    transform BucketMirrorBackRuleRedirectTransform
    The transform configuration.
    fetchHeaderToMetaDataRules BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRule[]
    The fetch header to metadata rules.
    fetchSourceOnRedirect boolean
    Whether to fetch source on redirect.
    fetchSourceOnRedirectWithQuery boolean
    Whether to fetch source on redirect with query.
    followRedirect boolean
    Whether to follow redirects.
    mirrorHeaders BucketMirrorBackRuleRedirectMirrorHeader[]
    The mirror header configuration.
    passQuery boolean
    Whether to pass query parameters.
    privateSources BucketMirrorBackRuleRedirectPrivateSource[]
    The private source configuration.
    publicSource BucketMirrorBackRuleRedirectPublicSource
    The public source configuration.
    redirectType string
    The type of redirect.
    transform BucketMirrorBackRuleRedirectTransform
    The transform configuration.
    fetch_header_to_meta_data_rules Sequence[BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRule]
    The fetch header to metadata rules.
    fetch_source_on_redirect bool
    Whether to fetch source on redirect.
    fetch_source_on_redirect_with_query bool
    Whether to fetch source on redirect with query.
    follow_redirect bool
    Whether to follow redirects.
    mirror_headers Sequence[BucketMirrorBackRuleRedirectMirrorHeader]
    The mirror header configuration.
    pass_query bool
    Whether to pass query parameters.
    private_sources Sequence[BucketMirrorBackRuleRedirectPrivateSource]
    The private source configuration.
    public_source BucketMirrorBackRuleRedirectPublicSource
    The public source configuration.
    redirect_type str
    The type of redirect.
    transform BucketMirrorBackRuleRedirectTransform
    The transform configuration.
    fetchHeaderToMetaDataRules List<Property Map>
    The fetch header to metadata rules.
    fetchSourceOnRedirect Boolean
    Whether to fetch source on redirect.
    fetchSourceOnRedirectWithQuery Boolean
    Whether to fetch source on redirect with query.
    followRedirect Boolean
    Whether to follow redirects.
    mirrorHeaders List<Property Map>
    The mirror header configuration.
    passQuery Boolean
    Whether to pass query parameters.
    privateSources List<Property Map>
    The private source configuration.
    publicSource Property Map
    The public source configuration.
    redirectType String
    The type of redirect.
    transform Property Map
    The transform configuration.

    BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRule, BucketMirrorBackRuleRedirectFetchHeaderToMetaDataRuleArgs

    MetaDataSuffix string
    The metadata suffix.
    SourceHeader string
    The source header.
    MetaDataSuffix string
    The metadata suffix.
    SourceHeader string
    The source header.
    metaDataSuffix String
    The metadata suffix.
    sourceHeader String
    The source header.
    metaDataSuffix string
    The metadata suffix.
    sourceHeader string
    The source header.
    meta_data_suffix str
    The metadata suffix.
    source_header str
    The source header.
    metaDataSuffix String
    The metadata suffix.
    sourceHeader String
    The source header.

    BucketMirrorBackRuleRedirectMirrorHeader, BucketMirrorBackRuleRedirectMirrorHeaderArgs

    PassAll bool
    Whether to pass all headers.
    Passes List<string>
    The headers to pass.
    Removes List<string>
    The headers to remove.
    Sets List<BucketMirrorBackRuleRedirectMirrorHeaderSet>
    The mirror header configuration.
    PassAll bool
    Whether to pass all headers.
    Passes []string
    The headers to pass.
    Removes []string
    The headers to remove.
    Sets []BucketMirrorBackRuleRedirectMirrorHeaderSet
    The mirror header configuration.
    passAll Boolean
    Whether to pass all headers.
    passes List<String>
    The headers to pass.
    removes List<String>
    The headers to remove.
    sets List<BucketMirrorBackRuleRedirectMirrorHeaderSet>
    The mirror header configuration.
    passAll boolean
    Whether to pass all headers.
    passes string[]
    The headers to pass.
    removes string[]
    The headers to remove.
    sets BucketMirrorBackRuleRedirectMirrorHeaderSet[]
    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[BucketMirrorBackRuleRedirectMirrorHeaderSet]
    The mirror header configuration.
    passAll 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

    Key string
    The key of the header.
    Value string
    The value of the header.
    Key string
    The key of the header.
    Value string
    The value of the header.
    key String
    The key of the header.
    value String
    The value of the header.
    key string
    The key of the header.
    value string
    The value of the header.
    key str
    The key of the header.
    value str
    The value of the header.
    key String
    The key of the header.
    value String
    The value of the header.

    BucketMirrorBackRuleRedirectPrivateSource, BucketMirrorBackRuleRedirectPrivateSourceArgs

    BucketMirrorBackRuleRedirectPrivateSourceSourceEndpoint, BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointArgs

    followers List<Property Map>
    The follower endpoints.
    primaries List<Property Map>
    The primary endpoints.

    BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollower, BucketMirrorBackRuleRedirectPrivateSourceSourceEndpointFollowerArgs

    bucketName String
    The bucket name.
    credentialProvider 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

    bucketName String
    The bucket name.
    credentialProvider 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

    FixedEndpoint bool
    Whether the endpoint is fixed.
    SourceEndpoint BucketMirrorBackRuleRedirectPublicSourceSourceEndpoint
    The source endpoint.
    FixedEndpoint bool
    Whether the endpoint is fixed.
    SourceEndpoint BucketMirrorBackRuleRedirectPublicSourceSourceEndpoint
    The source endpoint.
    fixedEndpoint Boolean
    Whether the endpoint is fixed.
    sourceEndpoint BucketMirrorBackRuleRedirectPublicSourceSourceEndpoint
    The source endpoint.
    fixedEndpoint boolean
    Whether the endpoint is fixed.
    sourceEndpoint BucketMirrorBackRuleRedirectPublicSourceSourceEndpoint
    The source endpoint.
    fixed_endpoint bool
    Whether the endpoint is fixed.
    source_endpoint BucketMirrorBackRuleRedirectPublicSourceSourceEndpoint
    The source endpoint.
    fixedEndpoint Boolean
    Whether the endpoint is fixed.
    sourceEndpoint Property Map
    The source endpoint.

    BucketMirrorBackRuleRedirectPublicSourceSourceEndpoint, BucketMirrorBackRuleRedirectPublicSourceSourceEndpointArgs

    Followers List<string>
    The follower endpoints.
    Primaries List<string>
    The primary endpoints.
    Followers []string
    The follower endpoints.
    Primaries []string
    The primary endpoints.
    followers List<String>
    The follower endpoints.
    primaries List<String>
    The primary endpoints.
    followers string[]
    The follower endpoints.
    primaries string[]
    The primary endpoints.
    followers Sequence[str]
    The follower endpoints.
    primaries Sequence[str]
    The primary endpoints.
    followers List<String>
    The follower endpoints.
    primaries List<String>
    The primary endpoints.

    BucketMirrorBackRuleRedirectTransform, BucketMirrorBackRuleRedirectTransformArgs

    ReplaceKeyPrefix BucketMirrorBackRuleRedirectTransformReplaceKeyPrefix
    The replace key prefix configuration.
    WithKeyPrefix string
    The key prefix to add.
    WithKeySuffix string
    The key suffix to add.
    ReplaceKeyPrefix BucketMirrorBackRuleRedirectTransformReplaceKeyPrefix
    The replace key prefix configuration.
    WithKeyPrefix string
    The key prefix to add.
    WithKeySuffix string
    The key suffix to add.
    replaceKeyPrefix BucketMirrorBackRuleRedirectTransformReplaceKeyPrefix
    The replace key prefix configuration.
    withKeyPrefix String
    The key prefix to add.
    withKeySuffix String
    The key suffix to add.
    replaceKeyPrefix BucketMirrorBackRuleRedirectTransformReplaceKeyPrefix
    The replace key prefix configuration.
    withKeyPrefix string
    The key prefix to add.
    withKeySuffix string
    The key suffix to add.
    replace_key_prefix BucketMirrorBackRuleRedirectTransformReplaceKeyPrefix
    The replace key prefix configuration.
    with_key_prefix str
    The key prefix to add.
    with_key_suffix str
    The key suffix to add.
    replaceKeyPrefix Property Map
    The replace key prefix configuration.
    withKeyPrefix String
    The key prefix to add.
    withKeySuffix String
    The key suffix to add.

    BucketMirrorBackRuleRedirectTransformReplaceKeyPrefix, BucketMirrorBackRuleRedirectTransformReplaceKeyPrefixArgs

    KeyPrefix string
    The key prefix to replace.
    ReplaceWith string
    The value to replace with.
    KeyPrefix string
    The key prefix to replace.
    ReplaceWith string
    The value to replace with.
    keyPrefix String
    The key prefix to replace.
    replaceWith String
    The value to replace with.
    keyPrefix string
    The key prefix to replace.
    replaceWith string
    The value to replace with.
    key_prefix str
    The key prefix to replace.
    replace_with str
    The value to replace with.
    keyPrefix String
    The key prefix to replace.
    replaceWith 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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate