Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.pinpoint.ApnsSandboxChannelArgs Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.pinpoint;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ApnsSandboxChannelArgs extends com.pulumi.resources.ResourceArgs {
public static final ApnsSandboxChannelArgs Empty = new ApnsSandboxChannelArgs();
/**
* The application ID.
*
*/
@Import(name="applicationId", required=true)
private Output applicationId;
/**
* @return The application ID.
*
*/
public Output applicationId() {
return this.applicationId;
}
/**
* The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app.
*
*/
@Import(name="bundleId")
private @Nullable Output bundleId;
/**
* @return The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app.
*
*/
public Optional> bundleId() {
return Optional.ofNullable(this.bundleId);
}
/**
* The pem encoded TLS Certificate from Apple.
*
*/
@Import(name="certificate")
private @Nullable Output certificate;
/**
* @return The pem encoded TLS Certificate from Apple.
*
*/
public Optional> certificate() {
return Optional.ofNullable(this.certificate);
}
/**
* The default authentication method used for APNs Sandbox.
* __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console.
* You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK.
* If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type.
*
* One of the following sets of credentials is also required.
*
* If you choose to use __Certificate credentials__ you will have to provide:
*
*/
@Import(name="defaultAuthenticationMethod")
private @Nullable Output defaultAuthenticationMethod;
/**
* @return The default authentication method used for APNs Sandbox.
* __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console.
* You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK.
* If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type.
*
* One of the following sets of credentials is also required.
*
* If you choose to use __Certificate credentials__ you will have to provide:
*
*/
public Optional> defaultAuthenticationMethod() {
return Optional.ofNullable(this.defaultAuthenticationMethod);
}
/**
* Whether the channel is enabled or disabled. Defaults to `true`.
*
*/
@Import(name="enabled")
private @Nullable Output enabled;
/**
* @return Whether the channel is enabled or disabled. Defaults to `true`.
*
*/
public Optional> enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* The Certificate Private Key file (ie. `.key` file).
*
* If you choose to use __Key credentials__ you will have to provide:
*
*/
@Import(name="privateKey")
private @Nullable Output privateKey;
/**
* @return The Certificate Private Key file (ie. `.key` file).
*
* If you choose to use __Key credentials__ you will have to provide:
*
*/
public Optional> privateKey() {
return Optional.ofNullable(this.privateKey);
}
/**
* The ID assigned to your Apple developer account team. This value is provided on the Membership page.
*
*/
@Import(name="teamId")
private @Nullable Output teamId;
/**
* @return The ID assigned to your Apple developer account team. This value is provided on the Membership page.
*
*/
public Optional> teamId() {
return Optional.ofNullable(this.teamId);
}
/**
* The `.p8` file that you download from your Apple developer account when you create an authentication key.
*
*/
@Import(name="tokenKey")
private @Nullable Output tokenKey;
/**
* @return The `.p8` file that you download from your Apple developer account when you create an authentication key.
*
*/
public Optional> tokenKey() {
return Optional.ofNullable(this.tokenKey);
}
/**
* The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section.
*
*/
@Import(name="tokenKeyId")
private @Nullable Output tokenKeyId;
/**
* @return The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section.
*
*/
public Optional> tokenKeyId() {
return Optional.ofNullable(this.tokenKeyId);
}
private ApnsSandboxChannelArgs() {}
private ApnsSandboxChannelArgs(ApnsSandboxChannelArgs $) {
this.applicationId = $.applicationId;
this.bundleId = $.bundleId;
this.certificate = $.certificate;
this.defaultAuthenticationMethod = $.defaultAuthenticationMethod;
this.enabled = $.enabled;
this.privateKey = $.privateKey;
this.teamId = $.teamId;
this.tokenKey = $.tokenKey;
this.tokenKeyId = $.tokenKeyId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApnsSandboxChannelArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ApnsSandboxChannelArgs $;
public Builder() {
$ = new ApnsSandboxChannelArgs();
}
public Builder(ApnsSandboxChannelArgs defaults) {
$ = new ApnsSandboxChannelArgs(Objects.requireNonNull(defaults));
}
/**
* @param applicationId The application ID.
*
* @return builder
*
*/
public Builder applicationId(Output applicationId) {
$.applicationId = applicationId;
return this;
}
/**
* @param applicationId The application ID.
*
* @return builder
*
*/
public Builder applicationId(String applicationId) {
return applicationId(Output.of(applicationId));
}
/**
* @param bundleId The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app.
*
* @return builder
*
*/
public Builder bundleId(@Nullable Output bundleId) {
$.bundleId = bundleId;
return this;
}
/**
* @param bundleId The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app.
*
* @return builder
*
*/
public Builder bundleId(String bundleId) {
return bundleId(Output.of(bundleId));
}
/**
* @param certificate The pem encoded TLS Certificate from Apple.
*
* @return builder
*
*/
public Builder certificate(@Nullable Output certificate) {
$.certificate = certificate;
return this;
}
/**
* @param certificate The pem encoded TLS Certificate from Apple.
*
* @return builder
*
*/
public Builder certificate(String certificate) {
return certificate(Output.of(certificate));
}
/**
* @param defaultAuthenticationMethod The default authentication method used for APNs Sandbox.
* __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console.
* You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK.
* If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type.
*
* One of the following sets of credentials is also required.
*
* If you choose to use __Certificate credentials__ you will have to provide:
*
* @return builder
*
*/
public Builder defaultAuthenticationMethod(@Nullable Output defaultAuthenticationMethod) {
$.defaultAuthenticationMethod = defaultAuthenticationMethod;
return this;
}
/**
* @param defaultAuthenticationMethod The default authentication method used for APNs Sandbox.
* __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console.
* You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK.
* If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type.
*
* One of the following sets of credentials is also required.
*
* If you choose to use __Certificate credentials__ you will have to provide:
*
* @return builder
*
*/
public Builder defaultAuthenticationMethod(String defaultAuthenticationMethod) {
return defaultAuthenticationMethod(Output.of(defaultAuthenticationMethod));
}
/**
* @param enabled Whether the channel is enabled or disabled. Defaults to `true`.
*
* @return builder
*
*/
public Builder enabled(@Nullable Output enabled) {
$.enabled = enabled;
return this;
}
/**
* @param enabled Whether the channel is enabled or disabled. Defaults to `true`.
*
* @return builder
*
*/
public Builder enabled(Boolean enabled) {
return enabled(Output.of(enabled));
}
/**
* @param privateKey The Certificate Private Key file (ie. `.key` file).
*
* If you choose to use __Key credentials__ you will have to provide:
*
* @return builder
*
*/
public Builder privateKey(@Nullable Output privateKey) {
$.privateKey = privateKey;
return this;
}
/**
* @param privateKey The Certificate Private Key file (ie. `.key` file).
*
* If you choose to use __Key credentials__ you will have to provide:
*
* @return builder
*
*/
public Builder privateKey(String privateKey) {
return privateKey(Output.of(privateKey));
}
/**
* @param teamId The ID assigned to your Apple developer account team. This value is provided on the Membership page.
*
* @return builder
*
*/
public Builder teamId(@Nullable Output teamId) {
$.teamId = teamId;
return this;
}
/**
* @param teamId The ID assigned to your Apple developer account team. This value is provided on the Membership page.
*
* @return builder
*
*/
public Builder teamId(String teamId) {
return teamId(Output.of(teamId));
}
/**
* @param tokenKey The `.p8` file that you download from your Apple developer account when you create an authentication key.
*
* @return builder
*
*/
public Builder tokenKey(@Nullable Output tokenKey) {
$.tokenKey = tokenKey;
return this;
}
/**
* @param tokenKey The `.p8` file that you download from your Apple developer account when you create an authentication key.
*
* @return builder
*
*/
public Builder tokenKey(String tokenKey) {
return tokenKey(Output.of(tokenKey));
}
/**
* @param tokenKeyId The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section.
*
* @return builder
*
*/
public Builder tokenKeyId(@Nullable Output tokenKeyId) {
$.tokenKeyId = tokenKeyId;
return this;
}
/**
* @param tokenKeyId The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section.
*
* @return builder
*
*/
public Builder tokenKeyId(String tokenKeyId) {
return tokenKeyId(Output.of(tokenKeyId));
}
public ApnsSandboxChannelArgs build() {
if ($.applicationId == null) {
throw new MissingRequiredPropertyException("ApnsSandboxChannelArgs", "applicationId");
}
return $;
}
}
}