Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Email.getSender
Explore with Pulumi AI
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: testSenderOciEmailSender.id,
});
import pulumi
import pulumi_oci as oci
test_sender = oci.Email.get_sender(sender_id=test_sender_oci_email_sender["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testSenderOciEmailSender.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 = testSenderOciEmailSender.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(testSenderOciEmailSender.id())
.build());
}
}
variables:
testSender:
fn::invoke:
Function: oci:Email:getSender
Arguments:
senderId: ${testSenderOciEmailSender.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:
- Sender
Id string - The unique OCID of the sender.
- Sender
Id string - The unique OCID of the sender.
- sender
Id String - The unique OCID of the sender.
- sender
Id string - The unique OCID of the sender.
- sender_
id str - The unique OCID of the sender.
- sender
Id String - The unique OCID of the sender.
getSender Result
The following output properties are available:
- Compartment
Id string - The OCID for the compartment.
- Dictionary<string, string>
- 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 string - The email address of the sender.
- Email
Domain stringId - The email domain used to assert responsibility for emails sent from this sender.
- Dictionary<string, string>
- 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.
- Is
Spf bool - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- Sender
Id string - State string
- The current status of the approved sender.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created 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 string - The OCID for the compartment.
- map[string]string
- 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 string - The email address of the sender.
- Email
Domain stringId - The email domain used to assert responsibility for emails sent from this sender.
- map[string]string
- 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.
- Is
Spf bool - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- Sender
Id string - State string
- The current status of the approved sender.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created 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 String - The OCID for the compartment.
- Map<String,String>
- 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 String - The email address of the sender.
- email
Domain StringId - The email domain used to assert responsibility for emails sent from this sender.
- Map<String,String>
- 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.
- is
Spf Boolean - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- sender
Id String - state String
- The current status of the approved sender.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created 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 string - The OCID for the compartment.
- {[key: string]: string}
- 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 string - The email address of the sender.
- email
Domain stringId - The email domain used to assert responsibility for emails sent from this sender.
- {[key: string]: string}
- 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.
- is
Spf boolean - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- sender
Id string - state string
- The current status of the approved sender.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created 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.
- Mapping[str, str]
- 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_ strid - The email domain used to assert responsibility for emails sent from this sender.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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.
- compartment
Id String - The OCID for the compartment.
- Map<String>
- 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 String - The email address of the sender.
- email
Domain StringId - The email domain used to assert responsibility for emails sent from this sender.
- Map<String>
- 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.
- is
Spf Boolean - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- sender
Id String - state String
- The current status of the approved sender.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created 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.