WorkloadArgs

data class WorkloadArgs(val billingAccount: Output<String>? = null, val complianceRegime: Output<String>? = null, val displayName: Output<String>? = null, val kmsSettings: Output<WorkloadKmsSettingsArgs>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val organization: Output<String>? = null, val provisionedResourcesParent: Output<String>? = null, val resourceSettings: Output<List<WorkloadResourceSettingArgs>>? = null) : ConvertibleToJava<WorkloadArgs>

The AssuredWorkloads Workload resource

Example Usage

Basic_workload

A basic test of a assuredworkloads api

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.assuredworkloads.Workload;
import com.pulumi.gcp.assuredworkloads.WorkloadArgs;
import com.pulumi.gcp.assuredworkloads.inputs.WorkloadKmsSettingsArgs;
import com.pulumi.gcp.assuredworkloads.inputs.WorkloadResourceSettingArgs;
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 primary = new Workload("primary", WorkloadArgs.builder()
.billingAccount("billingAccounts/000000-0000000-0000000-000000")
.complianceRegime("FEDRAMP_MODERATE")
.displayName("Workload Example")
.kmsSettings(WorkloadKmsSettingsArgs.builder()
.nextRotationTime("9999-10-02T15:01:23Z")
.rotationPeriod("10368000s")
.build())
.labels(Map.of("label-one", "value-one"))
.location("us-west1")
.organization("123456789")
.provisionedResourcesParent("folders/519620126891")
.resourceSettings(
WorkloadResourceSettingArgs.builder()
.resourceType("CONSUMER_PROJECT")
.build(),
WorkloadResourceSettingArgs.builder()
.resourceType("ENCRYPTION_KEYS_PROJECT")
.build(),
WorkloadResourceSettingArgs.builder()
.resourceId("ring")
.resourceType("KEYRING")
.build())
.build());
}
}

Import

Workload can be imported using any of these accepted formats

$ pulumi import gcp:assuredworkloads/workload:Workload default organizations/{{organization}}/locations/{{location}}/workloads/{{name}}
$ pulumi import gcp:assuredworkloads/workload:Workload default {{organization}}/{{location}}/{{name}}

Constructors

Link copied to clipboard
constructor(billingAccount: Output<String>? = null, complianceRegime: Output<String>? = null, displayName: Output<String>? = null, kmsSettings: Output<WorkloadKmsSettingsArgs>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, organization: Output<String>? = null, provisionedResourcesParent: Output<String>? = null, resourceSettings: Output<List<WorkloadResourceSettingArgs>>? = null)

Properties

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

Required. Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form billingAccounts/{billing_account_id}. For example, 'billingAccounts/012345-567890-ABCDEF`.

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

Required. Immutable. Compliance Regime associated with this workload. Possible values: COMPLIANCE_REGIME_UNSPECIFIED, IL4, CJIS, FEDRAMP_HIGH, FEDRAMP_MODERATE, US_REGIONAL_ACCESS, HIPAA, EU_REGIONS_AND_SUPPORT, CA_REGIONS_AND_SUPPORT, ITAR, AU_REGIONS_AND_US_SUPPORT, ASSURED_WORKLOADS_FOR_PARTNERS

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

Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload

Link copied to clipboard

Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Optional. Labels applied to the workload.

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

The location for the resource

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

The organization for the resource

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

Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id}, organizations/{organization_id}

Link copied to clipboard

Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.

Functions

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