flexibleengine.DliPackage
Explore with Pulumi AI
Manages DLI package resource within FlexibleEngine
Example Usage
Upload the specified python script as a resource package
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const groupName = config.requireObject("groupName");
const accessDomainName = config.requireObject("accessDomainName");
const queue = new flexibleengine.DliPackage("queue", {
groupName: groupName,
objectPath: `https://${accessDomainName}/dli/packages/object_file.py`,
type: "pyFile",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
group_name = config.require_object("groupName")
access_domain_name = config.require_object("accessDomainName")
queue = flexibleengine.DliPackage("queue",
group_name=group_name,
object_path=f"https://{access_domain_name}/dli/packages/object_file.py",
type="pyFile")
package main
import (
"fmt"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
groupName := cfg.RequireObject("groupName")
accessDomainName := cfg.RequireObject("accessDomainName")
_, err := flexibleengine.NewDliPackage(ctx, "queue", &flexibleengine.DliPackageArgs{
GroupName: pulumi.Any(groupName),
ObjectPath: pulumi.Sprintf("https://%v/dli/packages/object_file.py", accessDomainName),
Type: pulumi.String("pyFile"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var groupName = config.RequireObject<dynamic>("groupName");
var accessDomainName = config.RequireObject<dynamic>("accessDomainName");
var queue = new Flexibleengine.DliPackage("queue", new()
{
GroupName = groupName,
ObjectPath = $"https://{accessDomainName}/dli/packages/object_file.py",
Type = "pyFile",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.DliPackage;
import com.pulumi.flexibleengine.DliPackageArgs;
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) {
final var config = ctx.config();
final var groupName = config.get("groupName");
final var accessDomainName = config.get("accessDomainName");
var queue = new DliPackage("queue", DliPackageArgs.builder()
.groupName(groupName)
.objectPath(String.format("https://%s/dli/packages/object_file.py", accessDomainName))
.type("pyFile")
.build());
}
}
configuration:
groupName:
type: dynamic
accessDomainName:
type: dynamic
resources:
queue:
type: flexibleengine:DliPackage
properties:
groupName: ${groupName}
objectPath: https://${accessDomainName}/dli/packages/object_file.py
type: pyFile
Create DliPackage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DliPackage(name: string, args: DliPackageArgs, opts?: CustomResourceOptions);
@overload
def DliPackage(resource_name: str,
args: DliPackageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DliPackage(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_name: Optional[str] = None,
object_path: Optional[str] = None,
type: Optional[str] = None,
dli_package_id: Optional[str] = None,
is_async: Optional[bool] = None,
owner: Optional[str] = None,
region: Optional[str] = None)
func NewDliPackage(ctx *Context, name string, args DliPackageArgs, opts ...ResourceOption) (*DliPackage, error)
public DliPackage(string name, DliPackageArgs args, CustomResourceOptions? opts = null)
public DliPackage(String name, DliPackageArgs args)
public DliPackage(String name, DliPackageArgs args, CustomResourceOptions options)
type: flexibleengine:DliPackage
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 DliPackageArgs
- 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 DliPackageArgs
- 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 DliPackageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DliPackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DliPackageArgs
- 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 dliPackageResource = new Flexibleengine.DliPackage("dliPackageResource", new()
{
GroupName = "string",
ObjectPath = "string",
Type = "string",
DliPackageId = "string",
IsAsync = false,
Owner = "string",
Region = "string",
});
example, err := flexibleengine.NewDliPackage(ctx, "dliPackageResource", &flexibleengine.DliPackageArgs{
GroupName: pulumi.String("string"),
ObjectPath: pulumi.String("string"),
Type: pulumi.String("string"),
DliPackageId: pulumi.String("string"),
IsAsync: pulumi.Bool(false),
Owner: pulumi.String("string"),
Region: pulumi.String("string"),
})
var dliPackageResource = new DliPackage("dliPackageResource", DliPackageArgs.builder()
.groupName("string")
.objectPath("string")
.type("string")
.dliPackageId("string")
.isAsync(false)
.owner("string")
.region("string")
.build());
dli_package_resource = flexibleengine.DliPackage("dliPackageResource",
group_name="string",
object_path="string",
type="string",
dli_package_id="string",
is_async=False,
owner="string",
region="string")
const dliPackageResource = new flexibleengine.DliPackage("dliPackageResource", {
groupName: "string",
objectPath: "string",
type: "string",
dliPackageId: "string",
isAsync: false,
owner: "string",
region: "string",
});
type: flexibleengine:DliPackage
properties:
dliPackageId: string
groupName: string
isAsync: false
objectPath: string
owner: string
region: string
type: string
DliPackage 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 DliPackage resource accepts the following input properties:
- Group
Name string - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- Object
Path string - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - Type string
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- Dli
Package stringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - Is
Async bool - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- Owner string
- Specifies the name of the package owner. The owner must be IAM user.
- Region string
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- Group
Name string - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- Object
Path string - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - Type string
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- Dli
Package stringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - Is
Async bool - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- Owner string
- Specifies the name of the package owner. The owner must be IAM user.
- Region string
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- group
Name String - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- object
Path String - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - type String
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- dli
Package StringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - is
Async Boolean - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- owner String
- Specifies the name of the package owner. The owner must be IAM user.
- region String
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- group
Name string - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- object
Path string - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - type string
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- dli
Package stringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - is
Async boolean - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- owner string
- Specifies the name of the package owner. The owner must be IAM user.
- region string
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- group_
name str - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- object_
path str - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - type str
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- dli_
package_ strid - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - is_
async bool - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- owner str
- Specifies the name of the package owner. The owner must be IAM user.
- region str
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- group
Name String - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- object
Path String - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - type String
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- dli
Package StringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - is
Async Boolean - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- owner String
- Specifies the name of the package owner. The owner must be IAM user.
- region String
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
Outputs
All input properties are implicitly available as output properties. Additionally, the DliPackage resource produces the following output properties:
- Created
At string - Time when a queue is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Object
Name string - The package name.
- Status string
- Status of a package group to be uploaded.
- Updated
At string - The last time when the package configuration update has complated.
- Created
At string - Time when a queue is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Object
Name string - The package name.
- Status string
- Status of a package group to be uploaded.
- Updated
At string - The last time when the package configuration update has complated.
- created
At String - Time when a queue is created.
- id String
- The provider-assigned unique ID for this managed resource.
- object
Name String - The package name.
- status String
- Status of a package group to be uploaded.
- updated
At String - The last time when the package configuration update has complated.
- created
At string - Time when a queue is created.
- id string
- The provider-assigned unique ID for this managed resource.
- object
Name string - The package name.
- status string
- Status of a package group to be uploaded.
- updated
At string - The last time when the package configuration update has complated.
- created_
at str - Time when a queue is created.
- id str
- The provider-assigned unique ID for this managed resource.
- object_
name str - The package name.
- status str
- Status of a package group to be uploaded.
- updated_
at str - The last time when the package configuration update has complated.
- created
At String - Time when a queue is created.
- id String
- The provider-assigned unique ID for this managed resource.
- object
Name String - The package name.
- status String
- Status of a package group to be uploaded.
- updated
At String - The last time when the package configuration update has complated.
Look up Existing DliPackage Resource
Get an existing DliPackage 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?: DliPackageState, opts?: CustomResourceOptions): DliPackage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
dli_package_id: Optional[str] = None,
group_name: Optional[str] = None,
is_async: Optional[bool] = None,
object_name: Optional[str] = None,
object_path: Optional[str] = None,
owner: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> DliPackage
func GetDliPackage(ctx *Context, name string, id IDInput, state *DliPackageState, opts ...ResourceOption) (*DliPackage, error)
public static DliPackage Get(string name, Input<string> id, DliPackageState? state, CustomResourceOptions? opts = null)
public static DliPackage get(String name, Output<String> id, DliPackageState state, CustomResourceOptions options)
resources: _: type: flexibleengine:DliPackage get: id: ${id}
- 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.
- Created
At string - Time when a queue is created.
- Dli
Package stringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - Group
Name string - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- Is
Async bool - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- Object
Name string - The package name.
- Object
Path string - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - Owner string
- Specifies the name of the package owner. The owner must be IAM user.
- Region string
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- Status string
- Status of a package group to be uploaded.
- Type string
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- Updated
At string - The last time when the package configuration update has complated.
- Created
At string - Time when a queue is created.
- Dli
Package stringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - Group
Name string - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- Is
Async bool - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- Object
Name string - The package name.
- Object
Path string - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - Owner string
- Specifies the name of the package owner. The owner must be IAM user.
- Region string
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- Status string
- Status of a package group to be uploaded.
- Type string
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- Updated
At string - The last time when the package configuration update has complated.
- created
At String - Time when a queue is created.
- dli
Package StringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - group
Name String - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- is
Async Boolean - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- object
Name String - The package name.
- object
Path String - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - owner String
- Specifies the name of the package owner. The owner must be IAM user.
- region String
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- status String
- Status of a package group to be uploaded.
- type String
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- updated
At String - The last time when the package configuration update has complated.
- created
At string - Time when a queue is created.
- dli
Package stringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - group
Name string - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- is
Async boolean - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- object
Name string - The package name.
- object
Path string - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - owner string
- Specifies the name of the package owner. The owner must be IAM user.
- region string
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- status string
- Status of a package group to be uploaded.
- type string
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- updated
At string - The last time when the package configuration update has complated.
- created_
at str - Time when a queue is created.
- dli_
package_ strid - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - group_
name str - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- is_
async bool - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- object_
name str - The package name.
- object_
path str - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - owner str
- Specifies the name of the package owner. The owner must be IAM user.
- region str
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- status str
- Status of a package group to be uploaded.
- type str
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- updated_
at str - The last time when the package configuration update has complated.
- created
At String - Time when a queue is created.
- dli
Package StringId - Resource ID. The ID is constructed from the
group_name
andobject_name
, separated by slash. - group
Name String - Specifies the group name which the package belongs to. Changing this parameter will delete the current package and upload a new package.
- is
Async Boolean - Specifies whether to upload resource packages in asynchronous mode. The default value is false. Changing this parameter will delete the current package and upload a new package.
- object
Name String - The package name.
- object
Path String - Specifies the OBS storage path where the package is located.
For example,
https://{bucket_name}.oss.{region}.prod-cloud-ocb.orange-business.com/dli/packages/object_file.py
. Changing this parameter will delete the current package and upload a new package. - owner String
- Specifies the name of the package owner. The owner must be IAM user.
- region String
- Specifies the region in which to upload packages. If omitted, the provider-level region will be used. Changing this parameter will delete the current package and upload a new package.
- status String
- Status of a package group to be uploaded.
- type String
Specifies the package type.
- jar:
.jar
or jar related files. - pyFile:
.py
or python related files. - file: Other user files.
Changing this parameter will delete the current package and upload a new package.
- jar:
- updated
At String - The last time when the package configuration update has complated.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.