Class OrganizationManager
- java.lang.Object
-
- pl.wrzasq.lambda.cform.organization.service.OrganizationManager
-
public class OrganizationManager extends Object
Organizations API implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private static String
DRIFT_LOG_MESSAGE_PATTERN
Message pattern for drift case.private org.slf4j.Logger
logger
Logger.private com.amazonaws.services.organizations.AWSOrganizations
organizations
AWS Organizations API client.
-
Constructor Summary
Constructors Constructor Description OrganizationManager(com.amazonaws.services.organizations.AWSOrganizations organizations)
Initializes object with given Organizations client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<OrganizationResponse>
delete(OrganizationRequest input, String physicalResourceId)
Handles organization deletion.pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<OrganizationResponse>
sync(OrganizationRequest input, String physicalResourceId)
Handles organization creation.
-
-
-
Field Detail
-
DRIFT_LOG_MESSAGE_PATTERN
private static final String DRIFT_LOG_MESSAGE_PATTERN
Message pattern for drift case.- See Also:
- Constant Field Values
-
logger
private org.slf4j.Logger logger
Logger.
-
organizations
private com.amazonaws.services.organizations.AWSOrganizations organizations
AWS Organizations API client.
-
-
Method Detail
-
sync
public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<OrganizationResponse> sync(OrganizationRequest input, String physicalResourceId)
Handles organization creation.- Parameters:
input
- Resource creation request.physicalResourceId
- Physical ID of existing resource (if present).- Returns:
- Data about published version.
-
delete
public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<OrganizationResponse> delete(OrganizationRequest input, String physicalResourceId)
Handles organization deletion.- Parameters:
input
- Resource delete request.physicalResourceId
- Physical ID of existing resource (if present).- Returns:
- Empty response.
-
-