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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rediscloud:index/getPaymentMethod:getPaymentMethod
arguments:
# arguments dictionary
The following arguments are supported:
- Card
Type string - 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 stringNumbers - Last four numbers of the card of the payment method.
- Card
Type string - 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 stringNumbers - Last four numbers of the card of the payment method.
- card
Type String - Type of card that the payment method should be, such as
Visa
. - exclude
Expired Boolean - Whether to exclude any expired cards or not. Default is
true
. - last
Four StringNumbers - Last four numbers of the card of the payment method.
- card
Type string - Type of card that the payment method should be, such as
Visa
. - exclude
Expired boolean - Whether to exclude any expired cards or not. Default is
true
. - last
Four 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.
- card
Type String - Type of card that the payment method should be, such as
Visa
. - exclude
Expired Boolean - Whether to exclude any expired cards or not. Default is
true
. - last
Four StringNumbers - Last four numbers of the card of the payment method.
getPaymentMethod Result
The following output properties are available:
- Card
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Four stringNumbers - Exclude
Expired bool
- Card
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Four stringNumbers - Exclude
Expired bool
- card
Type String - id String
- The provider-assigned unique ID for this managed resource.
- last
Four StringNumbers - exclude
Expired Boolean
- card
Type string - id string
- The provider-assigned unique ID for this managed resource.
- last
Four stringNumbers - exclude
Expired boolean
- card_
type str - id str
- The provider-assigned unique ID for this managed resource.
- last_
four_ strnumbers - exclude_
expired bool
- card
Type String - id String
- The provider-assigned unique ID for this managed resource.
- last
Four StringNumbers - exclude
Expired Boolean
Package Details
- Repository
- rediscloud RedisLabs/pulumi-rediscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rediscloud
Terraform Provider.