This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi
This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi
Adds items (such as access tokens, team memberships, or stack permissions) to an existing service account. Service accounts provide programmatic, non-human access to Pulumi Cloud resources and are scoped to an organization. Items define what the service account can access and what credentials it holds. Returns the updated service details.
Create Item Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Item(name: string, args: ItemArgs, opts?: CustomResourceOptions);@overload
def Item(resource_name: str,
args: ItemArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Item(resource_name: str,
opts: Optional[ResourceOptions] = None,
items: Optional[Sequence[Any]] = None,
org_name: Optional[str] = None,
owner_name: Optional[str] = None,
owner_type: Optional[str] = None,
service_name: Optional[str] = None)func NewItem(ctx *Context, name string, args ItemArgs, opts ...ResourceOption) (*Item, error)public Item(string name, ItemArgs args, CustomResourceOptions? opts = null)type: pulumiservice:api/services:Item
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_api_services_item" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ItemArgs
- 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 ItemArgs
- 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 ItemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ItemArgs
- 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 itemResource = new PulumiService.Api.Services.Item("itemResource", new()
{
Items = new[]
{
"any",
},
OrgName = "string",
OwnerName = "string",
OwnerType = "string",
ServiceName = "string",
});
example, err := services.NewItem(ctx, "itemResource", &services.ItemArgs{
Items: pulumi.Array{
pulumi.Any("any"),
},
OrgName: pulumi.String("string"),
OwnerName: pulumi.String("string"),
OwnerType: pulumi.String("string"),
ServiceName: pulumi.String("string"),
})
resource "pulumiservice_api_services_item" "itemResource" {
items = ["any"]
org_name = "string"
owner_name = "string"
owner_type = "string"
service_name = "string"
}
var itemResource = new Item("itemResource", ItemArgs.builder()
.items("any")
.orgName("string")
.ownerName("string")
.ownerType("string")
.serviceName("string")
.build());
item_resource = pulumiservice.api.services.Item("itemResource",
items=["any"],
org_name="string",
owner_name="string",
owner_type="string",
service_name="string")
const itemResource = new pulumiservice.api.services.Item("itemResource", {
items: ["any"],
orgName: "string",
ownerName: "string",
ownerType: "string",
serviceName: "string",
});
type: pulumiservice:api/services:Item
properties:
items:
- any
orgName: string
ownerName: string
ownerType: string
serviceName: string
Item 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 Item resource accepts the following input properties:
- Items List<object>
- List of items
- Org
Name string - The organization name
- Owner
Name string - The owner name
- Owner
Type string - The owner type
- Service
Name string - The service name
- Items []interface{}
- List of items
- Org
Name string - The organization name
- Owner
Name string - The owner name
- Owner
Type string - The owner type
- Service
Name string - The service name
- items list(any)
- List of items
- org_
name string - The organization name
- owner_
name string - The owner name
- owner_
type string - The owner type
- service_
name string - The service name
- items List<Object>
- List of items
- org
Name String - The organization name
- owner
Name String - The owner name
- owner
Type String - The owner type
- service
Name String - The service name
- items any[]
- List of items
- org
Name string - The organization name
- owner
Name string - The owner name
- owner
Type string - The owner type
- service
Name string - The service name
- items Sequence[Any]
- List of items
- org_
name str - The organization name
- owner_
name str - The owner name
- owner_
type str - The owner type
- service_
name str - The service name
- items List<Any>
- List of items
- org
Name String - The organization name
- owner
Name String - The owner name
- owner
Type String - The owner type
- service
Name String - The service name
Outputs
All input properties are implicitly available as output properties. Additionally, the Item resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service object
- The service details
- Continuation
Token string - ContinuationToken is an opaque value the client can send to fetch additional items. Will be nil once all items have been returned.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service interface{}
- The service details
- Continuation
Token string - ContinuationToken is an opaque value the client can send to fetch additional items. Will be nil once all items have been returned.
- id string
- The provider-assigned unique ID for this managed resource.
- service any
- The service details
- continuation_
token string - ContinuationToken is an opaque value the client can send to fetch additional items. Will be nil once all items have been returned.
- id String
- The provider-assigned unique ID for this managed resource.
- service Object
- The service details
- continuation
Token String - ContinuationToken is an opaque value the client can send to fetch additional items. Will be nil once all items have been returned.
- id string
- The provider-assigned unique ID for this managed resource.
- service any
- The service details
- continuation
Token string - ContinuationToken is an opaque value the client can send to fetch additional items. Will be nil once all items have been returned.
- id str
- The provider-assigned unique ID for this managed resource.
- service Any
- The service details
- continuation_
token str - ContinuationToken is an opaque value the client can send to fetch additional items. Will be nil once all items have been returned.
- id String
- The provider-assigned unique ID for this managed resource.
- service Any
- The service details
- continuation
Token String - ContinuationToken is an opaque value the client can send to fetch additional items. Will be nil once all items have been returned.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi