1. Packages
  2. RedisCloud
  3. API Docs
  4. getPaymentMethod
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs

rediscloud.getPaymentMethod

Explore with Pulumi AI

rediscloud logo
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rediscloud:index/getPaymentMethod:getPaymentMethod
      arguments:
        # arguments dictionary

    The 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.
    LastFourNumbers string
    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.
    LastFourNumbers string
    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.
    lastFourNumbers String
    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.
    lastFourNumbers string
    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_numbers str
    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.
    lastFourNumbers String
    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.
    LastFourNumbers string
    ExcludeExpired bool
    CardType string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastFourNumbers string
    ExcludeExpired bool
    cardType String
    id String
    The provider-assigned unique ID for this managed resource.
    lastFourNumbers String
    excludeExpired Boolean
    cardType string
    id string
    The provider-assigned unique ID for this managed resource.
    lastFourNumbers string
    excludeExpired boolean
    card_type str
    id str
    The provider-assigned unique ID for this managed resource.
    last_four_numbers str
    exclude_expired bool
    cardType String
    id String
    The provider-assigned unique ID for this managed resource.
    lastFourNumbers String
    excludeExpired Boolean

    Package Details

    Repository
    rediscloud RedisLabs/pulumi-rediscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rediscloud Terraform Provider.
    rediscloud logo
    Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs