Skip to content

Commit

Permalink
Bootstrap api
Browse files Browse the repository at this point in the history
  • Loading branch information
riseshia committed Jun 24, 2024
1 parent 0ce07a2 commit 63bda07
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
30 changes: 30 additions & 0 deletions src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,36 @@ impl SchedulerImpl {
}
}

pub async fn create_schedule(
_client: Scheduler,
) -> Result<GetScheduleGroupOutput, scheduler::error::SdkError<GetScheduleGroupError>> {
todo!()
}

pub async fn update_schedule(
_client: Scheduler,
) -> Result<GetScheduleGroupOutput, scheduler::error::SdkError<GetScheduleGroupError>> {
todo!()
}

pub async fn delete_schedule(
_client: Scheduler,
) -> Result<GetScheduleGroupOutput, scheduler::error::SdkError<GetScheduleGroupError>> {
todo!()
}

pub async fn tag_resource(
_client: Scheduler,
) -> Result<GetScheduleGroupOutput, scheduler::error::SdkError<GetScheduleGroupError>> {
todo!()
}

pub async fn untag_resource(
_client: Scheduler,
) -> Result<GetScheduleGroupOutput, scheduler::error::SdkError<GetScheduleGroupError>> {
todo!()
}

pub async fn get_schedule_group(
client: Scheduler,
group_name: &str,
Expand Down
34 changes: 32 additions & 2 deletions src/sfn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,37 @@ impl SfnImpl {
}
}

pub async fn fetch_state_machine(
pub async fn create_state_machine(
_client: Sfn,
) -> Result<DescribeStateMachineOutput, sfn::error::SdkError<DescribeStateMachineError>> {
todo!()
}

pub async fn update_state_machine(
_client: Sfn,
) -> Result<DescribeStateMachineOutput, sfn::error::SdkError<DescribeStateMachineError>> {
todo!()
}

pub async fn delete_state_machine(
_client: Sfn,
) -> Result<DescribeStateMachineOutput, sfn::error::SdkError<DescribeStateMachineError>> {
todo!()
}

pub async fn tag_resource(
_client: Sfn,
) -> Result<DescribeStateMachineOutput, sfn::error::SdkError<DescribeStateMachineError>> {
todo!()
}

pub async fn untag_resource(
_client: Sfn,
) -> Result<DescribeStateMachineOutput, sfn::error::SdkError<DescribeStateMachineError>> {
todo!()
}

pub async fn describe_state_machine(
client: Sfn,
sfn_arn: &str,
) -> Result<DescribeStateMachineOutput, sfn::error::SdkError<DescribeStateMachineError>> {
Expand Down Expand Up @@ -77,7 +107,7 @@ mod test {
.unwrap())
});

let res = fetch_state_machine(
let res = describe_state_machine(
mock,
"arn:aws:states:us-west-2:123456789012:stateMachine:HelloWorld",
)
Expand Down

0 comments on commit 63bda07

Please sign in to comment.