maxcompute

package
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	pulumi.CustomResourceState

	// The name of the maxcompute project.
	Name pulumi.StringOutput `pulumi:"name"`
	// The type of payment, only `PayAsYouGo` supported currently.
	OrderType pulumi.StringOutput `pulumi:"orderType"`
	// The type of resource Specification, only `OdpsStandard` supported currently.
	SpecificationType pulumi.StringOutput `pulumi:"specificationType"`
}

The project is the basic unit of operation in maxcompute. It is similar to the concept of Database or Schema in traditional databases, and sets the boundary for maxcompute multi-user isolation and access control. [Refer to details](https://www.alibabacloud.com/help/doc-detail/27818.html).

->**NOTE:** Available in 1.77.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/maxcompute"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := maxcompute.NewProject(ctx, "example", &maxcompute.ProjectArgs{
			OrderType:         pulumi.String("PayAsYouGo"),
			SpecificationType: pulumi.String("OdpsStandard"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetProject

func GetProject(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProjectState, opts ...pulumi.ResourceOption) (*Project, error)

GetProject gets an existing Project 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 NewProject

func NewProject(ctx *pulumi.Context,
	name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error)

NewProject registers a new resource with the given unique name, arguments, and options.

type ProjectArgs

type ProjectArgs struct {
	// The name of the maxcompute project.
	Name pulumi.StringPtrInput
	// The type of payment, only `PayAsYouGo` supported currently.
	OrderType pulumi.StringInput
	// The type of resource Specification, only `OdpsStandard` supported currently.
	SpecificationType pulumi.StringInput
}

The set of arguments for constructing a Project resource.

func (ProjectArgs) ElementType

func (ProjectArgs) ElementType() reflect.Type

type ProjectState

type ProjectState struct {
	// The name of the maxcompute project.
	Name pulumi.StringPtrInput
	// The type of payment, only `PayAsYouGo` supported currently.
	OrderType pulumi.StringPtrInput
	// The type of resource Specification, only `OdpsStandard` supported currently.
	SpecificationType pulumi.StringPtrInput
}

func (ProjectState) ElementType

func (ProjectState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL