cpln.Org
Explore with Pulumi AI
Create Org Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Org(name: string, args: OrgArgs, opts?: CustomResourceOptions);
@overload
def Org(resource_name: str,
args: OrgArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Org(resource_name: str,
opts: Optional[ResourceOptions] = None,
observability: Optional[OrgObservabilityArgs] = None,
account_id: Optional[str] = None,
auth_config: Optional[OrgAuthConfigArgs] = None,
description: Optional[str] = None,
invitees: Optional[Sequence[str]] = None,
security: Optional[OrgSecurityArgs] = None,
session_timeout_seconds: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None)
func NewOrg(ctx *Context, name string, args OrgArgs, opts ...ResourceOption) (*Org, error)
public Org(string name, OrgArgs args, CustomResourceOptions? opts = null)
type: cpln:Org
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 OrgArgs
- 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 OrgArgs
- 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 OrgArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrgArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrgArgs
- 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 orgResource = new Cpln.Org("orgResource", new()
{
Observability = new Cpln.Inputs.OrgObservabilityArgs
{
LogsRetentionDays = 0,
MetricsRetentionDays = 0,
TracesRetentionDays = 0,
},
AccountId = "string",
AuthConfig = new Cpln.Inputs.OrgAuthConfigArgs
{
DomainAutoMembers = new[]
{
"string",
},
SamlOnly = false,
},
Description = "string",
Invitees = new[]
{
"string",
},
Security = new Cpln.Inputs.OrgSecurityArgs
{
_sentinel = false,
ThreatDetection = new Cpln.Inputs.OrgSecurityThreatDetectionArgs
{
Enabled = false,
MinimumSeverity = "string",
Syslog = new Cpln.Inputs.OrgSecurityThreatDetectionSyslogArgs
{
Host = "string",
Port = 0,
Transport = "string",
},
},
},
SessionTimeoutSeconds = 0,
Tags =
{
{ "string", "string" },
},
});
example, err := cpln.NewOrg(ctx, "orgResource", &cpln.OrgArgs{
Observability: &cpln.OrgObservabilityArgs{
LogsRetentionDays: pulumi.Int(0),
MetricsRetentionDays: pulumi.Int(0),
TracesRetentionDays: pulumi.Int(0),
},
AccountId: pulumi.String("string"),
AuthConfig: &cpln.OrgAuthConfigArgs{
DomainAutoMembers: pulumi.StringArray{
pulumi.String("string"),
},
SamlOnly: pulumi.Bool(false),
},
Description: pulumi.String("string"),
Invitees: pulumi.StringArray{
pulumi.String("string"),
},
Security: &cpln.OrgSecurityArgs{
_sentinel: pulumi.Bool(false),
ThreatDetection: &cpln.OrgSecurityThreatDetectionArgs{
Enabled: pulumi.Bool(false),
MinimumSeverity: pulumi.String("string"),
Syslog: &cpln.OrgSecurityThreatDetectionSyslogArgs{
Host: pulumi.String("string"),
Port: pulumi.Int(0),
Transport: pulumi.String("string"),
},
},
},
SessionTimeoutSeconds: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var orgResource = new Org("orgResource", OrgArgs.builder()
.observability(OrgObservabilityArgs.builder()
.logsRetentionDays(0)
.metricsRetentionDays(0)
.tracesRetentionDays(0)
.build())
.accountId("string")
.authConfig(OrgAuthConfigArgs.builder()
.domainAutoMembers("string")
.samlOnly(false)
.build())
.description("string")
.invitees("string")
.security(OrgSecurityArgs.builder()
._sentinel(false)
.threatDetection(OrgSecurityThreatDetectionArgs.builder()
.enabled(false)
.minimumSeverity("string")
.syslog(OrgSecurityThreatDetectionSyslogArgs.builder()
.host("string")
.port(0)
.transport("string")
.build())
.build())
.build())
.sessionTimeoutSeconds(0)
.tags(Map.of("string", "string"))
.build());
org_resource = cpln.Org("orgResource",
observability={
"logs_retention_days": 0,
"metrics_retention_days": 0,
"traces_retention_days": 0,
},
account_id="string",
auth_config={
"domain_auto_members": ["string"],
"saml_only": False,
},
description="string",
invitees=["string"],
security={
"_sentinel": False,
"threat_detection": {
"enabled": False,
"minimum_severity": "string",
"syslog": {
"host": "string",
"port": 0,
"transport": "string",
},
},
},
session_timeout_seconds=0,
tags={
"string": "string",
})
const orgResource = new cpln.Org("orgResource", {
observability: {
logsRetentionDays: 0,
metricsRetentionDays: 0,
tracesRetentionDays: 0,
},
accountId: "string",
authConfig: {
domainAutoMembers: ["string"],
samlOnly: false,
},
description: "string",
invitees: ["string"],
security: {
_sentinel: false,
threatDetection: {
enabled: false,
minimumSeverity: "string",
syslog: {
host: "string",
port: 0,
transport: "string",
},
},
},
sessionTimeoutSeconds: 0,
tags: {
string: "string",
},
});
type: cpln:Org
properties:
accountId: string
authConfig:
domainAutoMembers:
- string
samlOnly: false
description: string
invitees:
- string
observability:
logsRetentionDays: 0
metricsRetentionDays: 0
tracesRetentionDays: 0
security:
_sentinel: false
threatDetection:
enabled: false
minimumSeverity: string
syslog:
host: string
port: 0
transport: string
sessionTimeoutSeconds: 0
tags:
string: string
Org 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 Org resource accepts the following input properties:
- Observability
Pulumiverse.
Cpln. Inputs. Org Observability - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- Account
Id string - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - Auth
Config Pulumiverse.Cpln. Inputs. Org Auth Config - The configuration settings and parameters related to authentication within the org.
- Description string
- The description of org.
- Invitees List<string>
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - Security
Pulumiverse.
Cpln. Inputs. Org Security - Session
Timeout intSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- Dictionary<string, string>
- Key-value map of the org's tags.
- Observability
Org
Observability Args - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- Account
Id string - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - Auth
Config OrgAuth Config Args - The configuration settings and parameters related to authentication within the org.
- Description string
- The description of org.
- Invitees []string
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - Security
Org
Security Args - Session
Timeout intSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- map[string]string
- Key-value map of the org's tags.
- observability
Org
Observability - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- account
Id String - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth
Config OrgAuth Config - The configuration settings and parameters related to authentication within the org.
- description String
- The description of org.
- invitees List<String>
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - security
Org
Security - session
Timeout IntegerSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- Map<String,String>
- Key-value map of the org's tags.
- observability
Org
Observability - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- account
Id string - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth
Config OrgAuth Config - The configuration settings and parameters related to authentication within the org.
- description string
- The description of org.
- invitees string[]
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - security
Org
Security - session
Timeout numberSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- {[key: string]: string}
- Key-value map of the org's tags.
- observability
Org
Observability Args - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- account_
id str - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth_
config OrgAuth Config Args - The configuration settings and parameters related to authentication within the org.
- description str
- The description of org.
- invitees Sequence[str]
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - security
Org
Security Args - session_
timeout_ intseconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- Mapping[str, str]
- Key-value map of the org's tags.
- observability Property Map
- The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- account
Id String - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth
Config Property Map - The configuration settings and parameters related to authentication within the org.
- description String
- The description of org.
- invitees List<String>
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - security Property Map
- session
Timeout NumberSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- Map<String>
- Key-value map of the org's tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Org resource produces the following output properties:
Look up Existing Org Resource
Get an existing Org 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?: OrgState, opts?: CustomResourceOptions): Org
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
auth_config: Optional[OrgAuthConfigArgs] = None,
cpln_id: Optional[str] = None,
description: Optional[str] = None,
invitees: Optional[Sequence[str]] = None,
name: Optional[str] = None,
observability: Optional[OrgObservabilityArgs] = None,
security: Optional[OrgSecurityArgs] = None,
self_link: Optional[str] = None,
session_timeout_seconds: Optional[int] = None,
statuses: Optional[Sequence[OrgStatusArgs]] = None,
tags: Optional[Mapping[str, str]] = None) -> Org
func GetOrg(ctx *Context, name string, id IDInput, state *OrgState, opts ...ResourceOption) (*Org, error)
public static Org Get(string name, Input<string> id, OrgState? state, CustomResourceOptions? opts = null)
public static Org get(String name, Output<String> id, OrgState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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 - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - Auth
Config Pulumiverse.Cpln. Inputs. Org Auth Config - The configuration settings and parameters related to authentication within the org.
- Cpln
Id string - The ID, in GUID format, of the org.
- Description string
- The description of org.
- Invitees List<string>
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - Name string
- The name of the org.
- Observability
Pulumiverse.
Cpln. Inputs. Org Observability - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- Security
Pulumiverse.
Cpln. Inputs. Org Security - Self
Link string - Full link to this resource. Can be referenced by other resources.
- Session
Timeout intSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- Statuses
List<Pulumiverse.
Cpln. Inputs. Org Status> - Status of the org.
- Dictionary<string, string>
- Key-value map of the org's tags.
- Account
Id string - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - Auth
Config OrgAuth Config Args - The configuration settings and parameters related to authentication within the org.
- Cpln
Id string - The ID, in GUID format, of the org.
- Description string
- The description of org.
- Invitees []string
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - Name string
- The name of the org.
- Observability
Org
Observability Args - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- Security
Org
Security Args - Self
Link string - Full link to this resource. Can be referenced by other resources.
- Session
Timeout intSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- Statuses
[]Org
Status Args - Status of the org.
- map[string]string
- Key-value map of the org's tags.
- account
Id String - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth
Config OrgAuth Config - The configuration settings and parameters related to authentication within the org.
- cpln
Id String - The ID, in GUID format, of the org.
- description String
- The description of org.
- invitees List<String>
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - name String
- The name of the org.
- observability
Org
Observability - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- security
Org
Security - self
Link String - Full link to this resource. Can be referenced by other resources.
- session
Timeout IntegerSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- statuses
List<Org
Status> - Status of the org.
- Map<String,String>
- Key-value map of the org's tags.
- account
Id string - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth
Config OrgAuth Config - The configuration settings and parameters related to authentication within the org.
- cpln
Id string - The ID, in GUID format, of the org.
- description string
- The description of org.
- invitees string[]
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - name string
- The name of the org.
- observability
Org
Observability - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- security
Org
Security - self
Link string - Full link to this resource. Can be referenced by other resources.
- session
Timeout numberSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- statuses
Org
Status[] - Status of the org.
- {[key: string]: string}
- Key-value map of the org's tags.
- account_
id str - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth_
config OrgAuth Config Args - The configuration settings and parameters related to authentication within the org.
- cpln_
id str - The ID, in GUID format, of the org.
- description str
- The description of org.
- invitees Sequence[str]
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - name str
- The name of the org.
- observability
Org
Observability Args - The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- security
Org
Security Args - self_
link str - Full link to this resource. Can be referenced by other resources.
- session_
timeout_ intseconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- statuses
Sequence[Org
Status Args] - Status of the org.
- Mapping[str, str]
- Key-value map of the org's tags.
- account
Id String - The associated account ID that will be used when creating the org. Only used on org creation. The account ID can be
obtained from the
Org Management & Billing
page. - auth
Config Property Map - The configuration settings and parameters related to authentication within the org.
- cpln
Id String - The ID, in GUID format, of the org.
- description String
- The description of org.
- invitees List<String>
- When an org is created, the list of email addresses which will receive an invitation to join the org and be assigned to
the
superusers
group. The user account used when creating the org will be included in this list. - name String
- The name of the org.
- observability Property Map
- The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default.
- security Property Map
- self
Link String - Full link to this resource. Can be referenced by other resources.
- session
Timeout NumberSeconds - The idle time (in seconds) in which the console UI will automatically sign-out the user. Default: 900 (15 minutes)
- statuses List<Property Map>
- Status of the org.
- Map<String>
- Key-value map of the org's tags.
Supporting Types
OrgAuthConfig, OrgAuthConfigArgs
- Domain
Auto List<string>Members - Saml
Only bool
- Domain
Auto []stringMembers - Saml
Only bool
- domain
Auto List<String>Members - saml
Only Boolean
- domain
Auto string[]Members - saml
Only boolean
- domain_
auto_ Sequence[str]members - saml_
only bool
- domain
Auto List<String>Members - saml
Only Boolean
OrgObservability, OrgObservabilityArgs
- logs
Retention IntegerDays - metrics
Retention IntegerDays - traces
Retention IntegerDays
- logs
Retention numberDays - metrics
Retention numberDays - traces
Retention numberDays
- logs
Retention NumberDays - metrics
Retention NumberDays - traces
Retention NumberDays
OrgSecurity, OrgSecurityArgs
- _
sentinel Boolean - threat
Detection Property Map
OrgSecurityThreatDetection, OrgSecurityThreatDetectionArgs
- enabled Boolean
- minimum
Severity String - syslog
Org
Security Threat Detection Syslog
- enabled boolean
- minimum
Severity string - syslog
Org
Security Threat Detection Syslog
- enabled Boolean
- minimum
Severity String - syslog Property Map
OrgSecurityThreatDetectionSyslog, OrgSecurityThreatDetectionSyslogArgs
OrgStatus, OrgStatusArgs
- Account
Link string - Active bool
- Account
Link string - Active bool
- account
Link String - active Boolean
- account
Link string - active boolean
- account_
link str - active bool
- account
Link String - active Boolean
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.