Documentation ¶
Index ¶
- type Workload
- type WorkloadArgs
- type WorkloadArray
- type WorkloadArrayInput
- type WorkloadArrayOutput
- type WorkloadInput
- type WorkloadKmsSettings
- type WorkloadKmsSettingsArgs
- func (WorkloadKmsSettingsArgs) ElementType() reflect.Type
- func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsOutput() WorkloadKmsSettingsOutput
- func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsOutputWithContext(ctx context.Context) WorkloadKmsSettingsOutput
- func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsPtrOutput() WorkloadKmsSettingsPtrOutput
- func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsPtrOutputWithContext(ctx context.Context) WorkloadKmsSettingsPtrOutput
- type WorkloadKmsSettingsInput
- type WorkloadKmsSettingsOutput
- func (WorkloadKmsSettingsOutput) ElementType() reflect.Type
- func (o WorkloadKmsSettingsOutput) NextRotationTime() pulumi.StringOutput
- func (o WorkloadKmsSettingsOutput) RotationPeriod() pulumi.StringOutput
- func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsOutput() WorkloadKmsSettingsOutput
- func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsOutputWithContext(ctx context.Context) WorkloadKmsSettingsOutput
- func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsPtrOutput() WorkloadKmsSettingsPtrOutput
- func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsPtrOutputWithContext(ctx context.Context) WorkloadKmsSettingsPtrOutput
- type WorkloadKmsSettingsPtrInput
- type WorkloadKmsSettingsPtrOutput
- func (o WorkloadKmsSettingsPtrOutput) Elem() WorkloadKmsSettingsOutput
- func (WorkloadKmsSettingsPtrOutput) ElementType() reflect.Type
- func (o WorkloadKmsSettingsPtrOutput) NextRotationTime() pulumi.StringPtrOutput
- func (o WorkloadKmsSettingsPtrOutput) RotationPeriod() pulumi.StringPtrOutput
- func (o WorkloadKmsSettingsPtrOutput) ToWorkloadKmsSettingsPtrOutput() WorkloadKmsSettingsPtrOutput
- func (o WorkloadKmsSettingsPtrOutput) ToWorkloadKmsSettingsPtrOutputWithContext(ctx context.Context) WorkloadKmsSettingsPtrOutput
- type WorkloadMap
- type WorkloadMapInput
- type WorkloadMapOutput
- type WorkloadOutput
- func (o WorkloadOutput) BillingAccount() pulumi.StringOutput
- func (o WorkloadOutput) ComplianceRegime() pulumi.StringOutput
- func (o WorkloadOutput) CreateTime() pulumi.StringOutput
- func (o WorkloadOutput) DisplayName() pulumi.StringOutput
- func (WorkloadOutput) ElementType() reflect.Type
- func (o WorkloadOutput) KmsSettings() WorkloadKmsSettingsPtrOutput
- func (o WorkloadOutput) Labels() pulumi.StringMapOutput
- func (o WorkloadOutput) Location() pulumi.StringOutput
- func (o WorkloadOutput) Name() pulumi.StringOutput
- func (o WorkloadOutput) Organization() pulumi.StringOutput
- func (o WorkloadOutput) ProvisionedResourcesParent() pulumi.StringPtrOutput
- func (o WorkloadOutput) ResourceSettings() WorkloadResourceSettingArrayOutput
- func (o WorkloadOutput) Resources() WorkloadResourceArrayOutput
- func (o WorkloadOutput) ToWorkloadOutput() WorkloadOutput
- func (o WorkloadOutput) ToWorkloadOutputWithContext(ctx context.Context) WorkloadOutput
- type WorkloadResource
- type WorkloadResourceArgs
- type WorkloadResourceArray
- type WorkloadResourceArrayInput
- type WorkloadResourceArrayOutput
- func (WorkloadResourceArrayOutput) ElementType() reflect.Type
- func (o WorkloadResourceArrayOutput) Index(i pulumi.IntInput) WorkloadResourceOutput
- func (o WorkloadResourceArrayOutput) ToWorkloadResourceArrayOutput() WorkloadResourceArrayOutput
- func (o WorkloadResourceArrayOutput) ToWorkloadResourceArrayOutputWithContext(ctx context.Context) WorkloadResourceArrayOutput
- type WorkloadResourceInput
- type WorkloadResourceOutput
- func (WorkloadResourceOutput) ElementType() reflect.Type
- func (o WorkloadResourceOutput) ResourceId() pulumi.IntPtrOutput
- func (o WorkloadResourceOutput) ResourceType() pulumi.StringPtrOutput
- func (o WorkloadResourceOutput) ToWorkloadResourceOutput() WorkloadResourceOutput
- func (o WorkloadResourceOutput) ToWorkloadResourceOutputWithContext(ctx context.Context) WorkloadResourceOutput
- type WorkloadResourceSetting
- type WorkloadResourceSettingArgs
- type WorkloadResourceSettingArray
- func (WorkloadResourceSettingArray) ElementType() reflect.Type
- func (i WorkloadResourceSettingArray) ToWorkloadResourceSettingArrayOutput() WorkloadResourceSettingArrayOutput
- func (i WorkloadResourceSettingArray) ToWorkloadResourceSettingArrayOutputWithContext(ctx context.Context) WorkloadResourceSettingArrayOutput
- type WorkloadResourceSettingArrayInput
- type WorkloadResourceSettingArrayOutput
- func (WorkloadResourceSettingArrayOutput) ElementType() reflect.Type
- func (o WorkloadResourceSettingArrayOutput) Index(i pulumi.IntInput) WorkloadResourceSettingOutput
- func (o WorkloadResourceSettingArrayOutput) ToWorkloadResourceSettingArrayOutput() WorkloadResourceSettingArrayOutput
- func (o WorkloadResourceSettingArrayOutput) ToWorkloadResourceSettingArrayOutputWithContext(ctx context.Context) WorkloadResourceSettingArrayOutput
- type WorkloadResourceSettingInput
- type WorkloadResourceSettingOutput
- func (WorkloadResourceSettingOutput) ElementType() reflect.Type
- func (o WorkloadResourceSettingOutput) ResourceId() pulumi.StringPtrOutput
- func (o WorkloadResourceSettingOutput) ResourceType() pulumi.StringPtrOutput
- func (o WorkloadResourceSettingOutput) ToWorkloadResourceSettingOutput() WorkloadResourceSettingOutput
- func (o WorkloadResourceSettingOutput) ToWorkloadResourceSettingOutputWithContext(ctx context.Context) WorkloadResourceSettingOutput
- type WorkloadState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workload ¶
type Workload struct { pulumi.CustomResourceState // 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`. BillingAccount pulumi.StringOutput `pulumi:"billingAccount"` // Required. Immutable. Compliance Regime associated with this workload. Possible values: COMPLIANCE_REGIME_UNSPECIFIED, IL4, CJIS, FEDRAMP_HIGH, FEDRAMP_MODERATE, US_REGIONAL_ACCESS ComplianceRegime pulumi.StringOutput `pulumi:"complianceRegime"` // Output only. Immutable. The Workload creation timestamp. CreateTime pulumi.StringOutput `pulumi:"createTime"` // 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 DisplayName pulumi.StringOutput `pulumi:"displayName"` // 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. KmsSettings WorkloadKmsSettingsPtrOutput `pulumi:"kmsSettings"` // Optional. Labels applied to the workload. Labels pulumi.StringMapOutput `pulumi:"labels"` // The location for the resource Location pulumi.StringOutput `pulumi:"location"` // Output only. The resource name of the workload. Name pulumi.StringOutput `pulumi:"name"` // The organization for the resource Organization pulumi.StringOutput `pulumi:"organization"` // 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} ProvisionedResourcesParent pulumi.StringPtrOutput `pulumi:"provisionedResourcesParent"` // 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. ResourceSettings WorkloadResourceSettingArrayOutput `pulumi:"resourceSettings"` // Output only. The resources associated with this workload. These resources will be created when creating the workload. If // any of the projects already exist, the workload creation will fail. Always read only. Resources WorkloadResourceArrayOutput `pulumi:"resources"` }
The AssuredWorkloads Workload resource
## Example Usage ### Basic_workload A basic test of a assuredworkloads api ```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/assuredworkloads" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := assuredworkloads.NewWorkload(ctx, "primary", &assuredworkloads.WorkloadArgs{ BillingAccount: pulumi.String("billingAccounts/000000-0000000-0000000-000000"), ComplianceRegime: pulumi.String("FEDRAMP_MODERATE"), DisplayName: pulumi.String("Workload Example"), KmsSettings: &assuredworkloads.WorkloadKmsSettingsArgs{ NextRotationTime: pulumi.String("9999-10-02T15:01:23Z"), RotationPeriod: pulumi.String("10368000s"), }, Labels: pulumi.StringMap{ "label-one": pulumi.String("value-one"), }, Location: pulumi.String("us-west1"), Organization: pulumi.String("123456789"), ProvisionedResourcesParent: pulumi.String("folders/519620126891"), ResourceSettings: assuredworkloads.WorkloadResourceSettingArray{ &assuredworkloads.WorkloadResourceSettingArgs{ ResourceType: pulumi.String("CONSUMER_PROJECT"), }, &assuredworkloads.WorkloadResourceSettingArgs{ ResourceType: pulumi.String("ENCRYPTION_KEYS_PROJECT"), }, &assuredworkloads.WorkloadResourceSettingArgs{ ResourceId: pulumi.String("ring"), ResourceType: pulumi.String("KEYRING"), }, }, }) if err != nil { return err } return nil }) }
```
## Import
Workload can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:assuredworkloads/workload:Workload default organizations/{{organization}}/locations/{{location}}/workloads/{{name}}
```
```sh
$ pulumi import gcp:assuredworkloads/workload:Workload default {{organization}}/{{location}}/{{name}}
```
func GetWorkload ¶
func GetWorkload(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkloadState, opts ...pulumi.ResourceOption) (*Workload, error)
GetWorkload gets an existing Workload resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkload ¶
func NewWorkload(ctx *pulumi.Context, name string, args *WorkloadArgs, opts ...pulumi.ResourceOption) (*Workload, error)
NewWorkload registers a new resource with the given unique name, arguments, and options.
func (*Workload) ElementType ¶
func (*Workload) ToWorkloadOutput ¶
func (i *Workload) ToWorkloadOutput() WorkloadOutput
func (*Workload) ToWorkloadOutputWithContext ¶
func (i *Workload) ToWorkloadOutputWithContext(ctx context.Context) WorkloadOutput
type WorkloadArgs ¶
type WorkloadArgs struct { // 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`. BillingAccount pulumi.StringInput // Required. Immutable. Compliance Regime associated with this workload. Possible values: COMPLIANCE_REGIME_UNSPECIFIED, IL4, CJIS, FEDRAMP_HIGH, FEDRAMP_MODERATE, US_REGIONAL_ACCESS ComplianceRegime pulumi.StringInput // 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 DisplayName pulumi.StringInput // 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. KmsSettings WorkloadKmsSettingsPtrInput // Optional. Labels applied to the workload. Labels pulumi.StringMapInput // The location for the resource Location pulumi.StringInput // The organization for the resource Organization pulumi.StringInput // 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} ProvisionedResourcesParent pulumi.StringPtrInput // 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. ResourceSettings WorkloadResourceSettingArrayInput }
The set of arguments for constructing a Workload resource.
func (WorkloadArgs) ElementType ¶
func (WorkloadArgs) ElementType() reflect.Type
type WorkloadArray ¶
type WorkloadArray []WorkloadInput
func (WorkloadArray) ElementType ¶
func (WorkloadArray) ElementType() reflect.Type
func (WorkloadArray) ToWorkloadArrayOutput ¶
func (i WorkloadArray) ToWorkloadArrayOutput() WorkloadArrayOutput
func (WorkloadArray) ToWorkloadArrayOutputWithContext ¶
func (i WorkloadArray) ToWorkloadArrayOutputWithContext(ctx context.Context) WorkloadArrayOutput
type WorkloadArrayInput ¶
type WorkloadArrayInput interface { pulumi.Input ToWorkloadArrayOutput() WorkloadArrayOutput ToWorkloadArrayOutputWithContext(context.Context) WorkloadArrayOutput }
WorkloadArrayInput is an input type that accepts WorkloadArray and WorkloadArrayOutput values. You can construct a concrete instance of `WorkloadArrayInput` via:
WorkloadArray{ WorkloadArgs{...} }
type WorkloadArrayOutput ¶
type WorkloadArrayOutput struct{ *pulumi.OutputState }
func (WorkloadArrayOutput) ElementType ¶
func (WorkloadArrayOutput) ElementType() reflect.Type
func (WorkloadArrayOutput) Index ¶
func (o WorkloadArrayOutput) Index(i pulumi.IntInput) WorkloadOutput
func (WorkloadArrayOutput) ToWorkloadArrayOutput ¶
func (o WorkloadArrayOutput) ToWorkloadArrayOutput() WorkloadArrayOutput
func (WorkloadArrayOutput) ToWorkloadArrayOutputWithContext ¶
func (o WorkloadArrayOutput) ToWorkloadArrayOutputWithContext(ctx context.Context) WorkloadArrayOutput
type WorkloadInput ¶
type WorkloadInput interface { pulumi.Input ToWorkloadOutput() WorkloadOutput ToWorkloadOutputWithContext(ctx context.Context) WorkloadOutput }
type WorkloadKmsSettings ¶
type WorkloadKmsSettings struct { // Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary. NextRotationTime string `pulumi:"nextRotationTime"` // Required. Input only. Immutable. will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. RotationPeriod string `pulumi:"rotationPeriod"` }
type WorkloadKmsSettingsArgs ¶
type WorkloadKmsSettingsArgs struct { // Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary. NextRotationTime pulumi.StringInput `pulumi:"nextRotationTime"` // Required. Input only. Immutable. will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. RotationPeriod pulumi.StringInput `pulumi:"rotationPeriod"` }
func (WorkloadKmsSettingsArgs) ElementType ¶
func (WorkloadKmsSettingsArgs) ElementType() reflect.Type
func (WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsOutput ¶
func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsOutput() WorkloadKmsSettingsOutput
func (WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsOutputWithContext ¶
func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsOutputWithContext(ctx context.Context) WorkloadKmsSettingsOutput
func (WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsPtrOutput ¶
func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsPtrOutput() WorkloadKmsSettingsPtrOutput
func (WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsPtrOutputWithContext ¶
func (i WorkloadKmsSettingsArgs) ToWorkloadKmsSettingsPtrOutputWithContext(ctx context.Context) WorkloadKmsSettingsPtrOutput
type WorkloadKmsSettingsInput ¶
type WorkloadKmsSettingsInput interface { pulumi.Input ToWorkloadKmsSettingsOutput() WorkloadKmsSettingsOutput ToWorkloadKmsSettingsOutputWithContext(context.Context) WorkloadKmsSettingsOutput }
WorkloadKmsSettingsInput is an input type that accepts WorkloadKmsSettingsArgs and WorkloadKmsSettingsOutput values. You can construct a concrete instance of `WorkloadKmsSettingsInput` via:
WorkloadKmsSettingsArgs{...}
type WorkloadKmsSettingsOutput ¶
type WorkloadKmsSettingsOutput struct{ *pulumi.OutputState }
func (WorkloadKmsSettingsOutput) ElementType ¶
func (WorkloadKmsSettingsOutput) ElementType() reflect.Type
func (WorkloadKmsSettingsOutput) NextRotationTime ¶
func (o WorkloadKmsSettingsOutput) NextRotationTime() pulumi.StringOutput
Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
func (WorkloadKmsSettingsOutput) RotationPeriod ¶
func (o WorkloadKmsSettingsOutput) RotationPeriod() pulumi.StringOutput
Required. Input only. Immutable. will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
func (WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsOutput ¶
func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsOutput() WorkloadKmsSettingsOutput
func (WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsOutputWithContext ¶
func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsOutputWithContext(ctx context.Context) WorkloadKmsSettingsOutput
func (WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsPtrOutput ¶
func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsPtrOutput() WorkloadKmsSettingsPtrOutput
func (WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsPtrOutputWithContext ¶
func (o WorkloadKmsSettingsOutput) ToWorkloadKmsSettingsPtrOutputWithContext(ctx context.Context) WorkloadKmsSettingsPtrOutput
type WorkloadKmsSettingsPtrInput ¶
type WorkloadKmsSettingsPtrInput interface { pulumi.Input ToWorkloadKmsSettingsPtrOutput() WorkloadKmsSettingsPtrOutput ToWorkloadKmsSettingsPtrOutputWithContext(context.Context) WorkloadKmsSettingsPtrOutput }
WorkloadKmsSettingsPtrInput is an input type that accepts WorkloadKmsSettingsArgs, WorkloadKmsSettingsPtr and WorkloadKmsSettingsPtrOutput values. You can construct a concrete instance of `WorkloadKmsSettingsPtrInput` via:
WorkloadKmsSettingsArgs{...} or: nil
func WorkloadKmsSettingsPtr ¶
func WorkloadKmsSettingsPtr(v *WorkloadKmsSettingsArgs) WorkloadKmsSettingsPtrInput
type WorkloadKmsSettingsPtrOutput ¶
type WorkloadKmsSettingsPtrOutput struct{ *pulumi.OutputState }
func (WorkloadKmsSettingsPtrOutput) Elem ¶
func (o WorkloadKmsSettingsPtrOutput) Elem() WorkloadKmsSettingsOutput
func (WorkloadKmsSettingsPtrOutput) ElementType ¶
func (WorkloadKmsSettingsPtrOutput) ElementType() reflect.Type
func (WorkloadKmsSettingsPtrOutput) NextRotationTime ¶
func (o WorkloadKmsSettingsPtrOutput) NextRotationTime() pulumi.StringPtrOutput
Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
func (WorkloadKmsSettingsPtrOutput) RotationPeriod ¶
func (o WorkloadKmsSettingsPtrOutput) RotationPeriod() pulumi.StringPtrOutput
Required. Input only. Immutable. will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
func (WorkloadKmsSettingsPtrOutput) ToWorkloadKmsSettingsPtrOutput ¶
func (o WorkloadKmsSettingsPtrOutput) ToWorkloadKmsSettingsPtrOutput() WorkloadKmsSettingsPtrOutput
func (WorkloadKmsSettingsPtrOutput) ToWorkloadKmsSettingsPtrOutputWithContext ¶
func (o WorkloadKmsSettingsPtrOutput) ToWorkloadKmsSettingsPtrOutputWithContext(ctx context.Context) WorkloadKmsSettingsPtrOutput
type WorkloadMap ¶
type WorkloadMap map[string]WorkloadInput
func (WorkloadMap) ElementType ¶
func (WorkloadMap) ElementType() reflect.Type
func (WorkloadMap) ToWorkloadMapOutput ¶
func (i WorkloadMap) ToWorkloadMapOutput() WorkloadMapOutput
func (WorkloadMap) ToWorkloadMapOutputWithContext ¶
func (i WorkloadMap) ToWorkloadMapOutputWithContext(ctx context.Context) WorkloadMapOutput
type WorkloadMapInput ¶
type WorkloadMapInput interface { pulumi.Input ToWorkloadMapOutput() WorkloadMapOutput ToWorkloadMapOutputWithContext(context.Context) WorkloadMapOutput }
WorkloadMapInput is an input type that accepts WorkloadMap and WorkloadMapOutput values. You can construct a concrete instance of `WorkloadMapInput` via:
WorkloadMap{ "key": WorkloadArgs{...} }
type WorkloadMapOutput ¶
type WorkloadMapOutput struct{ *pulumi.OutputState }
func (WorkloadMapOutput) ElementType ¶
func (WorkloadMapOutput) ElementType() reflect.Type
func (WorkloadMapOutput) MapIndex ¶
func (o WorkloadMapOutput) MapIndex(k pulumi.StringInput) WorkloadOutput
func (WorkloadMapOutput) ToWorkloadMapOutput ¶
func (o WorkloadMapOutput) ToWorkloadMapOutput() WorkloadMapOutput
func (WorkloadMapOutput) ToWorkloadMapOutputWithContext ¶
func (o WorkloadMapOutput) ToWorkloadMapOutputWithContext(ctx context.Context) WorkloadMapOutput
type WorkloadOutput ¶
type WorkloadOutput struct{ *pulumi.OutputState }
func (WorkloadOutput) BillingAccount ¶ added in v6.23.0
func (o WorkloadOutput) BillingAccount() pulumi.StringOutput
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`.
func (WorkloadOutput) ComplianceRegime ¶ added in v6.23.0
func (o WorkloadOutput) ComplianceRegime() pulumi.StringOutput
Required. Immutable. Compliance Regime associated with this workload. Possible values: COMPLIANCE_REGIME_UNSPECIFIED, IL4, CJIS, FEDRAMP_HIGH, FEDRAMP_MODERATE, US_REGIONAL_ACCESS
func (WorkloadOutput) CreateTime ¶ added in v6.23.0
func (o WorkloadOutput) CreateTime() pulumi.StringOutput
Output only. Immutable. The Workload creation timestamp.
func (WorkloadOutput) DisplayName ¶ added in v6.23.0
func (o WorkloadOutput) DisplayName() pulumi.StringOutput
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
func (WorkloadOutput) ElementType ¶
func (WorkloadOutput) ElementType() reflect.Type
func (WorkloadOutput) KmsSettings ¶ added in v6.23.0
func (o WorkloadOutput) KmsSettings() WorkloadKmsSettingsPtrOutput
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.
func (WorkloadOutput) Labels ¶ added in v6.23.0
func (o WorkloadOutput) Labels() pulumi.StringMapOutput
Optional. Labels applied to the workload.
func (WorkloadOutput) Location ¶ added in v6.23.0
func (o WorkloadOutput) Location() pulumi.StringOutput
The location for the resource
func (WorkloadOutput) Name ¶ added in v6.23.0
func (o WorkloadOutput) Name() pulumi.StringOutput
Output only. The resource name of the workload.
func (WorkloadOutput) Organization ¶ added in v6.23.0
func (o WorkloadOutput) Organization() pulumi.StringOutput
The organization for the resource
func (WorkloadOutput) ProvisionedResourcesParent ¶ added in v6.23.0
func (o WorkloadOutput) ProvisionedResourcesParent() pulumi.StringPtrOutput
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}
func (WorkloadOutput) ResourceSettings ¶ added in v6.23.0
func (o WorkloadOutput) ResourceSettings() WorkloadResourceSettingArrayOutput
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.
func (WorkloadOutput) Resources ¶ added in v6.23.0
func (o WorkloadOutput) Resources() WorkloadResourceArrayOutput
Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
func (WorkloadOutput) ToWorkloadOutput ¶
func (o WorkloadOutput) ToWorkloadOutput() WorkloadOutput
func (WorkloadOutput) ToWorkloadOutputWithContext ¶
func (o WorkloadOutput) ToWorkloadOutputWithContext(ctx context.Context) WorkloadOutput
type WorkloadResource ¶
type WorkloadResource struct { // Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail. ResourceId *int `pulumi:"resourceId"` // Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER ResourceType *string `pulumi:"resourceType"` }
type WorkloadResourceArgs ¶
type WorkloadResourceArgs struct { // Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail. ResourceId pulumi.IntPtrInput `pulumi:"resourceId"` // Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER ResourceType pulumi.StringPtrInput `pulumi:"resourceType"` }
func (WorkloadResourceArgs) ElementType ¶
func (WorkloadResourceArgs) ElementType() reflect.Type
func (WorkloadResourceArgs) ToWorkloadResourceOutput ¶
func (i WorkloadResourceArgs) ToWorkloadResourceOutput() WorkloadResourceOutput
func (WorkloadResourceArgs) ToWorkloadResourceOutputWithContext ¶
func (i WorkloadResourceArgs) ToWorkloadResourceOutputWithContext(ctx context.Context) WorkloadResourceOutput
type WorkloadResourceArray ¶
type WorkloadResourceArray []WorkloadResourceInput
func (WorkloadResourceArray) ElementType ¶
func (WorkloadResourceArray) ElementType() reflect.Type
func (WorkloadResourceArray) ToWorkloadResourceArrayOutput ¶
func (i WorkloadResourceArray) ToWorkloadResourceArrayOutput() WorkloadResourceArrayOutput
func (WorkloadResourceArray) ToWorkloadResourceArrayOutputWithContext ¶
func (i WorkloadResourceArray) ToWorkloadResourceArrayOutputWithContext(ctx context.Context) WorkloadResourceArrayOutput
type WorkloadResourceArrayInput ¶
type WorkloadResourceArrayInput interface { pulumi.Input ToWorkloadResourceArrayOutput() WorkloadResourceArrayOutput ToWorkloadResourceArrayOutputWithContext(context.Context) WorkloadResourceArrayOutput }
WorkloadResourceArrayInput is an input type that accepts WorkloadResourceArray and WorkloadResourceArrayOutput values. You can construct a concrete instance of `WorkloadResourceArrayInput` via:
WorkloadResourceArray{ WorkloadResourceArgs{...} }
type WorkloadResourceArrayOutput ¶
type WorkloadResourceArrayOutput struct{ *pulumi.OutputState }
func (WorkloadResourceArrayOutput) ElementType ¶
func (WorkloadResourceArrayOutput) ElementType() reflect.Type
func (WorkloadResourceArrayOutput) Index ¶
func (o WorkloadResourceArrayOutput) Index(i pulumi.IntInput) WorkloadResourceOutput
func (WorkloadResourceArrayOutput) ToWorkloadResourceArrayOutput ¶
func (o WorkloadResourceArrayOutput) ToWorkloadResourceArrayOutput() WorkloadResourceArrayOutput
func (WorkloadResourceArrayOutput) ToWorkloadResourceArrayOutputWithContext ¶
func (o WorkloadResourceArrayOutput) ToWorkloadResourceArrayOutputWithContext(ctx context.Context) WorkloadResourceArrayOutput
type WorkloadResourceInput ¶
type WorkloadResourceInput interface { pulumi.Input ToWorkloadResourceOutput() WorkloadResourceOutput ToWorkloadResourceOutputWithContext(context.Context) WorkloadResourceOutput }
WorkloadResourceInput is an input type that accepts WorkloadResourceArgs and WorkloadResourceOutput values. You can construct a concrete instance of `WorkloadResourceInput` via:
WorkloadResourceArgs{...}
type WorkloadResourceOutput ¶
type WorkloadResourceOutput struct{ *pulumi.OutputState }
func (WorkloadResourceOutput) ElementType ¶
func (WorkloadResourceOutput) ElementType() reflect.Type
func (WorkloadResourceOutput) ResourceId ¶
func (o WorkloadResourceOutput) ResourceId() pulumi.IntPtrOutput
Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail.
func (WorkloadResourceOutput) ResourceType ¶
func (o WorkloadResourceOutput) ResourceType() pulumi.StringPtrOutput
Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER
func (WorkloadResourceOutput) ToWorkloadResourceOutput ¶
func (o WorkloadResourceOutput) ToWorkloadResourceOutput() WorkloadResourceOutput
func (WorkloadResourceOutput) ToWorkloadResourceOutputWithContext ¶
func (o WorkloadResourceOutput) ToWorkloadResourceOutputWithContext(ctx context.Context) WorkloadResourceOutput
type WorkloadResourceSetting ¶
type WorkloadResourceSetting struct { // Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail. ResourceId *string `pulumi:"resourceId"` // Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER ResourceType *string `pulumi:"resourceType"` }
type WorkloadResourceSettingArgs ¶
type WorkloadResourceSettingArgs struct { // Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail. ResourceId pulumi.StringPtrInput `pulumi:"resourceId"` // Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER ResourceType pulumi.StringPtrInput `pulumi:"resourceType"` }
func (WorkloadResourceSettingArgs) ElementType ¶
func (WorkloadResourceSettingArgs) ElementType() reflect.Type
func (WorkloadResourceSettingArgs) ToWorkloadResourceSettingOutput ¶
func (i WorkloadResourceSettingArgs) ToWorkloadResourceSettingOutput() WorkloadResourceSettingOutput
func (WorkloadResourceSettingArgs) ToWorkloadResourceSettingOutputWithContext ¶
func (i WorkloadResourceSettingArgs) ToWorkloadResourceSettingOutputWithContext(ctx context.Context) WorkloadResourceSettingOutput
type WorkloadResourceSettingArray ¶
type WorkloadResourceSettingArray []WorkloadResourceSettingInput
func (WorkloadResourceSettingArray) ElementType ¶
func (WorkloadResourceSettingArray) ElementType() reflect.Type
func (WorkloadResourceSettingArray) ToWorkloadResourceSettingArrayOutput ¶
func (i WorkloadResourceSettingArray) ToWorkloadResourceSettingArrayOutput() WorkloadResourceSettingArrayOutput
func (WorkloadResourceSettingArray) ToWorkloadResourceSettingArrayOutputWithContext ¶
func (i WorkloadResourceSettingArray) ToWorkloadResourceSettingArrayOutputWithContext(ctx context.Context) WorkloadResourceSettingArrayOutput
type WorkloadResourceSettingArrayInput ¶
type WorkloadResourceSettingArrayInput interface { pulumi.Input ToWorkloadResourceSettingArrayOutput() WorkloadResourceSettingArrayOutput ToWorkloadResourceSettingArrayOutputWithContext(context.Context) WorkloadResourceSettingArrayOutput }
WorkloadResourceSettingArrayInput is an input type that accepts WorkloadResourceSettingArray and WorkloadResourceSettingArrayOutput values. You can construct a concrete instance of `WorkloadResourceSettingArrayInput` via:
WorkloadResourceSettingArray{ WorkloadResourceSettingArgs{...} }
type WorkloadResourceSettingArrayOutput ¶
type WorkloadResourceSettingArrayOutput struct{ *pulumi.OutputState }
func (WorkloadResourceSettingArrayOutput) ElementType ¶
func (WorkloadResourceSettingArrayOutput) ElementType() reflect.Type
func (WorkloadResourceSettingArrayOutput) Index ¶
func (o WorkloadResourceSettingArrayOutput) Index(i pulumi.IntInput) WorkloadResourceSettingOutput
func (WorkloadResourceSettingArrayOutput) ToWorkloadResourceSettingArrayOutput ¶
func (o WorkloadResourceSettingArrayOutput) ToWorkloadResourceSettingArrayOutput() WorkloadResourceSettingArrayOutput
func (WorkloadResourceSettingArrayOutput) ToWorkloadResourceSettingArrayOutputWithContext ¶
func (o WorkloadResourceSettingArrayOutput) ToWorkloadResourceSettingArrayOutputWithContext(ctx context.Context) WorkloadResourceSettingArrayOutput
type WorkloadResourceSettingInput ¶
type WorkloadResourceSettingInput interface { pulumi.Input ToWorkloadResourceSettingOutput() WorkloadResourceSettingOutput ToWorkloadResourceSettingOutputWithContext(context.Context) WorkloadResourceSettingOutput }
WorkloadResourceSettingInput is an input type that accepts WorkloadResourceSettingArgs and WorkloadResourceSettingOutput values. You can construct a concrete instance of `WorkloadResourceSettingInput` via:
WorkloadResourceSettingArgs{...}
type WorkloadResourceSettingOutput ¶
type WorkloadResourceSettingOutput struct{ *pulumi.OutputState }
func (WorkloadResourceSettingOutput) ElementType ¶
func (WorkloadResourceSettingOutput) ElementType() reflect.Type
func (WorkloadResourceSettingOutput) ResourceId ¶
func (o WorkloadResourceSettingOutput) ResourceId() pulumi.StringPtrOutput
Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail.
func (WorkloadResourceSettingOutput) ResourceType ¶
func (o WorkloadResourceSettingOutput) ResourceType() pulumi.StringPtrOutput
Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER
func (WorkloadResourceSettingOutput) ToWorkloadResourceSettingOutput ¶
func (o WorkloadResourceSettingOutput) ToWorkloadResourceSettingOutput() WorkloadResourceSettingOutput
func (WorkloadResourceSettingOutput) ToWorkloadResourceSettingOutputWithContext ¶
func (o WorkloadResourceSettingOutput) ToWorkloadResourceSettingOutputWithContext(ctx context.Context) WorkloadResourceSettingOutput
type WorkloadState ¶
type WorkloadState struct { // 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`. BillingAccount pulumi.StringPtrInput // Required. Immutable. Compliance Regime associated with this workload. Possible values: COMPLIANCE_REGIME_UNSPECIFIED, IL4, CJIS, FEDRAMP_HIGH, FEDRAMP_MODERATE, US_REGIONAL_ACCESS ComplianceRegime pulumi.StringPtrInput // Output only. Immutable. The Workload creation timestamp. CreateTime pulumi.StringPtrInput // 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 DisplayName pulumi.StringPtrInput // 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. KmsSettings WorkloadKmsSettingsPtrInput // Optional. Labels applied to the workload. Labels pulumi.StringMapInput // The location for the resource Location pulumi.StringPtrInput // Output only. The resource name of the workload. Name pulumi.StringPtrInput // The organization for the resource Organization pulumi.StringPtrInput // 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} ProvisionedResourcesParent pulumi.StringPtrInput // 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. ResourceSettings WorkloadResourceSettingArrayInput // Output only. The resources associated with this workload. These resources will be created when creating the workload. If // any of the projects already exist, the workload creation will fail. Always read only. Resources WorkloadResourceArrayInput }
func (WorkloadState) ElementType ¶
func (WorkloadState) ElementType() reflect.Type