1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Email
  5. getSender
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Email.getSender

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This data source provides details about a specific Sender resource in Oracle Cloud Infrastructure Email service.

    Gets an approved sender for a given senderId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSender = oci.Email.getSender({
        senderId: oci_email_sender.test_sender.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_sender = oci.Email.get_sender(sender_id=oci_email_sender["test_sender"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Email"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Email.GetSender(ctx, &email.GetSenderArgs{
    			SenderId: oci_email_sender.Test_sender.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testSender = Oci.Email.GetSender.Invoke(new()
        {
            SenderId = oci_email_sender.Test_sender.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Email.EmailFunctions;
    import com.pulumi.oci.Email.inputs.GetSenderArgs;
    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) {
            final var testSender = EmailFunctions.getSender(GetSenderArgs.builder()
                .senderId(oci_email_sender.test_sender().id())
                .build());
    
        }
    }
    
    variables:
      testSender:
        fn::invoke:
          Function: oci:Email:getSender
          Arguments:
            senderId: ${oci_email_sender.test_sender.id}
    

    Using getSender

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSender(args: GetSenderArgs, opts?: InvokeOptions): Promise<GetSenderResult>
    function getSenderOutput(args: GetSenderOutputArgs, opts?: InvokeOptions): Output<GetSenderResult>
    def get_sender(sender_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSenderResult
    def get_sender_output(sender_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetSenderResult]
    func GetSender(ctx *Context, args *GetSenderArgs, opts ...InvokeOption) (*GetSenderResult, error)
    func GetSenderOutput(ctx *Context, args *GetSenderOutputArgs, opts ...InvokeOption) GetSenderResultOutput

    > Note: This function is named GetSender in the Go SDK.

    public static class GetSender 
    {
        public static Task<GetSenderResult> InvokeAsync(GetSenderArgs args, InvokeOptions? opts = null)
        public static Output<GetSenderResult> Invoke(GetSenderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSenderResult> getSender(GetSenderArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Email/getSender:getSender
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SenderId string
    The unique OCID of the sender.
    SenderId string
    The unique OCID of the sender.
    senderId String
    The unique OCID of the sender.
    senderId string
    The unique OCID of the sender.
    sender_id str
    The unique OCID of the sender.
    senderId String
    The unique OCID of the sender.

    getSender Result

    The following output properties are available:

    CompartmentId string
    The OCID for the compartment.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    EmailAddress string
    The email address of the sender.
    EmailDomainId string
    The email domain used to assert responsibility for emails sent from this sender.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The unique OCID of the sender.
    IsSpf bool
    Value of the SPF field. For more information about SPF, please see SPF Authentication.
    SenderId string
    State string
    The current status of the approved sender.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
    CompartmentId string
    The OCID for the compartment.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    EmailAddress string
    The email address of the sender.
    EmailDomainId string
    The email domain used to assert responsibility for emails sent from this sender.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The unique OCID of the sender.
    IsSpf bool
    Value of the SPF field. For more information about SPF, please see SPF Authentication.
    SenderId string
    State string
    The current status of the approved sender.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
    compartmentId String
    The OCID for the compartment.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    emailAddress String
    The email address of the sender.
    emailDomainId String
    The email domain used to assert responsibility for emails sent from this sender.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The unique OCID of the sender.
    isSpf Boolean
    Value of the SPF field. For more information about SPF, please see SPF Authentication.
    senderId String
    state String
    The current status of the approved sender.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
    compartmentId string
    The OCID for the compartment.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    emailAddress string
    The email address of the sender.
    emailDomainId string
    The email domain used to assert responsibility for emails sent from this sender.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The unique OCID of the sender.
    isSpf boolean
    Value of the SPF field. For more information about SPF, please see SPF Authentication.
    senderId string
    state string
    The current status of the approved sender.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
    compartment_id str
    The OCID for the compartment.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    email_address str
    The email address of the sender.
    email_domain_id str
    The email domain used to assert responsibility for emails sent from this sender.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The unique OCID of the sender.
    is_spf bool
    Value of the SPF field. For more information about SPF, please see SPF Authentication.
    sender_id str
    state str
    The current status of the approved sender.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
    compartmentId String
    The OCID for the compartment.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    emailAddress String
    The email address of the sender.
    emailDomainId String
    The email domain used to assert responsibility for emails sent from this sender.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The unique OCID of the sender.
    isSpf Boolean
    Value of the SPF field. For more information about SPF, please see SPF Authentication.
    senderId String
    state String
    The current status of the approved sender.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi