Project Bucket Config Args
data class ProjectBucketConfigArgs(val bucketId: Output<String>? = null, val cmekSettings: Output<ProjectBucketConfigCmekSettingsArgs>? = null, val description: Output<String>? = null, val location: Output<String>? = null, val project: Output<String>? = null, val retentionDays: Output<Int>? = null) : ConvertibleToJava<ProjectBucketConfigArgs>
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.logging.ProjectBucketConfig;
import com.pulumi.gcp.logging.ProjectBucketConfigArgs;
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 default_ = new Project("default", ProjectArgs.builder()
.projectId("your-project-id")
.orgId("123456789")
.build());
var basic = new ProjectBucketConfig("basic", ProjectBucketConfigArgs.builder()
.project(default_.id())
.location("global")
.retentionDays(30)
.bucketId("_Default")
.build());
}
}
Content copied to clipboard
Import
This resource can be imported using the following format
$ pulumi import gcp:logging/projectBucketConfig:ProjectBucketConfig default projects/{{project}}/locations/{{location}}/buckets/{{bucket_id}}
Content copied to clipboard
Constructors
Link copied to clipboard
fun ProjectBucketConfigArgs(bucketId: Output<String>? = null, cmekSettings: Output<ProjectBucketConfigCmekSettingsArgs>? = null, description: Output<String>? = null, location: Output<String>? = null, project: Output<String>? = null, retentionDays: Output<Int>? = null)
Functions
Properties
Link copied to clipboard
The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed. Structure is documented below.
Link copied to clipboard