Google Cloud (GCP) Classic

v6.44.0 published on Tuesday, Nov 29, 2022 by Pulumi

AiFeatureStoreIamPolicy

A collection of DataItems and Annotations on them.

To get more information about Featurestore, see:

Example Usage

Vertex Ai Featurestore

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var featurestore = new Gcp.Vertex.AiFeatureStore("featurestore", new()
    {
        EncryptionSpec = new Gcp.Vertex.Inputs.AiFeatureStoreEncryptionSpecArgs
        {
            KmsKeyName = "kms-name",
        },
        ForceDestroy = true,
        Labels = 
        {
            { "foo", "bar" },
        },
        OnlineServingConfig = new Gcp.Vertex.Inputs.AiFeatureStoreOnlineServingConfigArgs
        {
            FixedNodeCount = 2,
        },
        Region = "us-central1",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/vertex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vertex.NewAiFeatureStore(ctx, "featurestore", &vertex.AiFeatureStoreArgs{
			EncryptionSpec: &vertex.AiFeatureStoreEncryptionSpecArgs{
				KmsKeyName: pulumi.String("kms-name"),
			},
			ForceDestroy: pulumi.Bool(true),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			OnlineServingConfig: &vertex.AiFeatureStoreOnlineServingConfigArgs{
				FixedNodeCount: pulumi.Int(2),
			},
			Region: pulumi.String("us-central1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vertex.AiFeatureStore;
import com.pulumi.gcp.vertex.AiFeatureStoreArgs;
import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEncryptionSpecArgs;
import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs;
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 featurestore = new AiFeatureStore("featurestore", AiFeatureStoreArgs.builder()        
            .encryptionSpec(AiFeatureStoreEncryptionSpecArgs.builder()
                .kmsKeyName("kms-name")
                .build())
            .forceDestroy(true)
            .labels(Map.of("foo", "bar"))
            .onlineServingConfig(AiFeatureStoreOnlineServingConfigArgs.builder()
                .fixedNodeCount(2)
                .build())
            .region("us-central1")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

featurestore = gcp.vertex.AiFeatureStore("featurestore",
    encryption_spec=gcp.vertex.AiFeatureStoreEncryptionSpecArgs(
        kms_key_name="kms-name",
    ),
    force_destroy=True,
    labels={
        "foo": "bar",
    },
    online_serving_config=gcp.vertex.AiFeatureStoreOnlineServingConfigArgs(
        fixed_node_count=2,
    ),
    region="us-central1")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const featurestore = new gcp.vertex.AiFeatureStore("featurestore", {
    encryptionSpec: {
        kmsKeyName: "kms-name",
    },
    forceDestroy: true,
    labels: {
        foo: "bar",
    },
    onlineServingConfig: {
        fixedNodeCount: 2,
    },
    region: "us-central1",
});
resources:
  featurestore:
    type: gcp:vertex:AiFeatureStore
    properties:
      encryptionSpec:
        kmsKeyName: kms-name
      forceDestroy: true
      labels:
        foo: bar
      onlineServingConfig:
        fixedNodeCount: 2
      region: us-central1

Create AiFeatureStoreIamPolicy Resource

new AiFeatureStoreIamPolicy(name: string, args: AiFeatureStoreIamPolicyArgs, opts?: CustomResourceOptions);
@overload
def AiFeatureStoreIamPolicy(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            featurestore: Optional[str] = None,
                            policy_data: Optional[str] = None,
                            project: Optional[str] = None,
                            region: Optional[str] = None)
@overload
def AiFeatureStoreIamPolicy(resource_name: str,
                            args: AiFeatureStoreIamPolicyArgs,
                            opts: Optional[ResourceOptions] = None)
func NewAiFeatureStoreIamPolicy(ctx *Context, name string, args AiFeatureStoreIamPolicyArgs, opts ...ResourceOption) (*AiFeatureStoreIamPolicy, error)
public AiFeatureStoreIamPolicy(string name, AiFeatureStoreIamPolicyArgs args, CustomResourceOptions? opts = null)
public AiFeatureStoreIamPolicy(String name, AiFeatureStoreIamPolicyArgs args)
public AiFeatureStoreIamPolicy(String name, AiFeatureStoreIamPolicyArgs args, CustomResourceOptions options)
type: gcp:vertex:AiFeatureStoreIamPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AiFeatureStoreIamPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AiFeatureStoreIamPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AiFeatureStoreIamPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AiFeatureStoreIamPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AiFeatureStoreIamPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AiFeatureStoreIamPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AiFeatureStoreIamPolicy resource accepts the following input properties:

Featurestore string
PolicyData string
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

The region of the dataset. eg us-central1

Featurestore string
PolicyData string
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

The region of the dataset. eg us-central1

featurestore String
policyData String
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region String

The region of the dataset. eg us-central1

featurestore string
policyData string
project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region string

The region of the dataset. eg us-central1

featurestore str
policy_data str
project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region str

The region of the dataset. eg us-central1

featurestore String
policyData String
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region String

The region of the dataset. eg us-central1

Outputs

All input properties are implicitly available as output properties. Additionally, the AiFeatureStoreIamPolicy resource produces the following output properties:

Etag string
Id string

The provider-assigned unique ID for this managed resource.

Etag string
Id string

The provider-assigned unique ID for this managed resource.

etag String
id String

The provider-assigned unique ID for this managed resource.

etag string
id string

The provider-assigned unique ID for this managed resource.

etag str
id str

The provider-assigned unique ID for this managed resource.

etag String
id String

The provider-assigned unique ID for this managed resource.

Look up Existing AiFeatureStoreIamPolicy Resource

Get an existing AiFeatureStoreIamPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AiFeatureStoreIamPolicyState, opts?: CustomResourceOptions): AiFeatureStoreIamPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        etag: Optional[str] = None,
        featurestore: Optional[str] = None,
        policy_data: Optional[str] = None,
        project: Optional[str] = None,
        region: Optional[str] = None) -> AiFeatureStoreIamPolicy
func GetAiFeatureStoreIamPolicy(ctx *Context, name string, id IDInput, state *AiFeatureStoreIamPolicyState, opts ...ResourceOption) (*AiFeatureStoreIamPolicy, error)
public static AiFeatureStoreIamPolicy Get(string name, Input<string> id, AiFeatureStoreIamPolicyState? state, CustomResourceOptions? opts = null)
public static AiFeatureStoreIamPolicy get(String name, Output<String> id, AiFeatureStoreIamPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Etag string
Featurestore string
PolicyData string
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

The region of the dataset. eg us-central1

Etag string
Featurestore string
PolicyData string
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

The region of the dataset. eg us-central1

etag String
featurestore String
policyData String
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region String

The region of the dataset. eg us-central1

etag string
featurestore string
policyData string
project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region string

The region of the dataset. eg us-central1

etag str
featurestore str
policy_data str
project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region str

The region of the dataset. eg us-central1

etag String
featurestore String
policyData String
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region String

The region of the dataset. eg us-central1

Import

Featurestore can be imported using any of these accepted formats

 $ pulumi import gcp:vertex/aiFeatureStoreIamPolicy:AiFeatureStoreIamPolicy default projects/{{project}}/locations/{{region}}/featurestores/{{name}}
 $ pulumi import gcp:vertex/aiFeatureStoreIamPolicy:AiFeatureStoreIamPolicy default {{project}}/{{region}}/{{name}}
 $ pulumi import gcp:vertex/aiFeatureStoreIamPolicy:AiFeatureStoreIamPolicy default {{region}}/{{name}}
 $ pulumi import gcp:vertex/aiFeatureStoreIamPolicy:AiFeatureStoreIamPolicy default {{name}}

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.