pulumi_wasm_providers_aws_mini::s3::bucket_website_configuration_v_2

Struct BucketWebsiteConfigurationV2ArgsBuilder

source
pub struct BucketWebsiteConfigurationV2ArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> BucketWebsiteConfigurationV2ArgsBuilder<S>

source

pub fn build_struct(self) -> BucketWebsiteConfigurationV2Args
where S: IsComplete,

Finish building and return the requested object

source

pub fn bucket( self, value: impl Into<Output<String>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetBucket<S>>
where S::Bucket: IsUnset,

Required.

Name of the bucket.

source

pub fn error_document( self, value: impl Into<Output<Option<BucketWebsiteConfigurationV2ErrorDocument>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetErrorDocument<S>>
where S::ErrorDocument: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsiteConfigurationV2ErrorDocument>,
> as Default>::default()

Name of the error document for the website. See below.

source

pub fn maybe_error_document( self, value: Option<impl Into<Output<Option<BucketWebsiteConfigurationV2ErrorDocument>>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetErrorDocument<S>>
where S::ErrorDocument: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsiteConfigurationV2ErrorDocument>,
> as Default>::default()

Name of the error document for the website. See below.

source

pub fn expected_bucket_owner( self, value: impl Into<Output<Option<String>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetExpectedBucketOwner<S>>
where S::ExpectedBucketOwner: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Account ID of the expected bucket owner.

source

pub fn maybe_expected_bucket_owner( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetExpectedBucketOwner<S>>
where S::ExpectedBucketOwner: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Account ID of the expected bucket owner.

source

pub fn index_document( self, value: impl Into<Output<Option<BucketWebsiteConfigurationV2IndexDocument>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetIndexDocument<S>>
where S::IndexDocument: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsiteConfigurationV2IndexDocument>,
> as Default>::default()

Name of the index document for the website. See below.

source

pub fn maybe_index_document( self, value: Option<impl Into<Output<Option<BucketWebsiteConfigurationV2IndexDocument>>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetIndexDocument<S>>
where S::IndexDocument: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsiteConfigurationV2IndexDocument>,
> as Default>::default()

Name of the index document for the website. See below.

source

pub fn redirect_all_requests_to( self, value: impl Into<Output<Option<BucketWebsiteConfigurationV2RedirectAllRequestsTo>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetRedirectAllRequestsTo<S>>
where S::RedirectAllRequestsTo: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsiteConfigurationV2RedirectAllRequestsTo>,
> as Default>::default()

Redirect behavior for every request to this bucket’s website endpoint. See below. Conflicts with error_document, index_document, and routing_rule.

source

pub fn maybe_redirect_all_requests_to( self, value: Option<impl Into<Output<Option<BucketWebsiteConfigurationV2RedirectAllRequestsTo>>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetRedirectAllRequestsTo<S>>
where S::RedirectAllRequestsTo: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::s3::BucketWebsiteConfigurationV2RedirectAllRequestsTo>,
> as Default>::default()

Redirect behavior for every request to this bucket’s website endpoint. See below. Conflicts with error_document, index_document, and routing_rule.

source

pub fn routing_rule_details( self, value: impl Into<Output<Option<String>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetRoutingRuleDetails<S>>
where S::RoutingRuleDetails: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

JSON array containing routing rules describing redirect behavior and when redirects are applied. Use this parameter when your routing rules contain empty String values ("") as seen in the example above.

source

pub fn maybe_routing_rule_details( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetRoutingRuleDetails<S>>
where S::RoutingRuleDetails: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

JSON array containing routing rules describing redirect behavior and when redirects are applied. Use this parameter when your routing rules contain empty String values ("") as seen in the example above.

source

pub fn routing_rules( self, value: impl Into<Output<Option<Vec<BucketWebsiteConfigurationV2RoutingRule>>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetRoutingRules<S>>
where S::RoutingRules: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketWebsiteConfigurationV2RoutingRule>>,
> as Default>::default()

List of rules that define when a redirect is applied and the redirect behavior. See below.

source

pub fn maybe_routing_rules( self, value: Option<impl Into<Output<Option<Vec<BucketWebsiteConfigurationV2RoutingRule>>>>>, ) -> BucketWebsiteConfigurationV2ArgsBuilder<SetRoutingRules<S>>
where S::RoutingRules: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::BucketWebsiteConfigurationV2RoutingRule>>,
> as Default>::default()

List of rules that define when a redirect is applied and the redirect behavior. See below.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.