okta.EmailDomain
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.EmailDomain("example", {
brandId: "abc123",
domain: "example.com",
displayName: "test",
userName: "paul_atreides",
});
import pulumi
import pulumi_okta as okta
example = okta.EmailDomain("example",
brand_id="abc123",
domain="example.com",
display_name="test",
user_name="paul_atreides")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okta.NewEmailDomain(ctx, "example", &okta.EmailDomainArgs{
BrandId: pulumi.String("abc123"),
Domain: pulumi.String("example.com"),
DisplayName: pulumi.String("test"),
UserName: pulumi.String("paul_atreides"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = new Okta.EmailDomain("example", new()
{
BrandId = "abc123",
Domain = "example.com",
DisplayName = "test",
UserName = "paul_atreides",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.EmailDomain;
import com.pulumi.okta.EmailDomainArgs;
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 EmailDomain("example", EmailDomainArgs.builder()
.brandId("abc123")
.domain("example.com")
.displayName("test")
.userName("paul_atreides")
.build());
}
}
resources:
example:
type: okta:EmailDomain
properties:
brandId: abc123
domain: example.com
displayName: test
userName: paul_atreides
Create EmailDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EmailDomain(name: string, args: EmailDomainArgs, opts?: CustomResourceOptions);
@overload
def EmailDomain(resource_name: str,
args: EmailDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EmailDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
brand_id: Optional[str] = None,
display_name: Optional[str] = None,
domain: Optional[str] = None,
user_name: Optional[str] = None)
func NewEmailDomain(ctx *Context, name string, args EmailDomainArgs, opts ...ResourceOption) (*EmailDomain, error)
public EmailDomain(string name, EmailDomainArgs args, CustomResourceOptions? opts = null)
public EmailDomain(String name, EmailDomainArgs args)
public EmailDomain(String name, EmailDomainArgs args, CustomResourceOptions options)
type: okta:EmailDomain
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 EmailDomainArgs
- 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 EmailDomainArgs
- 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 EmailDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmailDomainArgs
- 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 emailDomainResource = new Okta.EmailDomain("emailDomainResource", new()
{
BrandId = "string",
DisplayName = "string",
Domain = "string",
UserName = "string",
});
example, err := okta.NewEmailDomain(ctx, "emailDomainResource", &okta.EmailDomainArgs{
BrandId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Domain: pulumi.String("string"),
UserName: pulumi.String("string"),
})
var emailDomainResource = new EmailDomain("emailDomainResource", EmailDomainArgs.builder()
.brandId("string")
.displayName("string")
.domain("string")
.userName("string")
.build());
email_domain_resource = okta.EmailDomain("emailDomainResource",
brand_id="string",
display_name="string",
domain="string",
user_name="string")
const emailDomainResource = new okta.EmailDomain("emailDomainResource", {
brandId: "string",
displayName: "string",
domain: "string",
userName: "string",
});
type: okta:EmailDomain
properties:
brandId: string
displayName: string
domain: string
userName: string
EmailDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EmailDomain resource accepts the following input properties:
- Brand
Id string - Brand id of the email domain.
- Display
Name string - Display name of the email domain.
- Domain string
- Mail domain to send from.
- User
Name string - User name of the email domain.
- Brand
Id string - Brand id of the email domain.
- Display
Name string - Display name of the email domain.
- Domain string
- Mail domain to send from.
- User
Name string - User name of the email domain.
- brand
Id String - Brand id of the email domain.
- display
Name String - Display name of the email domain.
- domain String
- Mail domain to send from.
- user
Name String - User name of the email domain.
- brand
Id string - Brand id of the email domain.
- display
Name string - Display name of the email domain.
- domain string
- Mail domain to send from.
- user
Name string - User name of the email domain.
- brand_
id str - Brand id of the email domain.
- display_
name str - Display name of the email domain.
- domain str
- Mail domain to send from.
- user_
name str - User name of the email domain.
- brand
Id String - Brand id of the email domain.
- display
Name String - Display name of the email domain.
- domain String
- Mail domain to send from.
- user
Name String - User name of the email domain.
Outputs
All input properties are implicitly available as output properties. Additionally, the EmailDomain resource produces the following output properties:
- Dns
Validation List<EmailRecords Domain Dns Validation Record> - TXT and cname records to be registered for the email Domain
- Id string
- The provider-assigned unique ID for this managed resource.
- Validation
Status string - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- Dns
Validation []EmailRecords Domain Dns Validation Record - TXT and cname records to be registered for the email Domain
- Id string
- The provider-assigned unique ID for this managed resource.
- Validation
Status string - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- dns
Validation List<EmailRecords Domain Dns Validation Record> - TXT and cname records to be registered for the email Domain
- id String
- The provider-assigned unique ID for this managed resource.
- validation
Status String - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- dns
Validation EmailRecords Domain Dns Validation Record[] - TXT and cname records to be registered for the email Domain
- id string
- The provider-assigned unique ID for this managed resource.
- validation
Status string - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- dns_
validation_ Sequence[Emailrecords Domain Dns Validation Record] - TXT and cname records to be registered for the email Domain
- id str
- The provider-assigned unique ID for this managed resource.
- validation_
status str - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- dns
Validation List<Property Map>Records - TXT and cname records to be registered for the email Domain
- id String
- The provider-assigned unique ID for this managed resource.
- validation
Status String - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
Look up Existing EmailDomain Resource
Get an existing EmailDomain 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?: EmailDomainState, opts?: CustomResourceOptions): EmailDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
brand_id: Optional[str] = None,
display_name: Optional[str] = None,
dns_validation_records: Optional[Sequence[EmailDomainDnsValidationRecordArgs]] = None,
domain: Optional[str] = None,
user_name: Optional[str] = None,
validation_status: Optional[str] = None) -> EmailDomain
func GetEmailDomain(ctx *Context, name string, id IDInput, state *EmailDomainState, opts ...ResourceOption) (*EmailDomain, error)
public static EmailDomain Get(string name, Input<string> id, EmailDomainState? state, CustomResourceOptions? opts = null)
public static EmailDomain get(String name, Output<String> id, EmailDomainState 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.
- Brand
Id string - Brand id of the email domain.
- Display
Name string - Display name of the email domain.
- Dns
Validation List<EmailRecords Domain Dns Validation Record> - TXT and cname records to be registered for the email Domain
- Domain string
- Mail domain to send from.
- User
Name string - User name of the email domain.
- Validation
Status string - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- Brand
Id string - Brand id of the email domain.
- Display
Name string - Display name of the email domain.
- Dns
Validation []EmailRecords Domain Dns Validation Record Args - TXT and cname records to be registered for the email Domain
- Domain string
- Mail domain to send from.
- User
Name string - User name of the email domain.
- Validation
Status string - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- brand
Id String - Brand id of the email domain.
- display
Name String - Display name of the email domain.
- dns
Validation List<EmailRecords Domain Dns Validation Record> - TXT and cname records to be registered for the email Domain
- domain String
- Mail domain to send from.
- user
Name String - User name of the email domain.
- validation
Status String - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- brand
Id string - Brand id of the email domain.
- display
Name string - Display name of the email domain.
- dns
Validation EmailRecords Domain Dns Validation Record[] - TXT and cname records to be registered for the email Domain
- domain string
- Mail domain to send from.
- user
Name string - User name of the email domain.
- validation
Status string - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- brand_
id str - Brand id of the email domain.
- display_
name str - Display name of the email domain.
- dns_
validation_ Sequence[Emailrecords Domain Dns Validation Record Args] - TXT and cname records to be registered for the email Domain
- domain str
- Mail domain to send from.
- user_
name str - User name of the email domain.
- validation_
status str - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
- brand
Id String - Brand id of the email domain.
- display
Name String - Display name of the email domain.
- dns
Validation List<Property Map>Records - TXT and cname records to be registered for the email Domain
- domain String
- Mail domain to send from.
- user
Name String - User name of the email domain.
- validation
Status String - Status of the email domain. Values: NOTSTARTED, INPROGRESS, VERIFIED, COMPLETED
Supporting Types
EmailDomainDnsValidationRecord, EmailDomainDnsValidationRecordArgs
- Expiration string
- DNS TXT record expiration
- Fqdn string
- DNS record name
- Record
Type string - Record type can be TXT or cname
- Value string
- DNS record value
- Expiration string
- DNS TXT record expiration
- Fqdn string
- DNS record name
- Record
Type string - Record type can be TXT or cname
- Value string
- DNS record value
- expiration String
- DNS TXT record expiration
- fqdn String
- DNS record name
- record
Type String - Record type can be TXT or cname
- value String
- DNS record value
- expiration string
- DNS TXT record expiration
- fqdn string
- DNS record name
- record
Type string - Record type can be TXT or cname
- value string
- DNS record value
- expiration str
- DNS TXT record expiration
- fqdn str
- DNS record name
- record_
type str - Record type can be TXT or cname
- value str
- DNS record value
- expiration String
- DNS TXT record expiration
- fqdn String
- DNS record name
- record
Type String - Record type can be TXT or cname
- value String
- DNS record value
Import
$ pulumi import okta:index/emailDomain:EmailDomain example <domain_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.