agent-claw: automated task changes

This commit is contained in:
daniel
2026-05-06 18:55:16 -05:00
parent 38905bb1e9
commit 732b00fb66
8494 changed files with 2018127 additions and 4 deletions

View File

@@ -0,0 +1,32 @@
import type { IConstruct } from 'constructs';
import type { PolicyStatement } from './policy-statement';
import type { AddToPrincipalPolicyResult, IPrincipal, PrincipalPolicyFragment } from './principals';
/**
* Properties for an UnknownPrincipal
*/
export interface UnknownPrincipalProps {
/**
* The resource the role proxy is for
*/
readonly resource: IConstruct;
}
/**
* A principal for use in resources that need to have a role but it's unknown
*
* Some resources have roles associated with them which they assume, such as
* Lambda Functions, CodeBuild projects, StepFunctions machines, etc.
*
* When those resources are imported, their actual roles are not always
* imported with them. When that happens, we use an instance of this class
* instead, which will add user warnings when statements are attempted to be
* added to it.
*/
export declare class UnknownPrincipal implements IPrincipal {
readonly assumeRoleAction: string;
readonly grantPrincipal: IPrincipal;
private readonly resource;
constructor(props: UnknownPrincipalProps);
get policyFragment(): PrincipalPolicyFragment;
addToPrincipalPolicy(statement: PolicyStatement): AddToPrincipalPolicyResult;
addToPolicy(statement: PolicyStatement): boolean;
}