Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.metastore/v1beta.Federation
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a metastore federation in a project and location.
Create Federation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Federation(name: string, args: FederationArgs, opts?: CustomResourceOptions);
@overload
def Federation(resource_name: str,
args: FederationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Federation(resource_name: str,
opts: Optional[ResourceOptions] = None,
federation_id: Optional[str] = None,
backend_metastores: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
version: Optional[str] = None)
func NewFederation(ctx *Context, name string, args FederationArgs, opts ...ResourceOption) (*Federation, error)
public Federation(string name, FederationArgs args, CustomResourceOptions? opts = null)
public Federation(String name, FederationArgs args)
public Federation(String name, FederationArgs args, CustomResourceOptions options)
type: google-native:metastore/v1beta:Federation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FederationArgs
- 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 FederationArgs
- 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 FederationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FederationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FederationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplefederationResourceResourceFromMetastorev1beta = new GoogleNative.Metastore.V1Beta.Federation("examplefederationResourceResourceFromMetastorev1beta", new()
{
FederationId = "string",
BackendMetastores =
{
{ "string", "string" },
},
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
RequestId = "string",
Version = "string",
});
example, err := metastorev1beta.NewFederation(ctx, "examplefederationResourceResourceFromMetastorev1beta", &metastorev1beta.FederationArgs{
FederationId: pulumi.String("string"),
BackendMetastores: pulumi.StringMap{
"string": pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
Version: pulumi.String("string"),
})
var examplefederationResourceResourceFromMetastorev1beta = new Federation("examplefederationResourceResourceFromMetastorev1beta", FederationArgs.builder()
.federationId("string")
.backendMetastores(Map.of("string", "string"))
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.requestId("string")
.version("string")
.build());
examplefederation_resource_resource_from_metastorev1beta = google_native.metastore.v1beta.Federation("examplefederationResourceResourceFromMetastorev1beta",
federation_id="string",
backend_metastores={
"string": "string",
},
labels={
"string": "string",
},
location="string",
name="string",
project="string",
request_id="string",
version="string")
const examplefederationResourceResourceFromMetastorev1beta = new google_native.metastore.v1beta.Federation("examplefederationResourceResourceFromMetastorev1beta", {
federationId: "string",
backendMetastores: {
string: "string",
},
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
requestId: "string",
version: "string",
});
type: google-native:metastore/v1beta:Federation
properties:
backendMetastores:
string: string
federationId: string
labels:
string: string
location: string
name: string
project: string
requestId: string
version: string
Federation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Federation resource accepts the following input properties:
- Federation
Id string - Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- Backend
Metastores Dictionary<string, string> - A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.
- Labels Dictionary<string, string>
- User-defined labels for the metastore federation.
- Location string
- Name string
- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
- Project string
- Request
Id string - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- Version string
- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
- Federation
Id string - Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- Backend
Metastores map[string]string - A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.
- Labels map[string]string
- User-defined labels for the metastore federation.
- Location string
- Name string
- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
- Project string
- Request
Id string - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- Version string
- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
- federation
Id String - Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- backend
Metastores Map<String,String> - A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.
- labels Map<String,String>
- User-defined labels for the metastore federation.
- location String
- name String
- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
- project String
- request
Id String - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- version String
- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
- federation
Id string - Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- backend
Metastores {[key: string]: string} - A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.
- labels {[key: string]: string}
- User-defined labels for the metastore federation.
- location string
- name string
- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
- project string
- request
Id string - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- version string
- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
- federation_
id str - Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- backend_
metastores Mapping[str, str] - A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.
- labels Mapping[str, str]
- User-defined labels for the metastore federation.
- location str
- name str
- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
- project str
- request_
id str - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- version str
- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
- federation
Id String - Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- backend
Metastores Map<String> - A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.
- labels Map<String>
- User-defined labels for the metastore federation.
- location String
- name String
- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
- project String
- request
Id String - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- version String
- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
Outputs
All input properties are implicitly available as output properties. Additionally, the Federation resource produces the following output properties:
- Create
Time string - The time when the metastore federation was created.
- Endpoint
Uri string - The federation endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the federation.
- State
Message string - Additional information about the current state of the metastore federation, if available.
- Uid string
- The globally unique resource identifier of the metastore federation.
- Update
Time string - The time when the metastore federation was last updated.
- Create
Time string - The time when the metastore federation was created.
- Endpoint
Uri string - The federation endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the federation.
- State
Message string - Additional information about the current state of the metastore federation, if available.
- Uid string
- The globally unique resource identifier of the metastore federation.
- Update
Time string - The time when the metastore federation was last updated.
- create
Time String - The time when the metastore federation was created.
- endpoint
Uri String - The federation endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the federation.
- state
Message String - Additional information about the current state of the metastore federation, if available.
- uid String
- The globally unique resource identifier of the metastore federation.
- update
Time String - The time when the metastore federation was last updated.
- create
Time string - The time when the metastore federation was created.
- endpoint
Uri string - The federation endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the federation.
- state
Message string - Additional information about the current state of the metastore federation, if available.
- uid string
- The globally unique resource identifier of the metastore federation.
- update
Time string - The time when the metastore federation was last updated.
- create_
time str - The time when the metastore federation was created.
- endpoint_
uri str - The federation endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the federation.
- state_
message str - Additional information about the current state of the metastore federation, if available.
- uid str
- The globally unique resource identifier of the metastore federation.
- update_
time str - The time when the metastore federation was last updated.
- create
Time String - The time when the metastore federation was created.
- endpoint
Uri String - The federation endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the federation.
- state
Message String - Additional information about the current state of the metastore federation, if available.
- uid String
- The globally unique resource identifier of the metastore federation.
- update
Time String - The time when the metastore federation was last updated.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.