OrganizationBucketConfigArgs

data class OrganizationBucketConfigArgs(val bucketId: Output<String>? = null, val cmekSettings: Output<OrganizationBucketConfigCmekSettingsArgs>? = null, val description: Output<String>? = null, val location: Output<String>? = null, val organization: Output<String>? = null, val retentionDays: Output<Int>? = null) : ConvertibleToJava<OrganizationBucketConfigArgs>

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetOrganizationArgs;
import com.pulumi.gcp.logging.OrganizationBucketConfig;
import com.pulumi.gcp.logging.OrganizationBucketConfigArgs;
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) {
final var default = OrganizationsFunctions.getOrganization(GetOrganizationArgs.builder()
.organization("123456789")
.build());
var basic = new OrganizationBucketConfig("basic", OrganizationBucketConfigArgs.builder()
.organization(default_.organization())
.location("global")
.retentionDays(30)
.bucketId("_Default")
.build());
}
}

Import

This resource can be imported using the following format

$ pulumi import gcp:logging/organizationBucketConfig:OrganizationBucketConfig default organizations/{{organization}}/locations/{{location}}/buckets/{{bucket_id}}

Constructors

Link copied to clipboard
fun OrganizationBucketConfigArgs(bucketId: Output<String>? = null, cmekSettings: Output<OrganizationBucketConfigCmekSettingsArgs>? = null, description: Output<String>? = null, location: Output<String>? = null, organization: Output<String>? = null, retentionDays: Output<Int>? = null)

Functions

Link copied to clipboard
open override fun toJava(): OrganizationBucketConfigArgs

Properties

Link copied to clipboard
val bucketId: Output<String>? = null

The name of the logging bucket. Logging automatically creates two log buckets: _Required and _Default.

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.

Link copied to clipboard
val description: Output<String>? = null

Describes this bucket.

Link copied to clipboard
val location: Output<String>? = null

The location of the bucket. The supported locations are: "global" "us-central1"

Link copied to clipboard
val organization: Output<String>? = null

The parent resource that contains the logging bucket.

Link copied to clipboard
val retentionDays: Output<Int>? = null

Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. Bucket retention can not be increased on buckets outside of projects.