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 }) }
```
## Import
MaxCompute project can be imported using the *name* or ID, e.g.
```sh
$ pulumi import alicloud:maxcompute/project:Project example tf_maxcompute_project
```
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.
func (Project) ElementType ¶ added in v2.25.1
func (Project) ToProjectOutput ¶ added in v2.25.1
func (i Project) ToProjectOutput() ProjectOutput
func (Project) ToProjectOutputWithContext ¶ added in v2.25.1
func (i Project) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
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 ProjectInput ¶ added in v2.25.1
type ProjectInput interface { pulumi.Input ToProjectOutput() ProjectOutput ToProjectOutputWithContext(ctx context.Context) ProjectOutput }
type ProjectOutput ¶ added in v2.25.1
type ProjectOutput struct {
*pulumi.OutputState
}
func (ProjectOutput) ElementType ¶ added in v2.25.1
func (ProjectOutput) ElementType() reflect.Type
func (ProjectOutput) ToProjectOutput ¶ added in v2.25.1
func (o ProjectOutput) ToProjectOutput() ProjectOutput
func (ProjectOutput) ToProjectOutputWithContext ¶ added in v2.25.1
func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
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