The resource team_access grants access to a team for a user or service account. For more information, see manage teams.
This feature is available in the following product plan(s): Enterprise.
Create TeamAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeamAccess(name: string, args: TeamAccessArgs, opts?: CustomResourceOptions);@overload
def TeamAccess(resource_name: str,
args: TeamAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeamAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
member_actor_id: Optional[str] = None,
member_id: Optional[str] = None,
member_type: Optional[str] = None,
team_id: Optional[str] = None,
account_id: Optional[str] = None)func NewTeamAccess(ctx *Context, name string, args TeamAccessArgs, opts ...ResourceOption) (*TeamAccess, error)public TeamAccess(string name, TeamAccessArgs args, CustomResourceOptions? opts = null)
public TeamAccess(String name, TeamAccessArgs args)
public TeamAccess(String name, TeamAccessArgs args, CustomResourceOptions options)
type: prefect:TeamAccess
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 TeamAccessArgs
- 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 TeamAccessArgs
- 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 TeamAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeamAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeamAccessArgs
- 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 teamAccessResource = new Prefect.TeamAccess("teamAccessResource", new()
{
MemberActorId = "string",
MemberId = "string",
MemberType = "string",
TeamId = "string",
AccountId = "string",
});
example, err := prefect.NewTeamAccess(ctx, "teamAccessResource", &prefect.TeamAccessArgs{
MemberActorId: pulumi.String("string"),
MemberId: pulumi.String("string"),
MemberType: pulumi.String("string"),
TeamId: pulumi.String("string"),
AccountId: pulumi.String("string"),
})
var teamAccessResource = new TeamAccess("teamAccessResource", TeamAccessArgs.builder()
.memberActorId("string")
.memberId("string")
.memberType("string")
.teamId("string")
.accountId("string")
.build());
team_access_resource = prefect.TeamAccess("teamAccessResource",
member_actor_id="string",
member_id="string",
member_type="string",
team_id="string",
account_id="string")
const teamAccessResource = new prefect.TeamAccess("teamAccessResource", {
memberActorId: "string",
memberId: "string",
memberType: "string",
teamId: "string",
accountId: "string",
});
type: prefect:TeamAccess
properties:
accountId: string
memberActorId: string
memberId: string
memberType: string
teamId: string
TeamAccess 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 TeamAccess resource accepts the following input properties:
- Member
Actor stringId - Member Actor ID (UUID)
- Member
Id string - Member ID (UUID)
- Member
Type string - Member Type (user | service_account)
- Team
Id string - Team ID (UUID)
- Account
Id string - Account ID (UUID)
- Member
Actor stringId - Member Actor ID (UUID)
- Member
Id string - Member ID (UUID)
- Member
Type string - Member Type (user | service_account)
- Team
Id string - Team ID (UUID)
- Account
Id string - Account ID (UUID)
- member
Actor StringId - Member Actor ID (UUID)
- member
Id String - Member ID (UUID)
- member
Type String - Member Type (user | service_account)
- team
Id String - Team ID (UUID)
- account
Id String - Account ID (UUID)
- member
Actor stringId - Member Actor ID (UUID)
- member
Id string - Member ID (UUID)
- member
Type string - Member Type (user | service_account)
- team
Id string - Team ID (UUID)
- account
Id string - Account ID (UUID)
- member_
actor_ strid - Member Actor ID (UUID)
- member_
id str - Member ID (UUID)
- member_
type str - Member Type (user | service_account)
- team_
id str - Team ID (UUID)
- account_
id str - Account ID (UUID)
- member
Actor StringId - Member Actor ID (UUID)
- member
Id String - Member ID (UUID)
- member
Type String - Member Type (user | service_account)
- team
Id String - Team ID (UUID)
- account
Id String - Account ID (UUID)
Outputs
All input properties are implicitly available as output properties. Additionally, the TeamAccess 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 TeamAccess Resource
Get an existing TeamAccess 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?: TeamAccessState, opts?: CustomResourceOptions): TeamAccess@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
member_actor_id: Optional[str] = None,
member_id: Optional[str] = None,
member_type: Optional[str] = None,
team_id: Optional[str] = None) -> TeamAccessfunc GetTeamAccess(ctx *Context, name string, id IDInput, state *TeamAccessState, opts ...ResourceOption) (*TeamAccess, error)public static TeamAccess Get(string name, Input<string> id, TeamAccessState? state, CustomResourceOptions? opts = null)public static TeamAccess get(String name, Output<String> id, TeamAccessState state, CustomResourceOptions options)resources: _: type: prefect:TeamAccess 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)
- Member
Actor stringId - Member Actor ID (UUID)
- Member
Id string - Member ID (UUID)
- Member
Type string - Member Type (user | service_account)
- Team
Id string - Team ID (UUID)
- Account
Id string - Account ID (UUID)
- Member
Actor stringId - Member Actor ID (UUID)
- Member
Id string - Member ID (UUID)
- Member
Type string - Member Type (user | service_account)
- Team
Id string - Team ID (UUID)
- account
Id String - Account ID (UUID)
- member
Actor StringId - Member Actor ID (UUID)
- member
Id String - Member ID (UUID)
- member
Type String - Member Type (user | service_account)
- team
Id String - Team ID (UUID)
- account
Id string - Account ID (UUID)
- member
Actor stringId - Member Actor ID (UUID)
- member
Id string - Member ID (UUID)
- member
Type string - Member Type (user | service_account)
- team
Id string - Team ID (UUID)
- account_
id str - Account ID (UUID)
- member_
actor_ strid - Member Actor ID (UUID)
- member_
id str - Member ID (UUID)
- member_
type str - Member Type (user | service_account)
- team_
id str - Team ID (UUID)
- account
Id String - Account ID (UUID)
- member
Actor StringId - Member Actor ID (UUID)
- member
Id String - Member ID (UUID)
- member
Type String - Member Type (user | service_account)
- team
Id String - Team ID (UUID)
Package Details
- Repository
- prefect prefecthq/terraform-provider-prefect
- License
- Notes
- This Pulumi package is based on the
prefectTerraform Provider.
