Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.brain.getIndustrialPidProjects
Explore with Pulumi AI
This data source provides the Brain Industrial Pid Projects of the current Alibaba Cloud user.
NOTE: Available since v1.113.0.
DEPRECATED: This data source has been deprecated from version
1.229.1
.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.brain.getIndustrialPidProjects({
ids: ["3e74e684-cbb5-xxxx"],
nameRegex: "tf-testAcc",
});
export const firstBrainIndustrialPidProjectId = example.then(example => example.projects?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.brain.get_industrial_pid_projects(ids=["3e74e684-cbb5-xxxx"],
name_regex="tf-testAcc")
pulumi.export("firstBrainIndustrialPidProjectId", example.projects[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/brain"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := brain.GetIndustrialPidProjects(ctx, &brain.GetIndustrialPidProjectsArgs{
Ids: []string{
"3e74e684-cbb5-xxxx",
},
NameRegex: pulumi.StringRef("tf-testAcc"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstBrainIndustrialPidProjectId", example.Projects[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Brain.GetIndustrialPidProjects.Invoke(new()
{
Ids = new[]
{
"3e74e684-cbb5-xxxx",
},
NameRegex = "tf-testAcc",
});
return new Dictionary<string, object?>
{
["firstBrainIndustrialPidProjectId"] = example.Apply(getIndustrialPidProjectsResult => getIndustrialPidProjectsResult.Projects[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.brain.BrainFunctions;
import com.pulumi.alicloud.brain.inputs.GetIndustrialPidProjectsArgs;
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 example = BrainFunctions.getIndustrialPidProjects(GetIndustrialPidProjectsArgs.builder()
.ids("3e74e684-cbb5-xxxx")
.nameRegex("tf-testAcc")
.build());
ctx.export("firstBrainIndustrialPidProjectId", example.applyValue(getIndustrialPidProjectsResult -> getIndustrialPidProjectsResult.projects()[0].id()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:brain:getIndustrialPidProjects
Arguments:
ids:
- 3e74e684-cbb5-xxxx
nameRegex: tf-testAcc
outputs:
firstBrainIndustrialPidProjectId: ${example.projects[0].id}
Using getIndustrialPidProjects
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIndustrialPidProjects(args: GetIndustrialPidProjectsArgs, opts?: InvokeOptions): Promise<GetIndustrialPidProjectsResult>
function getIndustrialPidProjectsOutput(args: GetIndustrialPidProjectsOutputArgs, opts?: InvokeOptions): Output<GetIndustrialPidProjectsResult>
def get_industrial_pid_projects(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
pid_organization_id: Optional[str] = None,
pid_project_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIndustrialPidProjectsResult
def get_industrial_pid_projects_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
pid_organization_id: Optional[pulumi.Input[str]] = None,
pid_project_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIndustrialPidProjectsResult]
func GetIndustrialPidProjects(ctx *Context, args *GetIndustrialPidProjectsArgs, opts ...InvokeOption) (*GetIndustrialPidProjectsResult, error)
func GetIndustrialPidProjectsOutput(ctx *Context, args *GetIndustrialPidProjectsOutputArgs, opts ...InvokeOption) GetIndustrialPidProjectsResultOutput
> Note: This function is named GetIndustrialPidProjects
in the Go SDK.
public static class GetIndustrialPidProjects
{
public static Task<GetIndustrialPidProjectsResult> InvokeAsync(GetIndustrialPidProjectsArgs args, InvokeOptions? opts = null)
public static Output<GetIndustrialPidProjectsResult> Invoke(GetIndustrialPidProjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIndustrialPidProjectsResult> getIndustrialPidProjects(GetIndustrialPidProjectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Pid Project IDs.
- Name
Regex string - A regex string to filter results by Pid Project name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Pid
Organization stringId - The ID of Pid Organization.
- Pid
Project stringName - The name of Pid Project.
- Ids []string
- A list of Pid Project IDs.
- Name
Regex string - A regex string to filter results by Pid Project name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Pid
Organization stringId - The ID of Pid Organization.
- Pid
Project stringName - The name of Pid Project.
- ids List<String>
- A list of Pid Project IDs.
- name
Regex String - A regex string to filter results by Pid Project name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - pid
Organization StringId - The ID of Pid Organization.
- pid
Project StringName - The name of Pid Project.
- ids string[]
- A list of Pid Project IDs.
- name
Regex string - A regex string to filter results by Pid Project name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - pid
Organization stringId - The ID of Pid Organization.
- pid
Project stringName - The name of Pid Project.
- ids Sequence[str]
- A list of Pid Project IDs.
- name_
regex str - A regex string to filter results by Pid Project name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - pid_
organization_ strid - The ID of Pid Organization.
- pid_
project_ strname - The name of Pid Project.
- ids List<String>
- A list of Pid Project IDs.
- name
Regex String - A regex string to filter results by Pid Project name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - pid
Organization StringId - The ID of Pid Organization.
- pid
Project StringName - The name of Pid Project.
getIndustrialPidProjects Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Pid Project names.
- Projects
List<Pulumi.
Ali Cloud. Brain. Outputs. Get Industrial Pid Projects Project> - A list of Brain Industrial Pid Projects. Each element contains the following attributes:
- Name
Regex string - Output
File string - Pid
Organization stringId - The ID of Pid Organization.
- Pid
Project stringName - The name of Pid Project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Pid Project names.
- Projects
[]Get
Industrial Pid Projects Project - A list of Brain Industrial Pid Projects. Each element contains the following attributes:
- Name
Regex string - Output
File string - Pid
Organization stringId - The ID of Pid Organization.
- Pid
Project stringName - The name of Pid Project.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Pid Project names.
- projects
List<Get
Industrial Pid Projects Project> - A list of Brain Industrial Pid Projects. Each element contains the following attributes:
- name
Regex String - output
File String - pid
Organization StringId - The ID of Pid Organization.
- pid
Project StringName - The name of Pid Project.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Pid Project names.
- projects
Get
Industrial Pid Projects Project[] - A list of Brain Industrial Pid Projects. Each element contains the following attributes:
- name
Regex string - output
File string - pid
Organization stringId - The ID of Pid Organization.
- pid
Project stringName - The name of Pid Project.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Pid Project names.
- projects
Sequence[Get
Industrial Pid Projects Project] - A list of Brain Industrial Pid Projects. Each element contains the following attributes:
- name_
regex str - output_
file str - pid_
organization_ strid - The ID of Pid Organization.
- pid_
project_ strname - The name of Pid Project.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Pid Project names.
- projects List<Property Map>
- A list of Brain Industrial Pid Projects. Each element contains the following attributes:
- name
Regex String - output
File String - pid
Organization StringId - The ID of Pid Organization.
- pid
Project StringName - The name of Pid Project.
Supporting Types
GetIndustrialPidProjectsProject
- Id string
- The ID of the Pid Project.
- Pid
Organization stringId - The ID of Pid Organization.
- Pid
Project stringDesc - The description of Pid Project.
- Pid
Project stringId - The ID of Pid Project.
- Pid
Project stringName - The name of Pid Project.
- Id string
- The ID of the Pid Project.
- Pid
Organization stringId - The ID of Pid Organization.
- Pid
Project stringDesc - The description of Pid Project.
- Pid
Project stringId - The ID of Pid Project.
- Pid
Project stringName - The name of Pid Project.
- id String
- The ID of the Pid Project.
- pid
Organization StringId - The ID of Pid Organization.
- pid
Project StringDesc - The description of Pid Project.
- pid
Project StringId - The ID of Pid Project.
- pid
Project StringName - The name of Pid Project.
- id string
- The ID of the Pid Project.
- pid
Organization stringId - The ID of Pid Organization.
- pid
Project stringDesc - The description of Pid Project.
- pid
Project stringId - The ID of Pid Project.
- pid
Project stringName - The name of Pid Project.
- id str
- The ID of the Pid Project.
- pid_
organization_ strid - The ID of Pid Organization.
- pid_
project_ strdesc - The description of Pid Project.
- pid_
project_ strid - The ID of Pid Project.
- pid_
project_ strname - The name of Pid Project.
- id String
- The ID of the Pid Project.
- pid
Organization StringId - The ID of Pid Organization.
- pid
Project StringDesc - The description of Pid Project.
- pid
Project StringId - The ID of Pid Project.
- pid
Project StringName - The name of Pid Project.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.