The resource deployment_access represents a connection between an accessor (User, Service Account or Team) with a Deployment. This resource specifies an actor’s access level to a specific Deployment in the Account. For more information, see object access control lists.
This feature is available in the following product plan(s): Pro, Enterprise.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prefect from "@pulumi/prefect";
// All Deployments are scoped to a Workspace.
const test = prefect.getWorkspace({
handle: "my-workspace",
});
// Be sure to grant all Actors/Teams who need Deployment access to first be
// invited to the Workspace (with a role).
const developer = prefect.getWorkspaceRole({
name: "Developer",
});
// Example: invite a Service Account to the Workspace and grant it Developer access
const testServiceAccount = new prefect.ServiceAccount("test", {name: "my-service-account"});
const testWorkspaceAccess = new prefect.WorkspaceAccess("test", {
accessorType: "SERVICE_ACCOUNT",
accessorId: testServiceAccount.id,
workspaceRoleId: developer.then(developer => developer.id),
workspaceId: test.then(test => test.id),
});
// Example: invite a Team to the Workspace and grant it Developer access
const testGetTeam = prefect.getTeam({
name: "my-team",
});
const testTeam = new prefect.WorkspaceAccess("test_team", {
accessorType: "TEAM",
accessorId: testGetTeam.then(testGetTeam => testGetTeam.id),
workspaceRoleId: developer.then(developer => developer.id),
workspaceId: test.then(test => test.id),
});
// Define the Flow and Deployment, and grant access to the Deployment
const testFlow = new prefect.Flow("test", {
name: "my-flow",
workspaceId: test.then(test => test.id),
tags: ["test"],
});
const testDeployment = new prefect.Deployment("test", {
name: "my-deployment",
workspaceId: test.then(test => test.id),
flowId: testFlow.id,
});
const testDeploymentAccess = new prefect.DeploymentAccess("test", {
workspaceId: test.then(test => test.id),
deploymentId: testDeployment.id,
manageActorIds: [testServiceAccount.actorId],
runActorIds: [testServiceAccount.actorId],
viewActorIds: [testServiceAccount.actorId],
manageTeamIds: [testGetTeam.then(testGetTeam => testGetTeam.id)],
runTeamIds: [testGetTeam.then(testGetTeam => testGetTeam.id)],
viewTeamIds: [testGetTeam.then(testGetTeam => testGetTeam.id)],
});
import pulumi
import pulumi_prefect as prefect
# All Deployments are scoped to a Workspace.
test = prefect.get_workspace(handle="my-workspace")
# Be sure to grant all Actors/Teams who need Deployment access to first be
# invited to the Workspace (with a role).
developer = prefect.get_workspace_role(name="Developer")
# Example: invite a Service Account to the Workspace and grant it Developer access
test_service_account = prefect.ServiceAccount("test", name="my-service-account")
test_workspace_access = prefect.WorkspaceAccess("test",
accessor_type="SERVICE_ACCOUNT",
accessor_id=test_service_account.id,
workspace_role_id=developer.id,
workspace_id=test.id)
# Example: invite a Team to the Workspace and grant it Developer access
test_get_team = prefect.get_team(name="my-team")
test_team = prefect.WorkspaceAccess("test_team",
accessor_type="TEAM",
accessor_id=test_get_team.id,
workspace_role_id=developer.id,
workspace_id=test.id)
# Define the Flow and Deployment, and grant access to the Deployment
test_flow = prefect.Flow("test",
name="my-flow",
workspace_id=test.id,
tags=["test"])
test_deployment = prefect.Deployment("test",
name="my-deployment",
workspace_id=test.id,
flow_id=test_flow.id)
test_deployment_access = prefect.DeploymentAccess("test",
workspace_id=test.id,
deployment_id=test_deployment.id,
manage_actor_ids=[test_service_account.actor_id],
run_actor_ids=[test_service_account.actor_id],
view_actor_ids=[test_service_account.actor_id],
manage_team_ids=[test_get_team.id],
run_team_ids=[test_get_team.id],
view_team_ids=[test_get_team.id])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prefect/v2/prefect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// All Deployments are scoped to a Workspace.
test, err := prefect.LookupWorkspace(ctx, &prefect.LookupWorkspaceArgs{
Handle: pulumi.StringRef("my-workspace"),
}, nil)
if err != nil {
return err
}
// Be sure to grant all Actors/Teams who need Deployment access to first be
// invited to the Workspace (with a role).
developer, err := prefect.LookupWorkspaceRole(ctx, &prefect.LookupWorkspaceRoleArgs{
Name: "Developer",
}, nil)
if err != nil {
return err
}
// Example: invite a Service Account to the Workspace and grant it Developer access
testServiceAccount, err := prefect.NewServiceAccount(ctx, "test", &prefect.ServiceAccountArgs{
Name: pulumi.String("my-service-account"),
})
if err != nil {
return err
}
_, err = prefect.NewWorkspaceAccess(ctx, "test", &prefect.WorkspaceAccessArgs{
AccessorType: pulumi.String("SERVICE_ACCOUNT"),
AccessorId: testServiceAccount.ID(),
WorkspaceRoleId: pulumi.String(developer.Id),
WorkspaceId: pulumi.String(test.Id),
})
if err != nil {
return err
}
// Example: invite a Team to the Workspace and grant it Developer access
testGetTeam, err := prefect.LookupTeam(ctx, &prefect.LookupTeamArgs{
Name: pulumi.StringRef("my-team"),
}, nil)
if err != nil {
return err
}
_, err = prefect.NewWorkspaceAccess(ctx, "test_team", &prefect.WorkspaceAccessArgs{
AccessorType: pulumi.String("TEAM"),
AccessorId: pulumi.String(testGetTeam.Id),
WorkspaceRoleId: pulumi.String(developer.Id),
WorkspaceId: pulumi.String(test.Id),
})
if err != nil {
return err
}
// Define the Flow and Deployment, and grant access to the Deployment
testFlow, err := prefect.NewFlow(ctx, "test", &prefect.FlowArgs{
Name: pulumi.String("my-flow"),
WorkspaceId: pulumi.String(test.Id),
Tags: pulumi.StringArray{
pulumi.String("test"),
},
})
if err != nil {
return err
}
testDeployment, err := prefect.NewDeployment(ctx, "test", &prefect.DeploymentArgs{
Name: pulumi.String("my-deployment"),
WorkspaceId: pulumi.String(test.Id),
FlowId: testFlow.ID(),
})
if err != nil {
return err
}
_, err = prefect.NewDeploymentAccess(ctx, "test", &prefect.DeploymentAccessArgs{
WorkspaceId: pulumi.String(test.Id),
DeploymentId: testDeployment.ID(),
ManageActorIds: pulumi.StringArray{
testServiceAccount.ActorId,
},
RunActorIds: pulumi.StringArray{
testServiceAccount.ActorId,
},
ViewActorIds: pulumi.StringArray{
testServiceAccount.ActorId,
},
ManageTeamIds: pulumi.StringArray{
pulumi.String(testGetTeam.Id),
},
RunTeamIds: pulumi.StringArray{
pulumi.String(testGetTeam.Id),
},
ViewTeamIds: pulumi.StringArray{
pulumi.String(testGetTeam.Id),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prefect = Pulumi.Prefect;
return await Deployment.RunAsync(() =>
{
// All Deployments are scoped to a Workspace.
var test = Prefect.GetWorkspace.Invoke(new()
{
Handle = "my-workspace",
});
// Be sure to grant all Actors/Teams who need Deployment access to first be
// invited to the Workspace (with a role).
var developer = Prefect.GetWorkspaceRole.Invoke(new()
{
Name = "Developer",
});
// Example: invite a Service Account to the Workspace and grant it Developer access
var testServiceAccount = new Prefect.ServiceAccount("test", new()
{
Name = "my-service-account",
});
var testWorkspaceAccess = new Prefect.WorkspaceAccess("test", new()
{
AccessorType = "SERVICE_ACCOUNT",
AccessorId = testServiceAccount.Id,
WorkspaceRoleId = developer.Apply(getWorkspaceRoleResult => getWorkspaceRoleResult.Id),
WorkspaceId = test.Apply(getWorkspaceResult => getWorkspaceResult.Id),
});
// Example: invite a Team to the Workspace and grant it Developer access
var testGetTeam = Prefect.GetTeam.Invoke(new()
{
Name = "my-team",
});
var testTeam = new Prefect.WorkspaceAccess("test_team", new()
{
AccessorType = "TEAM",
AccessorId = testGetTeam.Apply(getTeamResult => getTeamResult.Id),
WorkspaceRoleId = developer.Apply(getWorkspaceRoleResult => getWorkspaceRoleResult.Id),
WorkspaceId = test.Apply(getWorkspaceResult => getWorkspaceResult.Id),
});
// Define the Flow and Deployment, and grant access to the Deployment
var testFlow = new Prefect.Flow("test", new()
{
Name = "my-flow",
WorkspaceId = test.Apply(getWorkspaceResult => getWorkspaceResult.Id),
Tags = new[]
{
"test",
},
});
var testDeployment = new Prefect.Deployment("test", new()
{
Name = "my-deployment",
WorkspaceId = test.Apply(getWorkspaceResult => getWorkspaceResult.Id),
FlowId = testFlow.Id,
});
var testDeploymentAccess = new Prefect.DeploymentAccess("test", new()
{
WorkspaceId = test.Apply(getWorkspaceResult => getWorkspaceResult.Id),
DeploymentId = testDeployment.Id,
ManageActorIds = new[]
{
testServiceAccount.ActorId,
},
RunActorIds = new[]
{
testServiceAccount.ActorId,
},
ViewActorIds = new[]
{
testServiceAccount.ActorId,
},
ManageTeamIds = new[]
{
testGetTeam.Apply(getTeamResult => getTeamResult.Id),
},
RunTeamIds = new[]
{
testGetTeam.Apply(getTeamResult => getTeamResult.Id),
},
ViewTeamIds = new[]
{
testGetTeam.Apply(getTeamResult => getTeamResult.Id),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prefect.PrefectFunctions;
import com.pulumi.prefect.inputs.GetWorkspaceArgs;
import com.pulumi.prefect.inputs.GetWorkspaceRoleArgs;
import com.pulumi.prefect.ServiceAccount;
import com.pulumi.prefect.ServiceAccountArgs;
import com.pulumi.prefect.WorkspaceAccess;
import com.pulumi.prefect.WorkspaceAccessArgs;
import com.pulumi.prefect.inputs.GetTeamArgs;
import com.pulumi.prefect.Flow;
import com.pulumi.prefect.FlowArgs;
import com.pulumi.prefect.Deployment;
import com.pulumi.prefect.DeploymentArgs;
import com.pulumi.prefect.DeploymentAccess;
import com.pulumi.prefect.DeploymentAccessArgs;
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) {
// All Deployments are scoped to a Workspace.
final var test = PrefectFunctions.getWorkspace(GetWorkspaceArgs.builder()
.handle("my-workspace")
.build());
// Be sure to grant all Actors/Teams who need Deployment access to first be
// invited to the Workspace (with a role).
final var developer = PrefectFunctions.getWorkspaceRole(GetWorkspaceRoleArgs.builder()
.name("Developer")
.build());
// Example: invite a Service Account to the Workspace and grant it Developer access
var testServiceAccount = new ServiceAccount("testServiceAccount", ServiceAccountArgs.builder()
.name("my-service-account")
.build());
var testWorkspaceAccess = new WorkspaceAccess("testWorkspaceAccess", WorkspaceAccessArgs.builder()
.accessorType("SERVICE_ACCOUNT")
.accessorId(testServiceAccount.id())
.workspaceRoleId(developer.id())
.workspaceId(test.id())
.build());
// Example: invite a Team to the Workspace and grant it Developer access
final var testGetTeam = PrefectFunctions.getTeam(GetTeamArgs.builder()
.name("my-team")
.build());
var testTeam = new WorkspaceAccess("testTeam", WorkspaceAccessArgs.builder()
.accessorType("TEAM")
.accessorId(testGetTeam.id())
.workspaceRoleId(developer.id())
.workspaceId(test.id())
.build());
// Define the Flow and Deployment, and grant access to the Deployment
var testFlow = new Flow("testFlow", FlowArgs.builder()
.name("my-flow")
.workspaceId(test.id())
.tags("test")
.build());
var testDeployment = new Deployment("testDeployment", DeploymentArgs.builder()
.name("my-deployment")
.workspaceId(test.id())
.flowId(testFlow.id())
.build());
var testDeploymentAccess = new DeploymentAccess("testDeploymentAccess", DeploymentAccessArgs.builder()
.workspaceId(test.id())
.deploymentId(testDeployment.id())
.manageActorIds(testServiceAccount.actorId())
.runActorIds(testServiceAccount.actorId())
.viewActorIds(testServiceAccount.actorId())
.manageTeamIds(testGetTeam.id())
.runTeamIds(testGetTeam.id())
.viewTeamIds(testGetTeam.id())
.build());
}
}
resources:
# Example: invite a Service Account to the Workspace and grant it Developer access
testServiceAccount:
type: prefect:ServiceAccount
name: test
properties:
name: my-service-account
testWorkspaceAccess:
type: prefect:WorkspaceAccess
name: test
properties:
accessorType: SERVICE_ACCOUNT
accessorId: ${testServiceAccount.id}
workspaceRoleId: ${developer.id}
workspaceId: ${test.id}
testTeam:
type: prefect:WorkspaceAccess
name: test_team
properties:
accessorType: TEAM
accessorId: ${testGetTeam.id}
workspaceRoleId: ${developer.id}
workspaceId: ${test.id}
# Define the Flow and Deployment, and grant access to the Deployment
testFlow:
type: prefect:Flow
name: test
properties:
name: my-flow
workspaceId: ${test.id}
tags:
- test
testDeployment:
type: prefect:Deployment
name: test
properties:
name: my-deployment
workspaceId: ${test.id}
flowId: ${testFlow.id}
testDeploymentAccess:
type: prefect:DeploymentAccess
name: test
properties:
workspaceId: ${test.id}
deploymentId: ${testDeployment.id}
manageActorIds:
- ${testServiceAccount.actorId}
runActorIds:
- ${testServiceAccount.actorId}
viewActorIds:
- ${testServiceAccount.actorId}
manageTeamIds:
- ${testGetTeam.id}
runTeamIds:
- ${testGetTeam.id}
viewTeamIds:
- ${testGetTeam.id}
variables:
# All Deployments are scoped to a Workspace.
test:
fn::invoke:
function: prefect:getWorkspace
arguments:
handle: my-workspace
# Be sure to grant all Actors/Teams who need Deployment access to first be
# invited to the Workspace (with a role).
developer:
fn::invoke:
function: prefect:getWorkspaceRole
arguments:
name: Developer
# Example: invite a Team to the Workspace and grant it Developer access
testGetTeam:
fn::invoke:
function: prefect:getTeam
arguments:
name: my-team
Create DeploymentAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeploymentAccess(name: string, args: DeploymentAccessArgs, opts?: CustomResourceOptions);@overload
def DeploymentAccess(resource_name: str,
args: DeploymentAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DeploymentAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
deployment_id: Optional[str] = None,
account_id: Optional[str] = None,
manage_actor_ids: Optional[Sequence[str]] = None,
manage_team_ids: Optional[Sequence[str]] = None,
run_actor_ids: Optional[Sequence[str]] = None,
run_team_ids: Optional[Sequence[str]] = None,
view_actor_ids: Optional[Sequence[str]] = None,
view_team_ids: Optional[Sequence[str]] = None,
workspace_id: Optional[str] = None)func NewDeploymentAccess(ctx *Context, name string, args DeploymentAccessArgs, opts ...ResourceOption) (*DeploymentAccess, error)public DeploymentAccess(string name, DeploymentAccessArgs args, CustomResourceOptions? opts = null)
public DeploymentAccess(String name, DeploymentAccessArgs args)
public DeploymentAccess(String name, DeploymentAccessArgs args, CustomResourceOptions options)
type: prefect:DeploymentAccess
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 DeploymentAccessArgs
- 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 DeploymentAccessArgs
- 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 DeploymentAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeploymentAccessArgs
- 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 deploymentAccessResource = new Prefect.DeploymentAccess("deploymentAccessResource", new()
{
DeploymentId = "string",
AccountId = "string",
ManageActorIds = new[]
{
"string",
},
ManageTeamIds = new[]
{
"string",
},
RunActorIds = new[]
{
"string",
},
RunTeamIds = new[]
{
"string",
},
ViewActorIds = new[]
{
"string",
},
ViewTeamIds = new[]
{
"string",
},
WorkspaceId = "string",
});
example, err := prefect.NewDeploymentAccess(ctx, "deploymentAccessResource", &prefect.DeploymentAccessArgs{
DeploymentId: pulumi.String("string"),
AccountId: pulumi.String("string"),
ManageActorIds: pulumi.StringArray{
pulumi.String("string"),
},
ManageTeamIds: pulumi.StringArray{
pulumi.String("string"),
},
RunActorIds: pulumi.StringArray{
pulumi.String("string"),
},
RunTeamIds: pulumi.StringArray{
pulumi.String("string"),
},
ViewActorIds: pulumi.StringArray{
pulumi.String("string"),
},
ViewTeamIds: pulumi.StringArray{
pulumi.String("string"),
},
WorkspaceId: pulumi.String("string"),
})
var deploymentAccessResource = new DeploymentAccess("deploymentAccessResource", DeploymentAccessArgs.builder()
.deploymentId("string")
.accountId("string")
.manageActorIds("string")
.manageTeamIds("string")
.runActorIds("string")
.runTeamIds("string")
.viewActorIds("string")
.viewTeamIds("string")
.workspaceId("string")
.build());
deployment_access_resource = prefect.DeploymentAccess("deploymentAccessResource",
deployment_id="string",
account_id="string",
manage_actor_ids=["string"],
manage_team_ids=["string"],
run_actor_ids=["string"],
run_team_ids=["string"],
view_actor_ids=["string"],
view_team_ids=["string"],
workspace_id="string")
const deploymentAccessResource = new prefect.DeploymentAccess("deploymentAccessResource", {
deploymentId: "string",
accountId: "string",
manageActorIds: ["string"],
manageTeamIds: ["string"],
runActorIds: ["string"],
runTeamIds: ["string"],
viewActorIds: ["string"],
viewTeamIds: ["string"],
workspaceId: "string",
});
type: prefect:DeploymentAccess
properties:
accountId: string
deploymentId: string
manageActorIds:
- string
manageTeamIds:
- string
runActorIds:
- string
runTeamIds:
- string
viewActorIds:
- string
viewTeamIds:
- string
workspaceId: string
DeploymentAccess 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 DeploymentAccess resource accepts the following input properties:
- Deployment
Id string - Deployment ID (UUID)
- Account
Id string - Account ID (UUID)
- Manage
Actor List<string>Ids - List of actor IDs with manage access to the Deployment
- Manage
Team List<string>Ids - List of team IDs with manage access to the Deployment
- Run
Actor List<string>Ids - List of actor IDs with run access to the Deployment
- Run
Team List<string>Ids - List of team IDs with run access to the Deployment
- View
Actor List<string>Ids - List of actor IDs with view access to the Deployment
- View
Team List<string>Ids - List of team IDs with view access to the Deployment
- Workspace
Id string - Workspace ID (UUID)
- Deployment
Id string - Deployment ID (UUID)
- Account
Id string - Account ID (UUID)
- Manage
Actor []stringIds - List of actor IDs with manage access to the Deployment
- Manage
Team []stringIds - List of team IDs with manage access to the Deployment
- Run
Actor []stringIds - List of actor IDs with run access to the Deployment
- Run
Team []stringIds - List of team IDs with run access to the Deployment
- View
Actor []stringIds - List of actor IDs with view access to the Deployment
- View
Team []stringIds - List of team IDs with view access to the Deployment
- Workspace
Id string - Workspace ID (UUID)
- deployment
Id String - Deployment ID (UUID)
- account
Id String - Account ID (UUID)
- manage
Actor List<String>Ids - List of actor IDs with manage access to the Deployment
- manage
Team List<String>Ids - List of team IDs with manage access to the Deployment
- run
Actor List<String>Ids - List of actor IDs with run access to the Deployment
- run
Team List<String>Ids - List of team IDs with run access to the Deployment
- view
Actor List<String>Ids - List of actor IDs with view access to the Deployment
- view
Team List<String>Ids - List of team IDs with view access to the Deployment
- workspace
Id String - Workspace ID (UUID)
- deployment
Id string - Deployment ID (UUID)
- account
Id string - Account ID (UUID)
- manage
Actor string[]Ids - List of actor IDs with manage access to the Deployment
- manage
Team string[]Ids - List of team IDs with manage access to the Deployment
- run
Actor string[]Ids - List of actor IDs with run access to the Deployment
- run
Team string[]Ids - List of team IDs with run access to the Deployment
- view
Actor string[]Ids - List of actor IDs with view access to the Deployment
- view
Team string[]Ids - List of team IDs with view access to the Deployment
- workspace
Id string - Workspace ID (UUID)
- deployment_
id str - Deployment ID (UUID)
- account_
id str - Account ID (UUID)
- manage_
actor_ Sequence[str]ids - List of actor IDs with manage access to the Deployment
- manage_
team_ Sequence[str]ids - List of team IDs with manage access to the Deployment
- run_
actor_ Sequence[str]ids - List of actor IDs with run access to the Deployment
- run_
team_ Sequence[str]ids - List of team IDs with run access to the Deployment
- view_
actor_ Sequence[str]ids - List of actor IDs with view access to the Deployment
- view_
team_ Sequence[str]ids - List of team IDs with view access to the Deployment
- workspace_
id str - Workspace ID (UUID)
- deployment
Id String - Deployment ID (UUID)
- account
Id String - Account ID (UUID)
- manage
Actor List<String>Ids - List of actor IDs with manage access to the Deployment
- manage
Team List<String>Ids - List of team IDs with manage access to the Deployment
- run
Actor List<String>Ids - List of actor IDs with run access to the Deployment
- run
Team List<String>Ids - List of team IDs with run access to the Deployment
- view
Actor List<String>Ids - List of actor IDs with view access to the Deployment
- view
Team List<String>Ids - List of team IDs with view access to the Deployment
- workspace
Id String - Workspace ID (UUID)
Outputs
All input properties are implicitly available as output properties. Additionally, the DeploymentAccess resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DeploymentAccess Resource
Get an existing DeploymentAccess 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?: DeploymentAccessState, opts?: CustomResourceOptions): DeploymentAccess@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
deployment_id: Optional[str] = None,
manage_actor_ids: Optional[Sequence[str]] = None,
manage_team_ids: Optional[Sequence[str]] = None,
run_actor_ids: Optional[Sequence[str]] = None,
run_team_ids: Optional[Sequence[str]] = None,
view_actor_ids: Optional[Sequence[str]] = None,
view_team_ids: Optional[Sequence[str]] = None,
workspace_id: Optional[str] = None) -> DeploymentAccessfunc GetDeploymentAccess(ctx *Context, name string, id IDInput, state *DeploymentAccessState, opts ...ResourceOption) (*DeploymentAccess, error)public static DeploymentAccess Get(string name, Input<string> id, DeploymentAccessState? state, CustomResourceOptions? opts = null)public static DeploymentAccess get(String name, Output<String> id, DeploymentAccessState state, CustomResourceOptions options)resources: _: type: prefect:DeploymentAccess 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.
- Account
Id string - Account ID (UUID)
- Deployment
Id string - Deployment ID (UUID)
- Manage
Actor List<string>Ids - List of actor IDs with manage access to the Deployment
- Manage
Team List<string>Ids - List of team IDs with manage access to the Deployment
- Run
Actor List<string>Ids - List of actor IDs with run access to the Deployment
- Run
Team List<string>Ids - List of team IDs with run access to the Deployment
- View
Actor List<string>Ids - List of actor IDs with view access to the Deployment
- View
Team List<string>Ids - List of team IDs with view access to the Deployment
- Workspace
Id string - Workspace ID (UUID)
- Account
Id string - Account ID (UUID)
- Deployment
Id string - Deployment ID (UUID)
- Manage
Actor []stringIds - List of actor IDs with manage access to the Deployment
- Manage
Team []stringIds - List of team IDs with manage access to the Deployment
- Run
Actor []stringIds - List of actor IDs with run access to the Deployment
- Run
Team []stringIds - List of team IDs with run access to the Deployment
- View
Actor []stringIds - List of actor IDs with view access to the Deployment
- View
Team []stringIds - List of team IDs with view access to the Deployment
- Workspace
Id string - Workspace ID (UUID)
- account
Id String - Account ID (UUID)
- deployment
Id String - Deployment ID (UUID)
- manage
Actor List<String>Ids - List of actor IDs with manage access to the Deployment
- manage
Team List<String>Ids - List of team IDs with manage access to the Deployment
- run
Actor List<String>Ids - List of actor IDs with run access to the Deployment
- run
Team List<String>Ids - List of team IDs with run access to the Deployment
- view
Actor List<String>Ids - List of actor IDs with view access to the Deployment
- view
Team List<String>Ids - List of team IDs with view access to the Deployment
- workspace
Id String - Workspace ID (UUID)
- account
Id string - Account ID (UUID)
- deployment
Id string - Deployment ID (UUID)
- manage
Actor string[]Ids - List of actor IDs with manage access to the Deployment
- manage
Team string[]Ids - List of team IDs with manage access to the Deployment
- run
Actor string[]Ids - List of actor IDs with run access to the Deployment
- run
Team string[]Ids - List of team IDs with run access to the Deployment
- view
Actor string[]Ids - List of actor IDs with view access to the Deployment
- view
Team string[]Ids - List of team IDs with view access to the Deployment
- workspace
Id string - Workspace ID (UUID)
- account_
id str - Account ID (UUID)
- deployment_
id str - Deployment ID (UUID)
- manage_
actor_ Sequence[str]ids - List of actor IDs with manage access to the Deployment
- manage_
team_ Sequence[str]ids - List of team IDs with manage access to the Deployment
- run_
actor_ Sequence[str]ids - List of actor IDs with run access to the Deployment
- run_
team_ Sequence[str]ids - List of team IDs with run access to the Deployment
- view_
actor_ Sequence[str]ids - List of actor IDs with view access to the Deployment
- view_
team_ Sequence[str]ids - List of team IDs with view access to the Deployment
- workspace_
id str - Workspace ID (UUID)
- account
Id String - Account ID (UUID)
- deployment
Id String - Deployment ID (UUID)
- manage
Actor List<String>Ids - List of actor IDs with manage access to the Deployment
- manage
Team List<String>Ids - List of team IDs with manage access to the Deployment
- run
Actor List<String>Ids - List of actor IDs with run access to the Deployment
- run
Team List<String>Ids - List of team IDs with run access to the Deployment
- view
Actor List<String>Ids - List of actor IDs with view access to the Deployment
- view
Team List<String>Ids - List of team IDs with view access to the Deployment
- workspace
Id String - Workspace ID (UUID)
Package Details
- Repository
- prefect prefecthq/terraform-provider-prefect
- License
- Notes
- This Pulumi package is based on the
prefectTerraform Provider.
