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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.quicksight.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [AccountSubscription].
*/
@PulumiTagMarker
public class AccountSubscriptionResourceBuilder internal constructor() {
public var name: String? = null
public var args: AccountSubscriptionArgs = AccountSubscriptionArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend AccountSubscriptionArgsBuilder.() -> Unit) {
val builder = AccountSubscriptionArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): AccountSubscription {
val builtJavaResource = com.pulumi.aws.quicksight.AccountSubscription(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return AccountSubscription(builtJavaResource)
}
}
/**
* Resource for managing an AWS QuickSight Account Subscription.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const subscription = new aws.quicksight.AccountSubscription("subscription", {
* accountName: "quicksight-pulumi",
* authenticationMethod: "IAM_AND_QUICKSIGHT",
* edition: "ENTERPRISE",
* notificationEmail: "[email protected]",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* subscription = aws.quicksight.AccountSubscription("subscription",
* account_name="quicksight-pulumi",
* authentication_method="IAM_AND_QUICKSIGHT",
* edition="ENTERPRISE",
* notification_email="[email protected]")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var subscription = new Aws.Quicksight.AccountSubscription("subscription", new()
* {
* AccountName = "quicksight-pulumi",
* AuthenticationMethod = "IAM_AND_QUICKSIGHT",
* Edition = "ENTERPRISE",
* NotificationEmail = "[email protected]",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.NewAccountSubscription(ctx, "subscription", &quicksight.AccountSubscriptionArgs{
* AccountName: pulumi.String("quicksight-pulumi"),
* AuthenticationMethod: pulumi.String("IAM_AND_QUICKSIGHT"),
* Edition: pulumi.String("ENTERPRISE"),
* NotificationEmail: pulumi.String("[email protected]"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.quicksight.AccountSubscription;
* import com.pulumi.aws.quicksight.AccountSubscriptionArgs;
* 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 subscription = new AccountSubscription("subscription", AccountSubscriptionArgs.builder()
* .accountName("quicksight-pulumi")
* .authenticationMethod("IAM_AND_QUICKSIGHT")
* .edition("ENTERPRISE")
* .notificationEmail("[email protected]")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* subscription:
* type: aws:quicksight:AccountSubscription
* properties:
* accountName: quicksight-pulumi
* authenticationMethod: IAM_AND_QUICKSIGHT
* edition: ENTERPRISE
* notificationEmail: [email protected]
* ```
*
* ## Import
* You cannot import this resource.
*/
public class AccountSubscription internal constructor(
override val javaResource: com.pulumi.aws.quicksight.AccountSubscription,
) : KotlinCustomResource(javaResource, AccountSubscriptionMapper) {
/**
* Name of your Amazon QuickSight account. This name is unique over all of AWS, and it appears only when users sign in.
*/
public val accountName: Output
get() = javaResource.accountName().applyValue({ args0 -> args0 })
/**
* Status of the Amazon QuickSight account's subscription.
*/
public val accountSubscriptionStatus: Output
get() = javaResource.accountSubscriptionStatus().applyValue({ args0 -> args0 })
/**
* Name of your Active Directory. This field is required if `ACTIVE_DIRECTORY` is the selected authentication method of the new Amazon QuickSight account.
*/
public val activeDirectoryName: Output?
get() = javaResource.activeDirectoryName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Admin group associated with your Active Directory. This field is required if `ACTIVE_DIRECTORY` is the selected authentication method of the new Amazon QuickSight account.
*/
public val adminGroups: Output>?
get() = javaResource.adminGroups().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* Method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for this parameter are `IAM_AND_QUICKSIGHT`, `IAM_ONLY`, `IAM_IDENTITY_CENTER`, and `ACTIVE_DIRECTORY`.
*/
public val authenticationMethod: Output
get() = javaResource.authenticationMethod().applyValue({ args0 -> args0 })
/**
* Author group associated with your Active Directory.
*/
public val authorGroups: Output>?
get() = javaResource.authorGroups().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* AWS account ID hosting the QuickSight account. Default to provider account.
*/
public val awsAccountId: Output
get() = javaResource.awsAccountId().applyValue({ args0 -> args0 })
/**
* A 10-digit phone number for the author of the Amazon QuickSight account to use for future communications. This field is required if `ENTERPPRISE_AND_Q` is the selected edition of the new Amazon QuickSight account.
*/
public val contactNumber: Output?
get() = javaResource.contactNumber().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Active Directory ID that is associated with your Amazon QuickSight account.
*/
public val directoryId: Output?
get() = javaResource.directoryId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Edition of Amazon QuickSight that you want your account to have. Currently, you can choose from `STANDARD`, `ENTERPRISE` or `ENTERPRISE_AND_Q`.
*/
public val edition: Output
get() = javaResource.edition().applyValue({ args0 -> args0 })
/**
* Email address of the author of the Amazon QuickSight account to use for future communications. This field is required if `ENTERPPRISE_AND_Q` is the selected edition of the new Amazon QuickSight account.
*/
public val emailAddress: Output?
get() = javaResource.emailAddress().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* First name of the author of the Amazon QuickSight account to use for future communications. This field is required if `ENTERPPRISE_AND_Q` is the selected edition of the new Amazon QuickSight account.
*/
public val firstName: Output?
get() = javaResource.firstName().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The Amazon Resource Name (ARN) for the IAM Identity Center instance.
*/
public val iamIdentityCenterInstanceArn: Output?
get() = javaResource.iamIdentityCenterInstanceArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Last name of the author of the Amazon QuickSight account to use for future communications. This field is required if `ENTERPPRISE_AND_Q` is the selected edition of the new Amazon QuickSight account.
*/
public val lastName: Output?
get() = javaResource.lastName().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight account or Amazon QuickSight subscription.
* The following arguments are optional:
*/
public val notificationEmail: Output
get() = javaResource.notificationEmail().applyValue({ args0 -> args0 })
/**
* Reader group associated with your Active Direcrtory.
*/
public val readerGroups: Output>?
get() = javaResource.readerGroups().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* Realm of the Active Directory that is associated with your Amazon QuickSight account.
*/
public val realm: Output?
get() = javaResource.realm().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
}
public object AccountSubscriptionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.aws.quicksight.AccountSubscription::class == javaResource::class
override fun map(javaResource: Resource): AccountSubscription = AccountSubscription(
javaResource
as com.pulumi.aws.quicksight.AccountSubscription,
)
}
/**
* @see [AccountSubscription].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [AccountSubscription].
*/
public suspend fun accountSubscription(
name: String,
block: suspend AccountSubscriptionResourceBuilder.() -> Unit,
): AccountSubscription {
val builder = AccountSubscriptionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [AccountSubscription].
* @param name The _unique_ name of the resulting resource.
*/
public fun accountSubscription(name: String): AccountSubscription {
val builder = AccountSubscriptionResourceBuilder()
builder.name(name)
return builder.build()
}