Skip to main content

benefit_applications

Creates, updates, deletes, gets or lists a benefit_applications resource.

Overview

Namebenefit_applications
TypeResource
Idaws.partnercentral_benefits.benefit_applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the benefit application. (pattern: <code>arn:aws:([a-zA-Z0-9-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.+)</code>)
associated_resourcesarrayAWS resources that are associated with this benefit application.
benefit_application_detailsobjectDetailed information and requirements specific to the benefit being requested.
benefit_idstringThe identifier of the benefit being requested in this application. (pattern: <code>(arn:.+|ben-[0-9a-z]{14})</code>)
catalogstringThe catalog identifier that the benefit application belongs to. (pattern: <code>[A-Za-z0-9_-]+</code>)
created_atstring (date-time)The timestamp when the benefit application was created.
descriptionstringA detailed description of the benefit application.
file_detailsarraySupporting documents and files attached to the benefit application.
fulfillment_typesarrayThe fulfillment types requested for this benefit application.
idstringThe unique identifier of the benefit application. (pattern: <code>benappl-[0-9a-z]{14}</code>)
namestringThe human-readable name of the benefit application.
partner_contactsarrayContact information for partner representatives responsible for this benefit application.
programsarrayThe AWS partner programs associated with this benefit application.
revisionstringThe current revision number of the benefit application.
stagestringThe current stage in the benefit application processing workflow.
statusstringThe current processing status of the benefit application. (PENDING_SUBMISSION, IN_REVIEW, ACTION_REQUIRED, APPROVED, REJECTED, CANCELED)
status_reasonstringAdditional information explaining the current status of the benefit application.
status_reason_codestringA standardized code representing the reason for the current status.
status_reason_codesarrayThe list of standardized codes representing the reason for the current status.
updated_atstring (date-time)The timestamp when the benefit application was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_benefit_applicationselectregionRetrieves detailed information about a specific benefit application.
list_benefit_applicationsselectregionRetrieves a paginated list of benefit applications based on specified filter criteria.
create_benefit_applicationinsertregion, ClientToken, BenefitIdentifierCreates a new benefit application for a partner to request access to AWS benefits and programs.
associate_benefit_application_resourceupdateregion, BenefitApplicationIdentifier, ResourceArnLinks an AWS resource to an existing benefit application for tracking and management purposes.
update_benefit_applicationupdateregion, ClientToken, IdentifierUpdates an existing benefit application with new information while maintaining revision control.
disassociate_benefit_application_resourceexecregion, BenefitApplicationIdentifier, ResourceArnRemoves the association between an AWS resource and a benefit application.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves detailed information about a specific benefit application.

SELECT
arn,
associated_resources,
benefit_application_details,
benefit_id,
catalog,
created_at,
description,
file_details,
fulfillment_types,
id,
name,
partner_contacts,
programs,
revision,
stage,
status,
status_reason,
status_reason_code,
status_reason_codes,
updated_at
FROM aws.partnercentral_benefits.benefit_applications
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new benefit application for a partner to request access to AWS benefits and programs.

INSERT INTO aws.partnercentral_benefits.benefit_applications (
Catalog,
ClientToken,
Name,
Description,
BenefitIdentifier,
FulfillmentTypes,
BenefitApplicationDetails,
Tags,
AssociatedResources,
PartnerContacts,
FileDetails,
region
)
SELECT
'{{ Catalog }}',
'{{ ClientToken }}' /* required */,
'{{ Name }}',
'{{ Description }}',
'{{ BenefitIdentifier }}' /* required */,
'{{ FulfillmentTypes }}',
'{{ BenefitApplicationDetails }}',
'{{ Tags }}',
'{{ AssociatedResources }}',
'{{ PartnerContacts }}',
'{{ FileDetails }}',
'{{ region }}'
RETURNING
arn,
id,
revision
;

UPDATE examples

Links an AWS resource to an existing benefit application for tracking and management purposes.

UPDATE aws.partnercentral_benefits.benefit_applications
SET
Catalog = '{{ Catalog }}',
BenefitApplicationIdentifier = '{{ BenefitApplicationIdentifier }}',
ResourceArn = '{{ ResourceArn }}'
WHERE
region = '{{ region }}' --required
AND BenefitApplicationIdentifier = '{{ BenefitApplicationIdentifier }}' --required
AND ResourceArn = '{{ ResourceArn }}' --required
RETURNING
arn,
id,
revision;

Lifecycle Methods

Removes the association between an AWS resource and a benefit application.

EXEC aws.partnercentral_benefits.benefit_applications.disassociate_benefit_application_resource
@region='{{ region }}' --required
@@json=
'{
"Catalog": "{{ Catalog }}",
"BenefitApplicationIdentifier": "{{ BenefitApplicationIdentifier }}",
"ResourceArn": "{{ ResourceArn }}"
}'
;