prismacloud.PermissionGroup
Explore with Pulumi AI
Manage a permission group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = new prismacloud.PermissionGroup("example", {
description: "Made by Pulumi",
features: [{
featureName: "settingsAuditLogs",
operations: [{
read: true,
}],
}],
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.PermissionGroup("example",
description="Made by Pulumi",
features=[{
"feature_name": "settingsAuditLogs",
"operations": [{
"read": True,
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.NewPermissionGroup(ctx, "example", &prismacloud.PermissionGroupArgs{
Description: pulumi.String("Made by Pulumi"),
Features: prismacloud.PermissionGroupFeatureArray{
&prismacloud.PermissionGroupFeatureArgs{
FeatureName: pulumi.String("settingsAuditLogs"),
Operations: prismacloud.PermissionGroupFeatureOperationArray{
&prismacloud.PermissionGroupFeatureOperationArgs{
Read: pulumi.Bool(true),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = new Prismacloud.PermissionGroup("example", new()
{
Description = "Made by Pulumi",
Features = new[]
{
new Prismacloud.Inputs.PermissionGroupFeatureArgs
{
FeatureName = "settingsAuditLogs",
Operations = new[]
{
new Prismacloud.Inputs.PermissionGroupFeatureOperationArgs
{
Read = true,
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PermissionGroup;
import com.pulumi.prismacloud.PermissionGroupArgs;
import com.pulumi.prismacloud.inputs.PermissionGroupFeatureArgs;
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) {
var example = new PermissionGroup("example", PermissionGroupArgs.builder()
.description("Made by Pulumi")
.features(PermissionGroupFeatureArgs.builder()
.featureName("settingsAuditLogs")
.operations(PermissionGroupFeatureOperationArgs.builder()
.read(true)
.build())
.build())
.build());
}
}
resources:
example:
type: prismacloud:PermissionGroup
properties:
description: Made by Pulumi
features:
- featureName: settingsAuditLogs
operations:
- read: true
Create PermissionGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PermissionGroup(name: string, args: PermissionGroupArgs, opts?: CustomResourceOptions);
@overload
def PermissionGroup(resource_name: str,
args: PermissionGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PermissionGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
features: Optional[Sequence[PermissionGroupFeatureArgs]] = None,
accept_account_groups: Optional[bool] = None,
accept_code_repositories: Optional[bool] = None,
accept_resource_lists: Optional[bool] = None,
custom: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
permission_group_type: Optional[str] = None)
func NewPermissionGroup(ctx *Context, name string, args PermissionGroupArgs, opts ...ResourceOption) (*PermissionGroup, error)
public PermissionGroup(string name, PermissionGroupArgs args, CustomResourceOptions? opts = null)
public PermissionGroup(String name, PermissionGroupArgs args)
public PermissionGroup(String name, PermissionGroupArgs args, CustomResourceOptions options)
type: prismacloud:PermissionGroup
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 PermissionGroupArgs
- 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 PermissionGroupArgs
- 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 PermissionGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PermissionGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PermissionGroupArgs
- 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 permissionGroupResource = new Prismacloud.PermissionGroup("permissionGroupResource", new()
{
Features = new[]
{
new Prismacloud.Inputs.PermissionGroupFeatureArgs
{
FeatureName = "string",
Operations = new[]
{
new Prismacloud.Inputs.PermissionGroupFeatureOperationArgs
{
Create = false,
Delete = false,
Read = false,
Update = false,
},
},
},
},
AcceptAccountGroups = false,
AcceptCodeRepositories = false,
AcceptResourceLists = false,
Custom = false,
Description = "string",
Name = "string",
PermissionGroupType = "string",
});
example, err := prismacloud.NewPermissionGroup(ctx, "permissionGroupResource", &prismacloud.PermissionGroupArgs{
Features: prismacloud.PermissionGroupFeatureArray{
&prismacloud.PermissionGroupFeatureArgs{
FeatureName: pulumi.String("string"),
Operations: prismacloud.PermissionGroupFeatureOperationArray{
&prismacloud.PermissionGroupFeatureOperationArgs{
Create: pulumi.Bool(false),
Delete: pulumi.Bool(false),
Read: pulumi.Bool(false),
Update: pulumi.Bool(false),
},
},
},
},
AcceptAccountGroups: pulumi.Bool(false),
AcceptCodeRepositories: pulumi.Bool(false),
AcceptResourceLists: pulumi.Bool(false),
Custom: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
PermissionGroupType: pulumi.String("string"),
})
var permissionGroupResource = new PermissionGroup("permissionGroupResource", PermissionGroupArgs.builder()
.features(PermissionGroupFeatureArgs.builder()
.featureName("string")
.operations(PermissionGroupFeatureOperationArgs.builder()
.create(false)
.delete(false)
.read(false)
.update(false)
.build())
.build())
.acceptAccountGroups(false)
.acceptCodeRepositories(false)
.acceptResourceLists(false)
.custom(false)
.description("string")
.name("string")
.permissionGroupType("string")
.build());
permission_group_resource = prismacloud.PermissionGroup("permissionGroupResource",
features=[{
"feature_name": "string",
"operations": [{
"create": False,
"delete": False,
"read": False,
"update": False,
}],
}],
accept_account_groups=False,
accept_code_repositories=False,
accept_resource_lists=False,
custom=False,
description="string",
name="string",
permission_group_type="string")
const permissionGroupResource = new prismacloud.PermissionGroup("permissionGroupResource", {
features: [{
featureName: "string",
operations: [{
create: false,
"delete": false,
read: false,
update: false,
}],
}],
acceptAccountGroups: false,
acceptCodeRepositories: false,
acceptResourceLists: false,
custom: false,
description: "string",
name: "string",
permissionGroupType: "string",
});
type: prismacloud:PermissionGroup
properties:
acceptAccountGroups: false
acceptCodeRepositories: false
acceptResourceLists: false
custom: false
description: string
features:
- featureName: string
operations:
- create: false
delete: false
read: false
update: false
name: string
permissionGroupType: string
PermissionGroup 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 PermissionGroup resource accepts the following input properties:
- Features
List<Permission
Group Feature> - Collection of permitted features associated with the role, as defined below.
- Accept
Account boolGroups - Accept account groups.
- Accept
Code boolRepositories - Accept code repositories.
- Accept
Resource boolLists - Accept resource lists.
- Custom bool
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- Description string
- Description.
- Name string
- Name of the permission group.
- Permission
Group stringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- Features
[]Permission
Group Feature Args - Collection of permitted features associated with the role, as defined below.
- Accept
Account boolGroups - Accept account groups.
- Accept
Code boolRepositories - Accept code repositories.
- Accept
Resource boolLists - Accept resource lists.
- Custom bool
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- Description string
- Description.
- Name string
- Name of the permission group.
- Permission
Group stringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- features
List<Permission
Group Feature> - Collection of permitted features associated with the role, as defined below.
- accept
Account BooleanGroups - Accept account groups.
- accept
Code BooleanRepositories - Accept code repositories.
- accept
Resource BooleanLists - Accept resource lists.
- custom Boolean
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description String
- Description.
- name String
- Name of the permission group.
- permission
Group StringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- features
Permission
Group Feature[] - Collection of permitted features associated with the role, as defined below.
- accept
Account booleanGroups - Accept account groups.
- accept
Code booleanRepositories - Accept code repositories.
- accept
Resource booleanLists - Accept resource lists.
- custom boolean
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description string
- Description.
- name string
- Name of the permission group.
- permission
Group stringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- features
Sequence[Permission
Group Feature Args] - Collection of permitted features associated with the role, as defined below.
- accept_
account_ boolgroups - Accept account groups.
- accept_
code_ boolrepositories - Accept code repositories.
- accept_
resource_ boollists - Accept resource lists.
- custom bool
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description str
- Description.
- name str
- Name of the permission group.
- permission_
group_ strtype - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- features List<Property Map>
- Collection of permitted features associated with the role, as defined below.
- accept
Account BooleanGroups - Accept account groups.
- accept
Code BooleanRepositories - Accept code repositories.
- accept
Resource BooleanLists - Accept resource lists.
- custom Boolean
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description String
- Description.
- name String
- Name of the permission group.
- permission
Group StringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
Outputs
All input properties are implicitly available as output properties. Additionally, the PermissionGroup resource produces the following output properties:
- Associated
Roles Dictionary<string, string> - List of associated user roles which cannot exist in the system without the permission group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringBy - Last modified by
- Last
Modified doubleTs - (int) Last modified timestamp.
- Associated
Roles map[string]string - List of associated user roles which cannot exist in the system without the permission group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringBy - Last modified by
- Last
Modified float64Ts - (int) Last modified timestamp.
- associated
Roles Map<String,String> - List of associated user roles which cannot exist in the system without the permission group.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringBy - Last modified by
- last
Modified DoubleTs - (int) Last modified timestamp.
- associated
Roles {[key: string]: string} - List of associated user roles which cannot exist in the system without the permission group.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringBy - Last modified by
- last
Modified numberTs - (int) Last modified timestamp.
- associated_
roles Mapping[str, str] - List of associated user roles which cannot exist in the system without the permission group.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strby - Last modified by
- last_
modified_ floatts - (int) Last modified timestamp.
- associated
Roles Map<String> - List of associated user roles which cannot exist in the system without the permission group.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringBy - Last modified by
- last
Modified NumberTs - (int) Last modified timestamp.
Look up Existing PermissionGroup Resource
Get an existing PermissionGroup 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?: PermissionGroupState, opts?: CustomResourceOptions): PermissionGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accept_account_groups: Optional[bool] = None,
accept_code_repositories: Optional[bool] = None,
accept_resource_lists: Optional[bool] = None,
associated_roles: Optional[Mapping[str, str]] = None,
custom: Optional[bool] = None,
description: Optional[str] = None,
features: Optional[Sequence[PermissionGroupFeatureArgs]] = None,
last_modified_by: Optional[str] = None,
last_modified_ts: Optional[float] = None,
name: Optional[str] = None,
permission_group_type: Optional[str] = None) -> PermissionGroup
func GetPermissionGroup(ctx *Context, name string, id IDInput, state *PermissionGroupState, opts ...ResourceOption) (*PermissionGroup, error)
public static PermissionGroup Get(string name, Input<string> id, PermissionGroupState? state, CustomResourceOptions? opts = null)
public static PermissionGroup get(String name, Output<String> id, PermissionGroupState state, CustomResourceOptions options)
resources: _: type: prismacloud:PermissionGroup 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.
- Accept
Account boolGroups - Accept account groups.
- Accept
Code boolRepositories - Accept code repositories.
- Accept
Resource boolLists - Accept resource lists.
- Associated
Roles Dictionary<string, string> - List of associated user roles which cannot exist in the system without the permission group.
- Custom bool
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- Description string
- Description.
- Features
List<Permission
Group Feature> - Collection of permitted features associated with the role, as defined below.
- Last
Modified stringBy - Last modified by
- Last
Modified doubleTs - (int) Last modified timestamp.
- Name string
- Name of the permission group.
- Permission
Group stringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- Accept
Account boolGroups - Accept account groups.
- Accept
Code boolRepositories - Accept code repositories.
- Accept
Resource boolLists - Accept resource lists.
- Associated
Roles map[string]string - List of associated user roles which cannot exist in the system without the permission group.
- Custom bool
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- Description string
- Description.
- Features
[]Permission
Group Feature Args - Collection of permitted features associated with the role, as defined below.
- Last
Modified stringBy - Last modified by
- Last
Modified float64Ts - (int) Last modified timestamp.
- Name string
- Name of the permission group.
- Permission
Group stringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- accept
Account BooleanGroups - Accept account groups.
- accept
Code BooleanRepositories - Accept code repositories.
- accept
Resource BooleanLists - Accept resource lists.
- associated
Roles Map<String,String> - List of associated user roles which cannot exist in the system without the permission group.
- custom Boolean
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description String
- Description.
- features
List<Permission
Group Feature> - Collection of permitted features associated with the role, as defined below.
- last
Modified StringBy - Last modified by
- last
Modified DoubleTs - (int) Last modified timestamp.
- name String
- Name of the permission group.
- permission
Group StringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- accept
Account booleanGroups - Accept account groups.
- accept
Code booleanRepositories - Accept code repositories.
- accept
Resource booleanLists - Accept resource lists.
- associated
Roles {[key: string]: string} - List of associated user roles which cannot exist in the system without the permission group.
- custom boolean
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description string
- Description.
- features
Permission
Group Feature[] - Collection of permitted features associated with the role, as defined below.
- last
Modified stringBy - Last modified by
- last
Modified numberTs - (int) Last modified timestamp.
- name string
- Name of the permission group.
- permission
Group stringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- accept_
account_ boolgroups - Accept account groups.
- accept_
code_ boolrepositories - Accept code repositories.
- accept_
resource_ boollists - Accept resource lists.
- associated_
roles Mapping[str, str] - List of associated user roles which cannot exist in the system without the permission group.
- custom bool
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description str
- Description.
- features
Sequence[Permission
Group Feature Args] - Collection of permitted features associated with the role, as defined below.
- last_
modified_ strby - Last modified by
- last_
modified_ floatts - (int) Last modified timestamp.
- name str
- Name of the permission group.
- permission_
group_ strtype - Permission Group type. Valid values are
Default
,Custom
orInternal
.
- accept
Account BooleanGroups - Accept account groups.
- accept
Code BooleanRepositories - Accept code repositories.
- accept
Resource BooleanLists - Accept resource lists.
- associated
Roles Map<String> - List of associated user roles which cannot exist in the system without the permission group.
- custom Boolean
- Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
- description String
- Description.
- features List<Property Map>
- Collection of permitted features associated with the role, as defined below.
- last
Modified StringBy - Last modified by
- last
Modified NumberTs - (int) Last modified timestamp.
- name String
- Name of the permission group.
- permission
Group StringType - Permission Group type. Valid values are
Default
,Custom
orInternal
.
Supporting Types
PermissionGroupFeature, PermissionGroupFeatureArgs
- Feature
Name string - Prisma Cloud Feature Name.
- Operations
List<Permission
Group Feature Operation> - A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
- Feature
Name string - Prisma Cloud Feature Name.
- Operations
[]Permission
Group Feature Operation - A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
- feature
Name String - Prisma Cloud Feature Name.
- operations
List<Permission
Group Feature Operation> - A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
- feature
Name string - Prisma Cloud Feature Name.
- operations
Permission
Group Feature Operation[] - A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
- feature_
name str - Prisma Cloud Feature Name.
- operations
Sequence[Permission
Group Feature Operation] - A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
- feature
Name String - Prisma Cloud Feature Name.
- operations List<Property Map>
- A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
PermissionGroupFeatureOperation, PermissionGroupFeatureOperationArgs
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.