ionoscloud.S3BucketWebsiteConfiguration
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.S3Bucket;
import com.pulumi.ionoscloud.S3BucketWebsiteConfiguration;
import com.pulumi.ionoscloud.S3BucketWebsiteConfigurationArgs;
import com.pulumi.ionoscloud.inputs.S3BucketWebsiteConfigurationRoutingRuleArgs;
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 exampleS3Bucket = new S3Bucket("exampleS3Bucket");
var exampleS3BucketWebsiteConfiguration = new S3BucketWebsiteConfiguration("exampleS3BucketWebsiteConfiguration", S3BucketWebsiteConfigurationArgs.builder()
.bucket(exampleS3Bucket.name())
.indexDocument(S3BucketWebsiteConfigurationIndexDocumentArgs.builder()
.suffix("index.html")
.build())
.errorDocument(S3BucketWebsiteConfigurationErrorDocumentArgs.builder()
.key("error.html")
.build())
.routingRules(S3BucketWebsiteConfigurationRoutingRuleArgs.builder()
.condition(S3BucketWebsiteConfigurationRoutingRuleConditionArgs.builder()
.keyPrefixEquals("docs/")
.build())
.redirect(S3BucketWebsiteConfigurationRoutingRuleRedirectArgs.builder()
.replaceKeyPrefixWith("documents/")
.build())
.build())
.build());
}
}
resources:
exampleS3Bucket:
type: ionoscloud:S3Bucket
exampleS3BucketWebsiteConfiguration:
type: ionoscloud:S3BucketWebsiteConfiguration
properties:
bucket: ${exampleS3Bucket.name}
indexDocument:
- suffix: index.html
errorDocument:
- key: error.html
routingRules:
- condition:
- keyPrefixEquals: docs/
redirect:
- replaceKeyPrefixWith: documents/
Create S3BucketWebsiteConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new S3BucketWebsiteConfiguration(name: string, args: S3BucketWebsiteConfigurationArgs, opts?: CustomResourceOptions);
@overload
def S3BucketWebsiteConfiguration(resource_name: str,
args: S3BucketWebsiteConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def S3BucketWebsiteConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
error_document: Optional[S3BucketWebsiteConfigurationErrorDocumentArgs] = None,
index_document: Optional[S3BucketWebsiteConfigurationIndexDocumentArgs] = None,
redirect_all_requests_to: Optional[S3BucketWebsiteConfigurationRedirectAllRequestsToArgs] = None,
routing_rules: Optional[Sequence[S3BucketWebsiteConfigurationRoutingRuleArgs]] = None)
func NewS3BucketWebsiteConfiguration(ctx *Context, name string, args S3BucketWebsiteConfigurationArgs, opts ...ResourceOption) (*S3BucketWebsiteConfiguration, error)
public S3BucketWebsiteConfiguration(string name, S3BucketWebsiteConfigurationArgs args, CustomResourceOptions? opts = null)
public S3BucketWebsiteConfiguration(String name, S3BucketWebsiteConfigurationArgs args)
public S3BucketWebsiteConfiguration(String name, S3BucketWebsiteConfigurationArgs args, CustomResourceOptions options)
type: ionoscloud:S3BucketWebsiteConfiguration
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 S3BucketWebsiteConfigurationArgs
- 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 S3BucketWebsiteConfigurationArgs
- 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 S3BucketWebsiteConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args S3BucketWebsiteConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args S3BucketWebsiteConfigurationArgs
- 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 s3bucketWebsiteConfigurationResource = new Ionoscloud.S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource", new()
{
Bucket = "string",
ErrorDocument = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationErrorDocumentArgs
{
Key = "string",
},
IndexDocument = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationIndexDocumentArgs
{
Suffix = "string",
},
RedirectAllRequestsTo = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRedirectAllRequestsToArgs
{
HostName = "string",
Protocol = "string",
},
RoutingRules = new[]
{
new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRoutingRuleArgs
{
Condition = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRoutingRuleConditionArgs
{
HttpErrorCodeReturnedEquals = "string",
KeyPrefixEquals = "string",
},
Redirect = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRoutingRuleRedirectArgs
{
HostName = "string",
HttpRedirectCode = "string",
Protocol = "string",
ReplaceKeyPrefixWith = "string",
ReplaceKeyWith = "string",
},
},
},
});
example, err := ionoscloud.NewS3BucketWebsiteConfiguration(ctx, "s3bucketWebsiteConfigurationResource", &ionoscloud.S3BucketWebsiteConfigurationArgs{
Bucket: pulumi.String("string"),
ErrorDocument: &ionoscloud.S3BucketWebsiteConfigurationErrorDocumentArgs{
Key: pulumi.String("string"),
},
IndexDocument: &ionoscloud.S3BucketWebsiteConfigurationIndexDocumentArgs{
Suffix: pulumi.String("string"),
},
RedirectAllRequestsTo: &ionoscloud.S3BucketWebsiteConfigurationRedirectAllRequestsToArgs{
HostName: pulumi.String("string"),
Protocol: pulumi.String("string"),
},
RoutingRules: ionoscloud.S3BucketWebsiteConfigurationRoutingRuleArray{
&ionoscloud.S3BucketWebsiteConfigurationRoutingRuleArgs{
Condition: &ionoscloud.S3BucketWebsiteConfigurationRoutingRuleConditionArgs{
HttpErrorCodeReturnedEquals: pulumi.String("string"),
KeyPrefixEquals: pulumi.String("string"),
},
Redirect: &ionoscloud.S3BucketWebsiteConfigurationRoutingRuleRedirectArgs{
HostName: pulumi.String("string"),
HttpRedirectCode: pulumi.String("string"),
Protocol: pulumi.String("string"),
ReplaceKeyPrefixWith: pulumi.String("string"),
ReplaceKeyWith: pulumi.String("string"),
},
},
},
})
var s3bucketWebsiteConfigurationResource = new S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource", S3BucketWebsiteConfigurationArgs.builder()
.bucket("string")
.errorDocument(S3BucketWebsiteConfigurationErrorDocumentArgs.builder()
.key("string")
.build())
.indexDocument(S3BucketWebsiteConfigurationIndexDocumentArgs.builder()
.suffix("string")
.build())
.redirectAllRequestsTo(S3BucketWebsiteConfigurationRedirectAllRequestsToArgs.builder()
.hostName("string")
.protocol("string")
.build())
.routingRules(S3BucketWebsiteConfigurationRoutingRuleArgs.builder()
.condition(S3BucketWebsiteConfigurationRoutingRuleConditionArgs.builder()
.httpErrorCodeReturnedEquals("string")
.keyPrefixEquals("string")
.build())
.redirect(S3BucketWebsiteConfigurationRoutingRuleRedirectArgs.builder()
.hostName("string")
.httpRedirectCode("string")
.protocol("string")
.replaceKeyPrefixWith("string")
.replaceKeyWith("string")
.build())
.build())
.build());
s3bucket_website_configuration_resource = ionoscloud.S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource",
bucket="string",
error_document={
"key": "string",
},
index_document={
"suffix": "string",
},
redirect_all_requests_to={
"host_name": "string",
"protocol": "string",
},
routing_rules=[{
"condition": {
"http_error_code_returned_equals": "string",
"key_prefix_equals": "string",
},
"redirect": {
"host_name": "string",
"http_redirect_code": "string",
"protocol": "string",
"replace_key_prefix_with": "string",
"replace_key_with": "string",
},
}])
const s3bucketWebsiteConfigurationResource = new ionoscloud.S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource", {
bucket: "string",
errorDocument: {
key: "string",
},
indexDocument: {
suffix: "string",
},
redirectAllRequestsTo: {
hostName: "string",
protocol: "string",
},
routingRules: [{
condition: {
httpErrorCodeReturnedEquals: "string",
keyPrefixEquals: "string",
},
redirect: {
hostName: "string",
httpRedirectCode: "string",
protocol: "string",
replaceKeyPrefixWith: "string",
replaceKeyWith: "string",
},
}],
});
type: ionoscloud:S3BucketWebsiteConfiguration
properties:
bucket: string
errorDocument:
key: string
indexDocument:
suffix: string
redirectAllRequestsTo:
hostName: string
protocol: string
routingRules:
- condition:
httpErrorCodeReturnedEquals: string
keyPrefixEquals: string
redirect:
hostName: string
httpRedirectCode: string
protocol: string
replaceKeyPrefixWith: string
replaceKeyWith: string
S3BucketWebsiteConfiguration 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 S3BucketWebsiteConfiguration resource accepts the following input properties:
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Error
Document S3BucketWebsite Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document S3BucketWebsite Configuration Index Document - Container for the Suffix element.
- Redirect
All S3BucketRequests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules List<S3BucketWebsite Configuration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Error
Document S3BucketWebsite Configuration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document S3BucketWebsite Configuration Index Document Args - Container for the Suffix element.
- Redirect
All S3BucketRequests To Website Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules []S3BucketWebsite Configuration Routing Rule Args - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document S3BucketWebsite Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document S3BucketWebsite Configuration Index Document - Container for the Suffix element.
- redirect
All S3BucketRequests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<S3BucketWebsite Configuration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- bucket string
- [string] The name of the bucket where the object will be stored.
- error
Document S3BucketWebsite Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document S3BucketWebsite Configuration Index Document - Container for the Suffix element.
- redirect
All S3BucketRequests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules S3BucketWebsite Configuration Routing Rule[] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket str
- [string] The name of the bucket where the object will be stored.
- error_
document S3BucketWebsite Configuration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index_
document S3BucketWebsite Configuration Index Document Args - Container for the Suffix element.
- redirect_
all_ S3Bucketrequests_ to Website Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing_
rules Sequence[S3BucketWebsite Configuration Routing Rule Args] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document Property Map - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document Property Map - Container for the Suffix element.
- redirect
All Property MapRequests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<Property Map> - A container for describing a condition that must be met for the specified redirect to apply.
Outputs
All input properties are implicitly available as output properties. Additionally, the S3BucketWebsiteConfiguration 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 S3BucketWebsiteConfiguration Resource
Get an existing S3BucketWebsiteConfiguration 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?: S3BucketWebsiteConfigurationState, opts?: CustomResourceOptions): S3BucketWebsiteConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
error_document: Optional[S3BucketWebsiteConfigurationErrorDocumentArgs] = None,
index_document: Optional[S3BucketWebsiteConfigurationIndexDocumentArgs] = None,
redirect_all_requests_to: Optional[S3BucketWebsiteConfigurationRedirectAllRequestsToArgs] = None,
routing_rules: Optional[Sequence[S3BucketWebsiteConfigurationRoutingRuleArgs]] = None) -> S3BucketWebsiteConfiguration
func GetS3BucketWebsiteConfiguration(ctx *Context, name string, id IDInput, state *S3BucketWebsiteConfigurationState, opts ...ResourceOption) (*S3BucketWebsiteConfiguration, error)
public static S3BucketWebsiteConfiguration Get(string name, Input<string> id, S3BucketWebsiteConfigurationState? state, CustomResourceOptions? opts = null)
public static S3BucketWebsiteConfiguration get(String name, Output<String> id, S3BucketWebsiteConfigurationState state, CustomResourceOptions options)
resources: _: type: ionoscloud:S3BucketWebsiteConfiguration 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 string
- [string] The name of the bucket where the object will be stored.
- Error
Document S3BucketWebsite Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document S3BucketWebsite Configuration Index Document - Container for the Suffix element.
- Redirect
All S3BucketRequests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules List<S3BucketWebsite Configuration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Error
Document S3BucketWebsite Configuration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- Index
Document S3BucketWebsite Configuration Index Document Args - Container for the Suffix element.
- Redirect
All S3BucketRequests To Website Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- Routing
Rules []S3BucketWebsite Configuration Routing Rule Args - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document S3BucketWebsite Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document S3BucketWebsite Configuration Index Document - Container for the Suffix element.
- redirect
All S3BucketRequests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<S3BucketWebsite Configuration Routing Rule> - A container for describing a condition that must be met for the specified redirect to apply.
- bucket string
- [string] The name of the bucket where the object will be stored.
- error
Document S3BucketWebsite Configuration Error Document - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document S3BucketWebsite Configuration Index Document - Container for the Suffix element.
- redirect
All S3BucketRequests To Website Configuration Redirect All Requests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules S3BucketWebsite Configuration Routing Rule[] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket str
- [string] The name of the bucket where the object will be stored.
- error_
document S3BucketWebsite Configuration Error Document Args - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index_
document S3BucketWebsite Configuration Index Document Args - Container for the Suffix element.
- redirect_
all_ S3Bucketrequests_ to Website Configuration Redirect All Requests To Args - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing_
rules Sequence[S3BucketWebsite Configuration Routing Rule Args] - A container for describing a condition that must be met for the specified redirect to apply.
- bucket String
- [string] The name of the bucket where the object will be stored.
- error
Document Property Map - The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
- index
Document Property Map - Container for the Suffix element.
- redirect
All Property MapRequests To - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
- routing
Rules List<Property Map> - A container for describing a condition that must be met for the specified redirect to apply.
Supporting Types
S3BucketWebsiteConfigurationErrorDocument, S3BucketWebsiteConfigurationErrorDocumentArgs
- Key string
- The object key
- Key string
- The object key
- key String
- The object key
- key string
- The object key
- key str
- The object key
- key String
- The object key
S3BucketWebsiteConfigurationIndexDocument, S3BucketWebsiteConfigurationIndexDocumentArgs
- Suffix string
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- Suffix string
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix String
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix string
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix str
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
- suffix String
- A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
S3BucketWebsiteConfigurationRedirectAllRequestsTo, S3BucketWebsiteConfigurationRedirectAllRequestsToArgs
S3BucketWebsiteConfigurationRoutingRule, S3BucketWebsiteConfigurationRoutingRuleArgs
- Condition
S3Bucket
Website Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- Redirect
S3Bucket
Website Configuration Routing Rule Redirect - Container for the redirect information.
- Condition
S3Bucket
Website Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- Redirect
S3Bucket
Website Configuration Routing Rule Redirect - Container for the redirect information.
- condition
S3Bucket
Website Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- redirect
S3Bucket
Website Configuration Routing Rule Redirect - Container for the redirect information.
- condition
S3Bucket
Website Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- redirect
S3Bucket
Website Configuration Routing Rule Redirect - Container for the redirect information.
- condition
S3Bucket
Website Configuration Routing Rule Condition - A container for describing a condition that must be met for the specified redirect to apply.
- redirect
S3Bucket
Website Configuration Routing Rule Redirect - Container for the redirect information.
- condition Property Map
- A container for describing a condition that must be met for the specified redirect to apply.
- redirect Property Map
- Container for the redirect information.
S3BucketWebsiteConfigurationRoutingRuleCondition, S3BucketWebsiteConfigurationRoutingRuleConditionArgs
- Http
Error stringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- Key
Prefix stringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- Http
Error stringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- Key
Prefix stringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http
Error StringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key
Prefix StringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http
Error stringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key
Prefix stringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http_
error_ strcode_ returned_ equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key_
prefix_ strequals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
- http
Error StringCode Returned Equals - The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
- key
Prefix StringEquals - The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
S3BucketWebsiteConfigurationRoutingRuleRedirect, S3BucketWebsiteConfigurationRoutingRuleRedirectArgs
- Host
Name string - The host name to use in the redirect request.
- Http
Redirect stringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- Protocol string
- Protocol to use (http, https).
- Replace
Key stringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- Replace
Key stringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- Host
Name string - The host name to use in the redirect request.
- Http
Redirect stringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- Protocol string
- Protocol to use (http, https).
- Replace
Key stringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- Replace
Key stringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host
Name String - The host name to use in the redirect request.
- http
Redirect StringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol String
- Protocol to use (http, https).
- replace
Key StringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace
Key StringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host
Name string - The host name to use in the redirect request.
- http
Redirect stringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol string
- Protocol to use (http, https).
- replace
Key stringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace
Key stringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host_
name str - The host name to use in the redirect request.
- http_
redirect_ strcode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol str
- Protocol to use (http, https).
- replace_
key_ strprefix_ with - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace_
key_ strwith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
- host
Name String - The host name to use in the redirect request.
- http
Redirect StringCode - The HTTP redirect code to use on the response. Not required if one of the siblings is present.
- protocol String
- Protocol to use (http, https).
- replace
Key StringPrefix With - The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
- replace
Key StringWith - The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
Import
IONOS Object Storage Bucket website configuration can be imported using the bucket
name.
$ pulumi import ionoscloud:index/s3BucketWebsiteConfiguration:S3BucketWebsiteConfiguration example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.