createIngressPoint
abstract suspend fun createIngressPoint(input: CreateIngressPointRequest): CreateIngressPointResponse
Provision a new ingress endpoint resource.
Samples
import aws.sdk.kotlin.services.mailmanager.model.IngressPointConfiguration
import aws.sdk.kotlin.services.mailmanager.model.IngressPointType
import aws.sdk.kotlin.services.mailmanager.model.Tag
fun main() {
//sampleStart
// Create Open IngressPoint
val resp = mailManagerClient.createIngressPoint {
ingressPointName = "ingressPointName"
type = IngressPointType.fromValue("OPEN")
ruleSetId = "rs-12345"
trafficPolicyId = "tp-12345"
tags = listOf<Tag>(
Tag {
key = "key"
value = "value"
}
)
}
//sampleEnd
}
import aws.sdk.kotlin.services.mailmanager.model.IngressPointConfiguration
import aws.sdk.kotlin.services.mailmanager.model.IngressPointType
import aws.sdk.kotlin.services.mailmanager.model.Tag
fun main() {
//sampleStart
// Create Auth IngressPoint with Password
val resp = mailManagerClient.createIngressPoint {
ingressPointName = "ingressPointName"
type = IngressPointType.fromValue("AUTH")
ruleSetId = "rs-12345"
trafficPolicyId = "tp-12345"
ingressPointConfiguration = IngressPointConfiguration.SmtpPassword("smtpPassword")
tags = listOf<Tag>(
Tag {
key = "key"
value = "value"
}
)
}
//sampleEnd
}
import aws.sdk.kotlin.services.mailmanager.model.IngressPointConfiguration
import aws.sdk.kotlin.services.mailmanager.model.IngressPointType
import aws.sdk.kotlin.services.mailmanager.model.Tag
fun main() {
//sampleStart
// Create Auth IngressPoint with SecretsManager Secret
val resp = mailManagerClient.createIngressPoint {
ingressPointName = "ingressPointName"
type = IngressPointType.fromValue("AUTH")
ruleSetId = "rs-12345"
trafficPolicyId = "tp-12345"
ingressPointConfiguration = IngressPointConfiguration.SecretArn("arn:aws:secretsmanager:us-west-2:123456789012:secret:abcde")
tags = listOf<Tag>(
Tag {
key = "key"
value = "value"
}
)
}
//sampleEnd
}