pub struct GetBucketArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> GetBucketArgsBuilder<S>
impl<S: State> GetBucketArgsBuilder<S>
sourcepub fn build_struct(self) -> GetBucketArgswhere
S: IsComplete,
pub fn build_struct(self) -> GetBucketArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn name(
self,
value: impl Into<Output<String>>,
) -> GetBucketArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<String>>,
) -> GetBucketArgsBuilder<SetName<S>>where
S::Name: IsUnset,
Required.
The name of the bucket.
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> GetBucketArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> GetBucketArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of the project in which the resource belongs. If it is not provided then the data source will use the Compute API to find the project id that corresponds to the project number returned from the Storage API, and if no Compute API permissions are available or if the Compute API is disabled it defaults to the provider value. Supplying a value for project
doesn’t influence retrieving data about the bucket but it can be used to prevent use of the Compute API. If you do provide a project
value ensure that it is the correct value for that bucket; the data source will not check that the project id and project number match.
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetBucketArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetBucketArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of the project in which the resource belongs. If it is not provided then the data source will use the Compute API to find the project id that corresponds to the project number returned from the Storage API, and if no Compute API permissions are available or if the Compute API is disabled it defaults to the provider value. Supplying a value for project
doesn’t influence retrieving data about the bucket but it can be used to prevent use of the Compute API. If you do provide a project
value ensure that it is the correct value for that bucket; the data source will not check that the project id and project number match.