Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs
rediscloud.getPaymentMethod
Explore with Pulumi AI
The Payment Method data source allows access to the ID of a Payment Method configured against your Redis Enterprise Cloud account. This ID can be used when creating Subscription resources.
Using getPaymentMethod
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 getPaymentMethod(args: GetPaymentMethodArgs, opts?: InvokeOptions): Promise<GetPaymentMethodResult>
function getPaymentMethodOutput(args: GetPaymentMethodOutputArgs, opts?: InvokeOptions): Output<GetPaymentMethodResult>def get_payment_method(card_type: Optional[str] = None,
                       exclude_expired: Optional[bool] = None,
                       last_four_numbers: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPaymentMethodResult
def get_payment_method_output(card_type: Optional[pulumi.Input[str]] = None,
                       exclude_expired: Optional[pulumi.Input[bool]] = None,
                       last_four_numbers: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPaymentMethodResult]func GetPaymentMethod(ctx *Context, args *GetPaymentMethodArgs, opts ...InvokeOption) (*GetPaymentMethodResult, error)
func GetPaymentMethodOutput(ctx *Context, args *GetPaymentMethodOutputArgs, opts ...InvokeOption) GetPaymentMethodResultOutput> Note: This function is named GetPaymentMethod in the Go SDK.
public static class GetPaymentMethod 
{
    public static Task<GetPaymentMethodResult> InvokeAsync(GetPaymentMethodArgs args, InvokeOptions? opts = null)
    public static Output<GetPaymentMethodResult> Invoke(GetPaymentMethodInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPaymentMethodResult> getPaymentMethod(GetPaymentMethodArgs args, InvokeOptions options)
public static Output<GetPaymentMethodResult> getPaymentMethod(GetPaymentMethodArgs args, InvokeOptions options)
fn::invoke:
  function: rediscloud:index/getPaymentMethod:getPaymentMethod
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CardType string
- Type of card that the payment method should be, such as Visa.
- ExcludeExpired bool
- Whether to exclude any expired cards or not. Default is true.
- LastFour stringNumbers 
- Last four numbers of the card of the payment method.
- CardType string
- Type of card that the payment method should be, such as Visa.
- ExcludeExpired bool
- Whether to exclude any expired cards or not. Default is true.
- LastFour stringNumbers 
- Last four numbers of the card of the payment method.
- cardType String
- Type of card that the payment method should be, such as Visa.
- excludeExpired Boolean
- Whether to exclude any expired cards or not. Default is true.
- lastFour StringNumbers 
- Last four numbers of the card of the payment method.
- cardType string
- Type of card that the payment method should be, such as Visa.
- excludeExpired boolean
- Whether to exclude any expired cards or not. Default is true.
- lastFour stringNumbers 
- Last four numbers of the card of the payment method.
- card_type str
- Type of card that the payment method should be, such as Visa.
- exclude_expired bool
- Whether to exclude any expired cards or not. Default is true.
- last_four_ strnumbers 
- Last four numbers of the card of the payment method.
- cardType String
- Type of card that the payment method should be, such as Visa.
- excludeExpired Boolean
- Whether to exclude any expired cards or not. Default is true.
- lastFour StringNumbers 
- Last four numbers of the card of the payment method.
getPaymentMethod Result
The following output properties are available:
- CardType string
- Id string
- The provider-assigned unique ID for this managed resource.
- LastFour stringNumbers 
- ExcludeExpired bool
- CardType string
- Id string
- The provider-assigned unique ID for this managed resource.
- LastFour stringNumbers 
- ExcludeExpired bool
- cardType String
- id String
- The provider-assigned unique ID for this managed resource.
- lastFour StringNumbers 
- excludeExpired Boolean
- cardType string
- id string
- The provider-assigned unique ID for this managed resource.
- lastFour stringNumbers 
- excludeExpired boolean
- card_type str
- id str
- The provider-assigned unique ID for this managed resource.
- last_four_ strnumbers 
- exclude_expired bool
- cardType String
- id String
- The provider-assigned unique ID for this managed resource.
- lastFour StringNumbers 
- excludeExpired Boolean
Package Details
- Repository
- rediscloud RedisLabs/pulumi-rediscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the rediscloudTerraform Provider.